From 23b9a94f12e85fc3a2b4395306a383b60692ade7 Mon Sep 17 00:00:00 2001 From: Jimmy Briggs Date: Sun, 22 Sep 2024 18:20:49 -0400 Subject: [PATCH] update Affected files: .devcontainer/devcontainer.json .github/dependabot.yml .obsidian/community-plugins.json 02-PROJECTS/Clients/GMH/Google Maps Embed.md 02-PROJECTS/Internal/Blog/Blog - Cross-Language Innovations for Enhancing R.md 02-PROJECTS/Internal/Blog/Blog - Ideas.md 03-AREAS/Journal/2024-08-29.md 03-AREAS/Journal/2024-09-01.md 03-AREAS/Journal/2024-09-04.md 03-AREAS/Journal/2024-09-07.md 03-AREAS/Journal/2024-09-15.md 03-AREAS/Journal/2024-09-16.md 03-AREAS/Journal/2024-09-18.md 03-AREAS/Journal/2024-09-21.md 04-RESOURCES/ClickUp/No Clocks/No Clocks - [90141611707]/Decision Log[901405221852].md 04-RESOURCES/ClickUp/No Clocks/No Clocks - [90141611707]/Operations[901405221820].md 04-RESOURCES/Code/CSS/CSS - Center Image in Viewport.md 04-RESOURCES/Code/JavaScript/JS - Show CSS Styles for HTML Elements.md 04-RESOURCES/Code/PowerShell/PowerShell - Check CPU Battery Status.md 04-RESOURCES/Code/PowerShell/PowerShell - DNSServer Module.md 04-RESOURCES/Code/PowerShell/PowerShell - Empty Recycle Bin.md 04-RESOURCES/Code/PowerShell/PowerShell - Review Explorer Recent Items.md 04-RESOURCES/Code/Python/Python - Exception Handling.md 04-RESOURCES/Code/Python/Python - OpenAI.md 04-RESOURCES/Code/Registry/Registry - Set Dark Theme.md 04-RESOURCES/Definitions/Acronyms/Browser Object Model (BOM).md 04-RESOURCES/Tools/Tool - R bslib.md --- .devcontainer/devcontainer.json | 21 ++ .github/dependabot.yml | 6 + .obsidian/community-plugins.json | 4 +- 02-PROJECTS/Clients/GMH/Google Maps Embed.md | 1 + ...ss-Language Innovations for Enhancing R.md | 262 ++++++++++++++++++ 02-PROJECTS/Internal/Blog/Blog - Ideas.md | 0 03-AREAS/Journal/2024-08-29.md | 105 +++++++ 03-AREAS/Journal/2024-09-01.md | 39 +++ 03-AREAS/Journal/2024-09-04.md | 105 +++++++ 03-AREAS/Journal/2024-09-07.md | 105 +++++++ 03-AREAS/Journal/2024-09-15.md | 39 +++ 03-AREAS/Journal/2024-09-16.md | 105 +++++++ 03-AREAS/Journal/2024-09-18.md | 105 +++++++ 03-AREAS/Journal/2024-09-21.md | 105 +++++++ .../Decision Log[901405221852].md | 1 + .../Operations[901405221820].md | 1 + .../CSS/CSS - Center Image in Viewport.md | 173 ++++++++++++ .../JS - Show CSS Styles for HTML Elements.md | 156 +++++++++++ .../PowerShell - Check CPU Battery Status.md | 96 +++++++ ...le.md => PowerShell - DNSServer Module.md} | 0 .../PowerShell - Empty Recycle Bin.md | 89 ++++++ ...werShell - Review Explorer Recent Items.md | 91 ++++++ .../Python/Python - Exception Handling.md | 106 +++++++ 04-RESOURCES/Code/Python/Python - OpenAI.md | 112 ++++++++ .../Registry/Registry - Set Dark Theme.md | 92 ++++++ .../Acronyms/Browser Object Model (BOM).md | 91 ++++++ 04-RESOURCES/Tools/Tool - R bslib.md | 55 ++++ 27 files changed, 2064 insertions(+), 1 deletion(-) create mode 100644 .devcontainer/devcontainer.json create mode 100644 .github/dependabot.yml create mode 100644 02-PROJECTS/Clients/GMH/Google Maps Embed.md create mode 100644 02-PROJECTS/Internal/Blog/Blog - Cross-Language Innovations for Enhancing R.md create mode 100644 02-PROJECTS/Internal/Blog/Blog - Ideas.md create mode 100644 03-AREAS/Journal/2024-08-29.md create mode 100644 03-AREAS/Journal/2024-09-01.md create mode 100644 03-AREAS/Journal/2024-09-04.md create mode 100644 03-AREAS/Journal/2024-09-07.md create mode 100644 03-AREAS/Journal/2024-09-15.md create mode 100644 03-AREAS/Journal/2024-09-16.md create mode 100644 03-AREAS/Journal/2024-09-18.md create mode 100644 03-AREAS/Journal/2024-09-21.md create mode 100644 04-RESOURCES/ClickUp/No Clocks/No Clocks - [90141611707]/Decision Log[901405221852].md create mode 100644 04-RESOURCES/ClickUp/No Clocks/No Clocks - [90141611707]/Operations[901405221820].md create mode 100644 04-RESOURCES/Code/CSS/CSS - Center Image in Viewport.md create mode 100644 04-RESOURCES/Code/JavaScript/JS - Show CSS Styles for HTML Elements.md create mode 100644 04-RESOURCES/Code/PowerShell/PowerShell - Check CPU Battery Status.md rename 04-RESOURCES/Code/PowerShell/{PowerShell DNSServer Module.md => PowerShell - DNSServer Module.md} (100%) create mode 100644 04-RESOURCES/Code/PowerShell/PowerShell - Empty Recycle Bin.md create mode 100644 04-RESOURCES/Code/PowerShell/PowerShell - Review Explorer Recent Items.md create mode 100644 04-RESOURCES/Code/Python/Python - Exception Handling.md create mode 100644 04-RESOURCES/Code/Python/Python - OpenAI.md create mode 100644 04-RESOURCES/Code/Registry/Registry - Set Dark Theme.md create mode 100644 04-RESOURCES/Definitions/Acronyms/Browser Object Model (BOM).md create mode 100644 04-RESOURCES/Tools/Tool - R bslib.md diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..6dd5cd41 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,21 @@ +{ + "image": "mcr.microsoft.com/devcontainers/universal:2", + "features": { + "ghcr.io/devcontainers/features/node:1": { + "extended": "true" + } + }, + "postCreateCommand": "npm install", + "customizations": { + "vscode": { + "extensions": [ + "davidanson.vscode-markdownlint", + ] + } + }, + "portsAttributes": { + "8080": { + "label": "Build --Serve" + } + } +} diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..aff82a10 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: "npm" + directory: "/" + schedule: + interval: "weekly" diff --git a/.obsidian/community-plugins.json b/.obsidian/community-plugins.json index 669bac8f..2f6a561a 100644 --- a/.obsidian/community-plugins.json +++ b/.obsidian/community-plugins.json @@ -54,5 +54,7 @@ "multi-column-markdown", "google-calendar", "obsidian-full-calendar", - "automatic-table-of-contents" + "automatic-table-of-contents", + "click-up-sync", + "vscode-editor" ] \ No newline at end of file diff --git a/02-PROJECTS/Clients/GMH/Google Maps Embed.md b/02-PROJECTS/Clients/GMH/Google Maps Embed.md new file mode 100644 index 00000000..10a3f8e2 --- /dev/null +++ b/02-PROJECTS/Clients/GMH/Google Maps Embed.md @@ -0,0 +1 @@ + diff --git a/02-PROJECTS/Internal/Blog/Blog - Cross-Language Innovations for Enhancing R.md b/02-PROJECTS/Internal/Blog/Blog - Cross-Language Innovations for Enhancing R.md new file mode 100644 index 00000000..7567a430 --- /dev/null +++ b/02-PROJECTS/Internal/Blog/Blog - Cross-Language Innovations for Enhancing R.md @@ -0,0 +1,262 @@ +--- +creation_date: 2024-08-29 +modification_date: 2024-08-29 +author: Jimmy Briggs +tags: + - Type/Blog + - Topic/Dev/R + - Status/WIP +aliases: + - Cross-Language Innovations for Enhancing R + - Innovative Features from Other Languages to Enhance R - A Cross Language Exploration +publish: true +permalink: +description: +image: +cssclasses: +--- + + +# Exploring Features from Other Languages to Enhance R - A Cross Language Exploration + +> [!INFO] +> This blog post explores various innovative features from other languages and frameworks to enhance the R developer experience. + +```table-of-contents +title: ## Contents +style: nestedList # TOC style (nestedList|inlineFirstLevel) +minLevel: 1 # Include headings from the specified level +maxLevel: 4 # Include headings up to the specified level +includeLinks: true # Make headings clickable +debugInConsole: false # Print debug info in Obsidian console +``` + +### Bash / Unix Shells + +1. **Pipelines and Redirection**: + + - Enhance R's pipe (`|>`) functionality to work more like Unix pipelines, including features like piping into system commands or redirecting output to files, logs, or other destinations, seamlessly integrating R with shell-like environments. +2. **Environment Modules**: + + - Implement a module system in R similar to `module` command in Unix, where users can load and unload different sets of packages or configurations for different projects or environments, improving workflow modularity and isolation. + +### PowerShell + +> [!NOTE] +> These features also include the languages C#, and .NET as PowerShell is built from the .NET Ecosystem. + +1. **Separate Startup Profiles**: + - Implement different R profile startup scripts for various use cases (e.g., interactive sessions, non-interactive scripts, IDE-specific profiles). +2. **(Module) Manifests**: + - Introduce manifest files in R packages or scripts to declare dependencies, versions, and configurations, ensuring consistency across environments. This is already implemented via the almighty `DESCRIPTION` file. +3. **Controlled Vocabulary of Approved Verbs**: + - Develop a standardized set of function prefixes (verbs) in R, akin to PowerShell's approved verbs, to promote consistent naming conventions (e.g., `get_`, `set_`, `update_`, `remove_`). +4. **Declarative Configuration Management (DSC)**: + - Create a declarative configuration management system in R for setting up environments, similar to PowerShell DSC, where users define desired states for their R environments. +5. **Output Streams with Corresponding Write Statements**: + - Introduce a system in R for handling different output streams (e.g., success, error, warning, verbose, debug, information, progress) with corresponding `write_*` functions. This could enhance the granularity of logging, debugging, and user feedback within R scripts and functions. +6. **Parameter Sets**: + - Implement PowerShell-like parameter sets in R functions, allowing for more flexible and user-friendly function interfaces. This would enable functions to have multiple sets of arguments, each tailored for different use cases, and enforce argument combinations, making functions more robust and easier to use. +7. **Separation of `Begin`, `Process`, and `End` Script Blocks + - PowerShell’s `begin`, `process`, and `end` script blocks provide a structured way to handle initialization, iterative processing, and finalization within a command or function. This feature is particularly useful for streaming data, processing large datasets, or dealing with input from the pipeline. + +### Conceptual Translation to R + +In R, this pattern can be mimicked by creating functions that explicitly handle the three stages: initialization (`begin`), processing each element (`process`), and cleanup or final actions (`end`). Although R doesn’t have a direct equivalent of PowerShell's script blocks, we can structure our R functions to achieve similar behavior. + +### Example R Implementation + +Let’s create a function in R that processes a large dataset in chunks, initializing resources in a `begin` phase, processing data in a `process` phase, and then cleaning up or summarizing in an `end` phase. + +```r +#' Process Large Data in Chunks with Begin, Process, End Pattern +#' +#' @description This function demonstrates a pattern similar to PowerShell's +#' begin, process, and end script blocks. It initializes resources, processes +#' a large dataset in chunks, and then performs final cleanup or summary actions. +#' +#' @param data A data frame to be processed in chunks. +#' @param chunk_size The number of rows to process at a time. +#' @param process_function A function to apply to each chunk of data. +#' @return A final result after processing all chunks. +#' @export +#' @importFrom dplyr slice +process_large_data <- function(data, chunk_size = 1000, process_function) { + + # Begin: Initialization + message("Initializing resources...") + results <- list() + + # Process: Iteratively process each chunk + total_rows <- nrow(data) + num_chunks <- ceiling(total_rows / chunk_size) + + for (i in seq_len(num_chunks)) { + start_row <- (i - 1) * chunk_size + 1 + end_row <- min(i * chunk_size, total_rows) + + chunk <- dplyr::slice(data, start_row:end_row) + message(glue::glue("Processing chunk {i} of {num_chunks} (rows {start_row} to {end_row})...")) + + processed_chunk <- process_function(chunk) + results[[i]] <- processed_chunk + } + + # End: Finalization + message("Finalizing and aggregating results...") + final_result <- do.call(rbind, results) + + return(final_result) +} + +# Example usage: +# Define a simple processing function +process_chunk <- function(chunk) { + chunk$processed <- TRUE # Example processing: Add a new column + return(chunk) +} + +# Simulate large dataset +large_data <- data.frame( + id = 1:10000, + value = rnorm(10000) +) + +# Process the large data in chunks +final_result <- process_large_data(large_data, chunk_size = 1000, process_function = process_chunk) +head(final_result) +``` + +### Explanation: + +1. **Begin Block (Initialization)**: + - In this R function, the `begin` phase is represented by the initialization of resources, such as creating an empty list to store results and printing an initialization message. + +2. **Process Block (Iterative Processing)**: + - The `process` phase iteratively processes chunks of the data. This is where the main computation happens, with each chunk being processed by a user-defined function (`process_function`). + +3. **End Block (Finalization)**: + - The `end` phase involves finalizing the results, typically aggregating them into a single data structure and performing any final actions, such as printing a summary message. + +### Benefits of This Pattern in R: + +- **Modularity**: The function is broken into distinct phases, making it easier to manage and extend. +- **Efficiency**: Processing data in chunks reduces memory usage, which is particularly useful for large datasets. +- **Flexibility**: Users can define custom processing functions, making the function adaptable to different use cases. + +By adopting this pattern, you can bring a structured, PowerShell-like approach to R, making your R code more organized and efficient when dealing with large or streaming data. + +### JavaScript and TypeScript + +1. **Enhanced Type System**: + - Introduce a more robust type system in R, allowing for static type checking, type annotations, and interfaces to define expected function arguments and return types. +2. **Interfaces and Type Aliases**: + - Develop a system for defining interfaces (contracts) and type aliases in R, which could help enforce consistency and correctness in function inputs and outputs. +3. **Asynchronous Programming**: + - Implement native support for promises, async/await patterns, or reactive programming in R to handle asynchronous tasks more effectively. + +### Python + +1. **Data Classes**: + - Introduce data classes in R for simple and efficient creation of classes focused on storing data, reducing boilerplate code. +2. **Data Models and Classes (Pydantic)**: + - Develop a system akin to Pydantic models in Python, where users can define schemas for validating and parsing data into R structures, ensuring data integrity. +3. **Context Managers**: + - Implement context managers in R, similar to Python's `with` statement, for managing resources like file I/O, database connections, or temporary settings changes. + +### SQL + +1. **Specific Data Type Support**: + - Enhance R’s support for specific data types, particularly those related to time series, spatial data, and complex numbers, inspired by SQL's type system. +2. **Window Functions**: + - Port SQL-style window functions into R, allowing for more advanced data manipulation directly within R, particularly in data frames or `tibble` structures. +3. **Common Table Expressions (CTEs)**: + - Introduce a way to define reusable, named query parts in R data manipulation pipelines, similar to CTEs in SQL, enhancing readability and reusability of complex data transformations. + +### Ruby + +1. **Gem-Like Package Management**: + - Port the idea of Ruby gems into R, allowing for easier version management and dependency handling of R packages. This could include features like version locking, grouping packages by functionality, and creating bundled environments. +1. **Blocks and Procs**: + - Introduce Ruby-style blocks (anonymous functions) and Procs, allowing for more elegant handling of callback functions and iterators in R. +2. **Active Record Pattern**: + - Develop an ORM (Object-Relational Mapping) system in R similar to Ruby on Rails' Active Record, enabling R to interact with databases in a more object-oriented manner. + +### Rust + +1. **Ownership and Borrowing**: + - Consider a memory management system inspired by Rust's ownership and borrowing principles, ensuring safer and more efficient memory usage in R, particularly in large data operations. +2. **Pattern Matching**: + - Implement a pattern matching system in R, similar to Rust's, allowing for more expressive and readable conditional logic. + +### Java + +1. **Java Beans/POJO (Plain Old Java Objects)**: + +- Introduce a simple and standard way to define classes in R that are focused on holding data with getters and setters, similar to Java Beans. This could standardize how R handles simple data structures and encourage better practices for encapsulation and data management + +### Go + +1. **Goroutines**: + - Port lightweight concurrent programming features, such as goroutines, to R for handling parallel processing tasks more efficiently. +2. **Channels**: + - Introduce channels in R for synchronized communication between parallel tasks, enhancing R's concurrency capabilities. + +### Swift + +1. **Optionals and Safe Unwrapping**: + +- Introduce a concept similar to Swift's optionals and safe unwrapping in R, allowing for safer handling of `NULL` values and missing data. This could include syntax or functions for safely unwrapping values or chaining operations that might return `NULL`. + +2. **Supervision Trees**: + - Implement a system for managing concurrent tasks in R, inspired by Erlang's supervision trees, where processes can be grouped, monitored, and restarted if they fail, improving reliability in parallel processing tasks. + +### Elixir / Erlang + +1. **Actor Model for Concurrency**: + - Implement an actor model in R for managing concurrent tasks, inspired by Elixir, where each task is an independent actor that communicates via message passing. +2. **Pattern Matching**: + - Similar to Rust, Elixir's pattern matching is powerful for handling various data structures. Bringing this to R could simplify complex data processing tasks. + +### Haskell + +1. **Monads**: + - Introduce monads or similar functional programming concepts to R, allowing for more sophisticated handling of side effects, state management, and asynchronous computations. +2. **Lazy Evaluation**: + - Expand on R's lazy evaluation with more control and functionality, inspired by Haskell, allowing for deferred computation and memory optimization. +3. **Pure Functions and Immutability**: +- Encourage the use of pure functions and immutability in R, similar to Haskell, potentially through syntactic or tooling support. This could include tools for identifying side effects or enforcing immutability in function arguments, leading to more predictable and testable code. + +### Python and Node.js + +1. **CLI-Enabled Libraries**: + +- Implement a system in R similar to Python's `pip/pipx` and Node's `npm/npx`, where R packages can be installed as command-line tools. This could allow users to run R-based scripts or commands directly from the terminal without needing a full R session, streamlining the use of R in scripting and automation tasks. + + + +These features, if adapted thoughtfully, could significantly enhance the R programming experience by borrowing the best practices and innovations from other languages. + + + +## Resources + +*** + +## Appendix + +*Note created on [[2024-08-29]] and last modified on [[2024-08-29]].* + +### See Also + +- + +### Backlinks + +```dataview +LIST FROM [[Blog - Cross-Language Innovations for Enhancing R]] AND -"CHANGELOG" AND -"02-PROJECTS/Internal/Blog/Blog - Cross-Language Innovations for Enhancing R" +``` + +*** + +(c) [No Clocks, LLC](https://github.com/noclocks) | 2024 \ No newline at end of file diff --git a/02-PROJECTS/Internal/Blog/Blog - Ideas.md b/02-PROJECTS/Internal/Blog/Blog - Ideas.md new file mode 100644 index 00000000..e69de29b diff --git a/03-AREAS/Journal/2024-08-29.md b/03-AREAS/Journal/2024-08-29.md new file mode 100644 index 00000000..74473090 --- /dev/null +++ b/03-AREAS/Journal/2024-08-29.md @@ -0,0 +1,105 @@ +--- +creation_date: 2024-08-29 +modification_date: 2024-08-29 +author: Jimmy Briggs +tags: + - Type/Journal/Daily + - Type/Journal + - Topic/Journal + - Topic/Journal/Daily + - Status/Ongoing +aliases: + - 2024-08-29 + - August 29th, 2024 + - Thursday 29th August, 2024 +publish: true +permalink: areas/journal/daily/2024-08-29 +description: Daily Journal Note for 2024-08-29. +banner_icon: +banner: +cssclasses: + - daily +--- + + +# [[2024-08-29|Thursday, August 29, 2024]] + +<< [[2024-08-28]] | [[2024-08-30]] >> + +```table-of-contents +title: ## Contents +style: nestedList # TOC style (nestedList|inlineFirstLevel) +minLevel: 1 # Include headings from the specified level +maxLevel: 4 # Include headings up to the specified level +includeLinks: true # Make headings clickable +debugInConsole: false # Print debug info in Obsidian console +``` + +## Daily Journal + +> [!NOTE] Personalized daily activity logs. + +- `...` + +## Daily Discoveries + +> [!NOTE] Anything relevant that was discovered on this day (i.e. new tools, technologies, code snippets, ideas, videos, podcasts, people, etc.) + +- `...` + +## Daily Tasks + +> [!TODO]- Todoist Tasks +> ```todoist +name: Highest Priority & Date +filter: "today & ##No Clocks" +sorting: + - priority +groupBy: project +``` + + +## Metadata & Links + +> [!META]- Metadata: +> - Year:: [[2024]] +> - Month:: [[2024 August]] +> - Quarter:: [[2024Q3]] +> - Week:: [[2024 354424 35]] + +> [!log] Created Notes Log: +> ```dataview +TABLE file.folder AS Folder +WHERE file.cday = date(this.file.name) AND file.name != (this.file.name) +SORT file.folder ASC, file.name ASC +``` + +> [!log] Modified Notes Log: +> ```dataview +TABLE file.folder AS Folder +WHERE file.mday = date(this.file.name) AND file.name != (this.file.name) +SORT file.mtime asc +``` + +*** + +## Appendix + +*Note created on [[2024-08-29]] and last modified on [[2024-08-29]].* + +### See Also + +- + +### Backlinks + +```dataview +LIST FROM [[2024-08-29]] AND -"CHANGELOG" AND -"03-AREAS/Journal/2024-08-29" +``` + +*** + +(c) [No Clocks, LLC](https://github.com/noclocks) | 2024 + + + diff --git a/03-AREAS/Journal/2024-09-01.md b/03-AREAS/Journal/2024-09-01.md new file mode 100644 index 00000000..72c1a781 --- /dev/null +++ b/03-AREAS/Journal/2024-09-01.md @@ -0,0 +1,39 @@ +<% tp.file.include("[[Template-Fragment-Frontmatter-Daily]]") %> + +<% tp.file.include("[[Template-Fragment-Title-Daily]]") %> + +<% tp.file.include("[[Template-Fragment-Daily-Navigation]]") %> + +<% tp.file.include("[[Template-Fragment-TOC]]") %> + +## Daily Journal + +> [!NOTE] Personalized daily activity logs. + +- `...` + +## Daily Discoveries + +> [!NOTE] Anything relevant that was discovered on this day (i.e. new tools, technologies, code snippets, ideas, videos, podcasts, people, etc.) + +- `...` + +## Daily Tasks + +<% tp.file.include("[[Template-Fragment-Callout-Todoist]]") %> + + +## Metadata & Links + +<% tp.file.include("[[Template-Fragment-Callout-Daily-Metadata]]") %> + +> [!log] Created Notes Log: +> <% tp.file.include("[[Template-Dataview-Daily-Created-Notes]]") %> + +> [!log] Modified Notes Log: +> <% tp.file.include("[[Template-Dataview-Daily-Modified-Notes]]") %> + +<% tp.file.include("[[Template-Fragment-Backmatter]]") %> + + + diff --git a/03-AREAS/Journal/2024-09-04.md b/03-AREAS/Journal/2024-09-04.md new file mode 100644 index 00000000..e6b3f1b7 --- /dev/null +++ b/03-AREAS/Journal/2024-09-04.md @@ -0,0 +1,105 @@ +--- +creation_date: 2024-09-04 +modification_date: 2024-09-04 +author: Jimmy Briggs +tags: + - Type/Journal/Daily + - Type/Journal + - Topic/Journal + - Topic/Journal/Daily + - Status/Ongoing +aliases: + - 2024-09-04 + - September 4th, 2024 + - Wednesday 4th September, 2024 +publish: true +permalink: areas/journal/daily/2024-09-04 +description: Daily Journal Note for 2024-09-04. +banner_icon: +banner: +cssclasses: + - daily +--- + + +# [[2024-09-04|Wednesday, September 04, 2024]] + +<< [[2024-09-03]] | [[2024-09-05]] >> + +```table-of-contents +title: ## Contents +style: nestedList # TOC style (nestedList|inlineFirstLevel) +minLevel: 1 # Include headings from the specified level +maxLevel: 4 # Include headings up to the specified level +includeLinks: true # Make headings clickable +debugInConsole: false # Print debug info in Obsidian console +``` + +## Daily Journal + +> [!NOTE] Personalized daily activity logs. + +- `...` + +## Daily Discoveries + +> [!NOTE] Anything relevant that was discovered on this day (i.e. new tools, technologies, code snippets, ideas, videos, podcasts, people, etc.) + +- `...` + +## Daily Tasks + +> [!TODO]- Todoist Tasks +> ```todoist +name: Highest Priority & Date +filter: "today & ##No Clocks" +sorting: + - priority +groupBy: project +``` + + +## Metadata & Links + +> [!META]- Metadata: +> - Year:: [[2024]] +> - Month:: [[2024 September]] +> - Quarter:: [[2024Q3]] +> - Week:: [[2024 363324 36]] + +> [!log] Created Notes Log: +> ```dataview +TABLE file.folder AS Folder +WHERE file.cday = date(this.file.name) AND file.name != (this.file.name) +SORT file.folder ASC, file.name ASC +``` + +> [!log] Modified Notes Log: +> ```dataview +TABLE file.folder AS Folder +WHERE file.mday = date(this.file.name) AND file.name != (this.file.name) +SORT file.mtime asc +``` + +*** + +## Appendix + +*Note created on [[2024-09-04]] and last modified on [[2024-09-04]].* + +### See Also + +- + +### Backlinks + +```dataview +LIST FROM [[2024-09-04]] AND -"CHANGELOG" AND -"03-AREAS/Journal/2024-09-04" +``` + +*** + +(c) [No Clocks, LLC](https://github.com/noclocks) | 2024 + + + diff --git a/03-AREAS/Journal/2024-09-07.md b/03-AREAS/Journal/2024-09-07.md new file mode 100644 index 00000000..721cf7fb --- /dev/null +++ b/03-AREAS/Journal/2024-09-07.md @@ -0,0 +1,105 @@ +--- +creation_date: 2024-09-07 +modification_date: 2024-09-07 +author: Jimmy Briggs +tags: + - Type/Journal/Daily + - Type/Journal + - Topic/Journal + - Topic/Journal/Daily + - Status/Ongoing +aliases: + - 2024-09-07 + - September 7th, 2024 + - Saturday 7th September, 2024 +publish: true +permalink: areas/journal/daily/2024-09-07 +description: Daily Journal Note for 2024-09-07. +banner_icon: +banner: +cssclasses: + - daily +--- + + +# [[2024-09-07|Saturday, September 07, 2024]] + +<< [[2024-09-06]] | [[2024-09-08]] >> + +```table-of-contents +title: ## Contents +style: nestedList # TOC style (nestedList|inlineFirstLevel) +minLevel: 1 # Include headings from the specified level +maxLevel: 4 # Include headings up to the specified level +includeLinks: true # Make headings clickable +debugInConsole: false # Print debug info in Obsidian console +``` + +## Daily Journal + +> [!NOTE] Personalized daily activity logs. + +- `...` + +## Daily Discoveries + +> [!NOTE] Anything relevant that was discovered on this day (i.e. new tools, technologies, code snippets, ideas, videos, podcasts, people, etc.) + +- `...` + +## Daily Tasks + +> [!TODO]- Todoist Tasks +> ```todoist +name: Highest Priority & Date +filter: "today & ##No Clocks" +sorting: + - priority +groupBy: project +``` + + +## Metadata & Links + +> [!META]- Metadata: +> - Year:: [[2024]] +> - Month:: [[2024 September]] +> - Quarter:: [[2024Q3]] +> - Week:: [[2024 366624 36]] + +> [!log] Created Notes Log: +> ```dataview +TABLE file.folder AS Folder +WHERE file.cday = date(this.file.name) AND file.name != (this.file.name) +SORT file.folder ASC, file.name ASC +``` + +> [!log] Modified Notes Log: +> ```dataview +TABLE file.folder AS Folder +WHERE file.mday = date(this.file.name) AND file.name != (this.file.name) +SORT file.mtime asc +``` + +*** + +## Appendix + +*Note created on [[2024-09-07]] and last modified on [[2024-09-07]].* + +### See Also + +- + +### Backlinks + +```dataview +LIST FROM [[2024-09-07]] AND -"CHANGELOG" AND -"03-AREAS/Journal/2024-09-07" +``` + +*** + +(c) [No Clocks, LLC](https://github.com/noclocks) | 2024 + + + diff --git a/03-AREAS/Journal/2024-09-15.md b/03-AREAS/Journal/2024-09-15.md new file mode 100644 index 00000000..72c1a781 --- /dev/null +++ b/03-AREAS/Journal/2024-09-15.md @@ -0,0 +1,39 @@ +<% tp.file.include("[[Template-Fragment-Frontmatter-Daily]]") %> + +<% tp.file.include("[[Template-Fragment-Title-Daily]]") %> + +<% tp.file.include("[[Template-Fragment-Daily-Navigation]]") %> + +<% tp.file.include("[[Template-Fragment-TOC]]") %> + +## Daily Journal + +> [!NOTE] Personalized daily activity logs. + +- `...` + +## Daily Discoveries + +> [!NOTE] Anything relevant that was discovered on this day (i.e. new tools, technologies, code snippets, ideas, videos, podcasts, people, etc.) + +- `...` + +## Daily Tasks + +<% tp.file.include("[[Template-Fragment-Callout-Todoist]]") %> + + +## Metadata & Links + +<% tp.file.include("[[Template-Fragment-Callout-Daily-Metadata]]") %> + +> [!log] Created Notes Log: +> <% tp.file.include("[[Template-Dataview-Daily-Created-Notes]]") %> + +> [!log] Modified Notes Log: +> <% tp.file.include("[[Template-Dataview-Daily-Modified-Notes]]") %> + +<% tp.file.include("[[Template-Fragment-Backmatter]]") %> + + + diff --git a/03-AREAS/Journal/2024-09-16.md b/03-AREAS/Journal/2024-09-16.md new file mode 100644 index 00000000..9f4ba343 --- /dev/null +++ b/03-AREAS/Journal/2024-09-16.md @@ -0,0 +1,105 @@ +--- +creation_date: 2024-09-16 +modification_date: 2024-09-16 +author: Jimmy Briggs +tags: + - Type/Journal/Daily + - Type/Journal + - Topic/Journal + - Topic/Journal/Daily + - Status/Ongoing +aliases: + - 2024-09-16 + - September 16th, 2024 + - Monday 16th September, 2024 +publish: true +permalink: areas/journal/daily/2024-09-16 +description: Daily Journal Note for 2024-09-16. +banner_icon: +banner: +cssclasses: + - daily +--- + + +# [[2024-09-16|Monday, September 16, 2024]] + +<< [[2024-09-15]] | [[2024-09-17]] >> + +```table-of-contents +title: ## Contents +style: nestedList # TOC style (nestedList|inlineFirstLevel) +minLevel: 1 # Include headings from the specified level +maxLevel: 4 # Include headings up to the specified level +includeLinks: true # Make headings clickable +debugInConsole: false # Print debug info in Obsidian console +``` + +## Daily Journal + +> [!NOTE] Personalized daily activity logs. + +- `...` + +## Daily Discoveries + +> [!NOTE] Anything relevant that was discovered on this day (i.e. new tools, technologies, code snippets, ideas, videos, podcasts, people, etc.) + +- `...` + +## Daily Tasks + +> [!TODO]- Todoist Tasks +> ```todoist +name: Highest Priority & Date +filter: "today & ##No Clocks" +sorting: + - priority +groupBy: project +``` + + +## Metadata & Links + +> [!META]- Metadata: +> - Year:: [[2024]] +> - Month:: [[2024 September]] +> - Quarter:: [[2024Q3]] +> - Week:: [[2024 381124 38]] + +> [!log] Created Notes Log: +> ```dataview +TABLE file.folder AS Folder +WHERE file.cday = date(this.file.name) AND file.name != (this.file.name) +SORT file.folder ASC, file.name ASC +``` + +> [!log] Modified Notes Log: +> ```dataview +TABLE file.folder AS Folder +WHERE file.mday = date(this.file.name) AND file.name != (this.file.name) +SORT file.mtime asc +``` + +*** + +## Appendix + +*Note created on [[2024-09-16]] and last modified on [[2024-09-16]].* + +### See Also + +- + +### Backlinks + +```dataview +LIST FROM [[2024-09-16]] AND -"CHANGELOG" AND -"03-AREAS/Journal/2024-09-16" +``` + +*** + +(c) [No Clocks, LLC](https://github.com/noclocks) | 2024 + + + diff --git a/03-AREAS/Journal/2024-09-18.md b/03-AREAS/Journal/2024-09-18.md new file mode 100644 index 00000000..3225c30c --- /dev/null +++ b/03-AREAS/Journal/2024-09-18.md @@ -0,0 +1,105 @@ +--- +creation_date: 2024-09-18 +modification_date: 2024-09-18 +author: Jimmy Briggs +tags: + - Type/Journal/Daily + - Type/Journal + - Topic/Journal + - Topic/Journal/Daily + - Status/Ongoing +aliases: + - 2024-09-18 + - September 18th, 2024 + - Wednesday 18th September, 2024 +publish: true +permalink: areas/journal/daily/2024-09-18 +description: Daily Journal Note for 2024-09-18. +banner_icon: +banner: +cssclasses: + - daily +--- + + +# [[2024-09-18|Wednesday, September 18, 2024]] + +<< [[2024-09-17]] | [[2024-09-19]] >> + +```table-of-contents +title: ## Contents +style: nestedList # TOC style (nestedList|inlineFirstLevel) +minLevel: 1 # Include headings from the specified level +maxLevel: 4 # Include headings up to the specified level +includeLinks: true # Make headings clickable +debugInConsole: false # Print debug info in Obsidian console +``` + +## Daily Journal + +> [!NOTE] Personalized daily activity logs. + +- `...` + +## Daily Discoveries + +> [!NOTE] Anything relevant that was discovered on this day (i.e. new tools, technologies, code snippets, ideas, videos, podcasts, people, etc.) + +- `...` + +## Daily Tasks + +> [!TODO]- Todoist Tasks +> ```todoist +name: Highest Priority & Date +filter: "today & ##No Clocks" +sorting: + - priority +groupBy: project +``` + + +## Metadata & Links + +> [!META]- Metadata: +> - Year:: [[2024]] +> - Month:: [[2024 September]] +> - Quarter:: [[2024Q3]] +> - Week:: [[2024 383324 38]] + +> [!log] Created Notes Log: +> ```dataview +TABLE file.folder AS Folder +WHERE file.cday = date(this.file.name) AND file.name != (this.file.name) +SORT file.folder ASC, file.name ASC +``` + +> [!log] Modified Notes Log: +> ```dataview +TABLE file.folder AS Folder +WHERE file.mday = date(this.file.name) AND file.name != (this.file.name) +SORT file.mtime asc +``` + +*** + +## Appendix + +*Note created on [[2024-09-18]] and last modified on [[2024-09-18]].* + +### See Also + +- + +### Backlinks + +```dataview +LIST FROM [[2024-09-18]] AND -"CHANGELOG" AND -"03-AREAS/Journal/2024-09-18" +``` + +*** + +(c) [No Clocks, LLC](https://github.com/noclocks) | 2024 + + + diff --git a/03-AREAS/Journal/2024-09-21.md b/03-AREAS/Journal/2024-09-21.md new file mode 100644 index 00000000..ac84cf68 --- /dev/null +++ b/03-AREAS/Journal/2024-09-21.md @@ -0,0 +1,105 @@ +--- +creation_date: 2024-09-21 +modification_date: 2024-09-21 +author: Jimmy Briggs +tags: + - Type/Journal/Daily + - Type/Journal + - Topic/Journal + - Topic/Journal/Daily + - Status/Ongoing +aliases: + - 2024-09-21 + - September 21st, 2024 + - Saturday 21st September, 2024 +publish: true +permalink: areas/journal/daily/2024-09-21 +description: Daily Journal Note for 2024-09-21. +banner_icon: +banner: +cssclasses: + - daily +--- + + +# [[2024-09-21|Saturday, September 21, 2024]] + +<< [[2024-09-20]] | [[2024-09-22]] >> + +```table-of-contents +title: ## Contents +style: nestedList # TOC style (nestedList|inlineFirstLevel) +minLevel: 1 # Include headings from the specified level +maxLevel: 4 # Include headings up to the specified level +includeLinks: true # Make headings clickable +debugInConsole: false # Print debug info in Obsidian console +``` + +## Daily Journal + +> [!NOTE] Personalized daily activity logs. + +- `...` + +## Daily Discoveries + +> [!NOTE] Anything relevant that was discovered on this day (i.e. new tools, technologies, code snippets, ideas, videos, podcasts, people, etc.) + +- `...` + +## Daily Tasks + +> [!TODO]- Todoist Tasks +> ```todoist +name: Highest Priority & Date +filter: "today & ##No Clocks" +sorting: + - priority +groupBy: project +``` + + +## Metadata & Links + +> [!META]- Metadata: +> - Year:: [[2024]] +> - Month:: [[2024 September]] +> - Quarter:: [[2024Q3]] +> - Week:: [[2024 386624 38]] + +> [!log] Created Notes Log: +> ```dataview +TABLE file.folder AS Folder +WHERE file.cday = date(this.file.name) AND file.name != (this.file.name) +SORT file.folder ASC, file.name ASC +``` + +> [!log] Modified Notes Log: +> ```dataview +TABLE file.folder AS Folder +WHERE file.mday = date(this.file.name) AND file.name != (this.file.name) +SORT file.mtime asc +``` + +*** + +## Appendix + +*Note created on [[2024-09-21]] and last modified on [[2024-09-21]].* + +### See Also + +- + +### Backlinks + +```dataview +LIST FROM [[2024-09-21]] AND -"CHANGELOG" AND -"03-AREAS/Journal/2024-09-21" +``` + +*** + +(c) [No Clocks, LLC](https://github.com/noclocks) | 2024 + + + diff --git a/04-RESOURCES/ClickUp/No Clocks/No Clocks - [90141611707]/Decision Log[901405221852].md b/04-RESOURCES/ClickUp/No Clocks/No Clocks - [90141611707]/Decision Log[901405221852].md new file mode 100644 index 00000000..0cfa5d3a --- /dev/null +++ b/04-RESOURCES/ClickUp/No Clocks/No Clocks - [90141611707]/Decision Log[901405221852].md @@ -0,0 +1 @@ +
OrderNameStatusDate CreatedCreatorAssigneePriority
\ No newline at end of file diff --git a/04-RESOURCES/ClickUp/No Clocks/No Clocks - [90141611707]/Operations[901405221820].md b/04-RESOURCES/ClickUp/No Clocks/No Clocks - [90141611707]/Operations[901405221820].md new file mode 100644 index 00000000..0cfa5d3a --- /dev/null +++ b/04-RESOURCES/ClickUp/No Clocks/No Clocks - [90141611707]/Operations[901405221820].md @@ -0,0 +1 @@ +
OrderNameStatusDate CreatedCreatorAssigneePriority
\ No newline at end of file diff --git a/04-RESOURCES/Code/CSS/CSS - Center Image in Viewport.md b/04-RESOURCES/Code/CSS/CSS - Center Image in Viewport.md new file mode 100644 index 00000000..2ce15ec5 --- /dev/null +++ b/04-RESOURCES/Code/CSS/CSS - Center Image in Viewport.md @@ -0,0 +1,173 @@ +--- +creation_date: 2024-09-18 +modification_date: 2024-09-18 +author: Jimmy Briggs +tags: + - Type/Code + - Type/Code/CSS + - Topic/Dev + - Topic/Dev/Web + - Topic/Dev/CSS + - Status/WIP +aliases: + - CSS Center Image in Viewport Code +publish: true +permalink: +description: +image: +cssclasses: + - code +--- + +# CSS Center Image in Viewport Code + +```table-of-contents +title: ## Contents +style: nestedList # TOC style (nestedList|inlineFirstLevel) +minLevel: 1 # Include headings from the specified level +maxLevel: 4 # Include headings up to the specified level +includeLinks: true # Make headings clickable +debugInConsole: false # Print debug info in Obsidian console +``` + +## Overview + +> [!SOURCE] Sources: +> - ** + +## Code Snippet + +### HTML + +```html + + + + + Center the center of an image on the center of an HTML document + + + + + + + + + + + + +
+ +Lorem ipsum dolor sit amet, elementum tellus feugiat ante ut proin. Lorem vel +sagittis et elit amet, at purus ultrices, wisi mattis in erat urna nunc et, +vitae elementum harum, facilisis ligula nunc ac. Quam urna mauris tortor amet +sodales in, amet diam fermentum vitae dictum sagittis, incidunt leo quam nibh +nulla adipiscing mauris, condimentum nec pellentesque egestas rutrum, id odio +in at cras bibendum. Eget eget tellus, est erat ut aliquam. Integer et vitae +tincidunt dictum nec consectetuer. Justo cras eleifend condimentum, sit nam +nulla vel mauris dolor, neque ac mattis, scelerisque et dolor quis eleifend. +Integer pede vestibulum morbi. Turpis elit et. +

+Nulla tellus recusandae magna, est molestiae quisque. Vestibulum ridiculus +purus sapien eu, fermentum augue, faucibus nibh, nunc metus duis at erat. +Lobortis ac turpis, nulla amet et praesent fermentum ultrices, ligula proin +sollicitudin lobortis viverra iaculis aliquam. Libero purus dictum eros +pellentesque wisi, a dignissim urna orci, diam facilisis lectus nullam, tempus +sociis donec justo corporis. Mi sed amet facilisi aliquam nunc gravida, lorem +ac vestibulum voluptatem consequat risus, tristique arcu sem nam nostra, auctor +suspendisse. +

+Leo quam interdum ligula nulla, eu nisl phasellus condimentum posuere eiusmod, +condimentum vestibulum doloribus vel ipsum pellentesque. Iaculis laoreet +suspendisse dictum nunc vel integer. Venenatis phasellus praesent nulla +sodales. Velit nec varius nullam, pellentesque dolor elit dui vulputate, +maecenas condimentum elementum sed taciti sociosqu fermentum, sem semper +dignissim, elementum sed leo lorem vitae at adipiscing. Erat duis pede sit, sit +lobortis vivamus, amet pretium sed id arcu, facilisis molestie turpis sociosqu +proin, rhoncus pellentesque. Vehicula sit eget ligula, tincidunt velit, lorem +libero turpis quam gravida vitae, velit eleifend urna occaecat. Ante eros +ultrices posuere, tempus porttitor tempus hac sed neque sed, aliquam metus +magna, tincidunt suspendisse ullamcorper vel mi. Iaculis lorem viverra tellus. +Metus amet mattis risus eros, non nisl sollicitudin mattis commodo nam mauris, +justo facilisis ipsum praesent. Eu molestie nullam et, dictum eu eu, wisi +aliquam nulla sodales mauris ipsum libero, sem placerat. Mi curabitur commodi. +

+Sed vitae, elementum bibendum. Turpis fusce eros rutrum sed, etiam sed erat, +fringilla tortor est mauris fermentum, morbi accumsan. At non non, turpis quam +vestibulum lectus suspendisse, aliquet iaculis soluta orci sem ut. Nullam nulla +mollis, vitae commodo eleifend congue accumsan, sit adipiscing vitae interdum +urna dolor, vel perspiciatis sodales ultrices ut. Velit at a. Commodo +vestibulum etiam platea, dui odio quam a leo justo, deleniti tincidunt odio +ligula, pellentesque massa et. + +

+ + + +``` + +### CSS + +```css +img { + position: fixed; +} +``` + +## Details + +> [!NOTE] About +> This note is about ... + +## See Also + +- [[04-RESOURCES/Code/CSS/_README|CSS Code]] +- [[Cascading Style Sheets (CSS)]] +- [[Hyper Text Markup Language (HTML)]] +- [[MOC - JavaScript|JavaScript Map of Content]] + + +*** + +## Appendix + +*Note created on [[2024-09-18]] and last modified on [[2024-09-18]].* + +### See Also + +- + +### Backlinks + +```dataview +LIST FROM [[CSS - Center Image in Viewport]] AND -"CHANGELOG" AND -"04-RESOURCES/Code/CSS/CSS - Center Image in Viewport" +``` + +*** + +(c) [No Clocks, LLC](https://github.com/noclocks) | 2024 \ No newline at end of file diff --git a/04-RESOURCES/Code/JavaScript/JS - Show CSS Styles for HTML Elements.md b/04-RESOURCES/Code/JavaScript/JS - Show CSS Styles for HTML Elements.md new file mode 100644 index 00000000..14fcf321 --- /dev/null +++ b/04-RESOURCES/Code/JavaScript/JS - Show CSS Styles for HTML Elements.md @@ -0,0 +1,156 @@ +--- +creation_date: 2024-09-18 +modification_date: 2024-09-18 +author: Jimmy Briggs +tags: + - Type/Code + - Type/Code/JavaScript + - Topic/Dev + - Topic/Dev/JavaScript + - Topic/Dev/JavaScript + - Status/WIP +aliases: + - JavaScript Show CSS Styles for HTML Elements Code +publish: true +permalink: +description: +image: +cssclasses: + - code +--- + +# JavaScript Show CSS Styles for HTML Elements + +> [!SOURCE] Sources: +> - ** + +```table-of-contents +title: ## Contents +style: nestedList # TOC style (nestedList|inlineFirstLevel) +minLevel: 1 # Include headings from the specified level +maxLevel: 4 # Include headings up to the specified level +includeLinks: true # Make headings clickable +debugInConsole: false # Print debug info in Obsidian console +``` + +```javascript +// http://stackoverflow.com/a/2664055/180275 +function getStyle(elem, property_name) { + + var value, defaultView = (elem.ownerDocument || document).defaultView; + + if (defaultView && defaultView.getComputedStyle) { + + // W3C standard way. + + // sanitize property name to css notation. + //(Camel case to hyphen, fontSize => font-size) + property_name = property_name.replace(/([A-Z])/g, "-$1").toLowerCase(); + + return defaultView.getComputedStyle(elem, null).getPropertyValue(property_name); + } + else if (elem.currentStyle) { // IE + // sanitize property name to camelCase + //(Reverse of above: font-size => fontSize) + property_name = property_name.replace(/\-(\w)/g, function(str, letter) { return letter.toUpperCase(); }); + + value = elem.currentStyle[property_name]; + + if (/^\d+(em|pt|%|ex)?$/i.test(value)) { + // convert other units to pixels on IE + return (function(value) { + var oldLeft = elem.style.left, oldRsLeft = elem.runtimeStyle.left; + elem.runtimeStyle.left = elem.currentStyle.left; + elem.style.left = value || 0; + value = elem.style.pixelLeft + "px"; + elem.style.left = oldLeft; + elem.runtimeStyle.left = oldRsLeft; + return value; + })(value); + } + return value; + } + } + + function showStyleValues() { + + var html = document.getElementsByTagName('html')[0]; + var body = document.getElementsByTagName('body')[0]; + + var tab = document.createElement('table'); + + tab.style.width='100%'; + tab.setAttribute('border','1'); + + var tab_body = document.createElement('tbody'); + + for (var style_name in html.style) { + + var tr = document.createElement('tr'); + + var td_name = document.createElement('td'); + var td_html_value = document.createElement('td'); + var td_body_value = document.createElement('td'); + + var html_val = getStyle(html, style_name); + var body_val = getStyle(body, style_name); + + td_name .appendChild(document.createTextNode(style_name)); + td_html_value.appendChild(document.createTextNode(html_val )); + td_body_value.appendChild(document.createTextNode(body_val )); + + if (html_val != body_val) { + td_html_value.style['color'] = 'red'; + td_body_value.style['color'] = 'red'; + } + + tr.appendChild(td_name ); + tr.appendChild(td_html_value); + tr.appendChild(td_body_value); + + tab_body.appendChild(tr); + } + tab.appendChild(tab_body); + + body.appendChild(tab) + + } + + function main() { + showStyleValues(); + } +``` + +## Details + +> [!NOTE] About +> This note is about ... + +## See Also + +- [[MOC - JavaScript|JavaScript Map of Content]] +- [[04-RESOURCES/Code/JavaScript/_README|JavaScript Code]] +- [[Hyper Text Markup Language (HTML)]] +- [[Cascading Style Sheets (CSS)]] +- [[Tool - React.js|React.js]] +- [[Tool - JS - Next.js|Next.js]] + +*** + +## Appendix + +*Note created on [[2024-09-18]] and last modified on [[2024-09-18]].* + +### See Also + +- + +### Backlinks + +```dataview +LIST FROM [[JS - Show CSS Styles for HTML Elements]] AND -"CHANGELOG" AND -"04-RESOURCES/Code/JavaScript/JS - Show CSS Styles for HTML Elements" +``` + +*** + +(c) [No Clocks, LLC](https://github.com/noclocks) | 2024 \ No newline at end of file diff --git a/04-RESOURCES/Code/PowerShell/PowerShell - Check CPU Battery Status.md b/04-RESOURCES/Code/PowerShell/PowerShell - Check CPU Battery Status.md new file mode 100644 index 00000000..aa64fdaa --- /dev/null +++ b/04-RESOURCES/Code/PowerShell/PowerShell - Check CPU Battery Status.md @@ -0,0 +1,96 @@ +--- +creation_date: 2024-09-18 +modification_date: 2024-09-18 +author: Jimmy Briggs +tags: + - Type/Code + - Type/Code/PowerShell + - Topic/Dev + - Topic/Dev/Windows + - Topic/Dev/PowerShell + - Status/WIP +aliases: + - PowerShell PowerShell - Check CPU Battery Status Code +publish: true +permalink: +description: +image: +cssclasses: + - code +--- + +# Check CPU Battery Status PowerShell Code + +```table-of-contents +title: ## Contents +style: nestedList # TOC style (nestedList|inlineFirstLevel) +minLevel: 1 # Include headings from the specified level +maxLevel: 4 # Include headings up to the specified level +includeLinks: true # Make headings clickable +debugInConsole: false # Print debug info in Obsidian console +``` + +## Overview + +> [!SOURCE] Sources: +> - ** + +## Code Snippet + +```powershell +$b = get-cimInstance Win32_Battery + +$batteryStatus =( @{ + 1 = 'Discharging' + 2 = 'Connected to AC' # 'Unknown' + 3 = 'Fully charged' + 4 = 'Low' + 5 = 'Critical' + 6 = 'Charging' + 7 = 'Charging/High' + 8 = 'Charging/Low' + 9 = 'Charging/Critical' + 10 = 'Undefined' + 11 = 'Partially Charged' +} +)[ $b.batteryStatus -as [int] ] + + +"$($b.caption) $($b.name): $($b.status)" +" Status: $batteryStatus ($($b.batteryStatus))" +" Charged: $($b.estimatedChargeRemaining) %" + +if ($b.timeToFullCharge) { +" Time to full charge: $($b.timeToFullCharge) Minutes" +} +``` + +## Details + +> [!NOTE] About +> This note is about ... + +## See Also + +- [[04-RESOURCES/Code/PowerShell/_README|PowerShell Code]] +- [[MOC - PowerShell|PowerShell Map of Content]] + +*** + +## Appendix + +*Note created on [[2024-09-18]] and last modified on [[2024-09-18]].* + +### See Also + +- + +### Backlinks + +```dataview +LIST FROM [[PowerShell - Check CPU Battery Status]] AND -"CHANGELOG" AND -"04-RESOURCES/Code/PowerShell/PowerShell - Check CPU Battery Status" +``` + +*** + +(c) [No Clocks, LLC](https://github.com/noclocks) | 2024 \ No newline at end of file diff --git a/04-RESOURCES/Code/PowerShell/PowerShell DNSServer Module.md b/04-RESOURCES/Code/PowerShell/PowerShell - DNSServer Module.md similarity index 100% rename from 04-RESOURCES/Code/PowerShell/PowerShell DNSServer Module.md rename to 04-RESOURCES/Code/PowerShell/PowerShell - DNSServer Module.md diff --git a/04-RESOURCES/Code/PowerShell/PowerShell - Empty Recycle Bin.md b/04-RESOURCES/Code/PowerShell/PowerShell - Empty Recycle Bin.md new file mode 100644 index 00000000..f0b099cd --- /dev/null +++ b/04-RESOURCES/Code/PowerShell/PowerShell - Empty Recycle Bin.md @@ -0,0 +1,89 @@ +--- +creation_date: 2024-09-18 +modification_date: 2024-09-18 +author: Jimmy Briggs +tags: + - Type/Code + - Type/Code/PowerShell + - Topic/Dev + - Topic/Dev/Windows + - Topic/Dev/PowerShell + - Status/WIP +aliases: + - PowerShell PowerShell - Empty Recycle Bin Code +publish: true +permalink: +description: +image: +cssclasses: + - code +--- + +# Empty Recycle Bin PowerShell Code + +```table-of-contents +title: ## Contents +style: nestedList # TOC style (nestedList|inlineFirstLevel) +minLevel: 1 # Include headings from the specified level +maxLevel: 4 # Include headings up to the specified level +includeLinks: true # Make headings clickable +debugInConsole: false # Print debug info in Obsidian console +``` + +## Overview + +> [!SOURCE] Sources: +> - ** + +## Code Snippet + +```powershell +Add-Type Shell32 @" + [DllImport("shell32.dll")] + public static extern int SHEmptyRecycleBin( + IntPtr hwnd, + string pszRootPath, + int dwFlags + ); +"@ -NameSpace System + +$SHERB_NOCONFIRMATION = 0x1 +$SHERB_NOPROGRESSUI = 0x2 +$SHERB_NOSOUND = 0x4 +$dwFlags = $SHERB_NOCONFIRMATION +$res = [shell32]::SHEmptyRecycleBin([IntPtr]::Zero, $null, $dwFlags) +if ($res) { "Error 0x{0:x8}: {1}" -f $res,` + (new-object ComponentModel.Win32Exception($res)).Message +} +exit $res +``` + +## Details + +> [!NOTE] About +> This note is about ... + +## See Also + +- [[04-RESOURCES/Code/PowerShell/_README|PowerShell Code]] +- [[MOC - PowerShell|PowerShell Map of Content]] + +*** + +## Appendix + +*Note created on [[2024-09-18]] and last modified on [[2024-09-18]].* + +### See Also + +- + +### Backlinks + +```dataview +LIST FROM [[PowerShell - Empty Recycle Bin]] AND -"CHANGELOG" AND -"04-RESOURCES/Code/PowerShell/PowerShell - Empty Recycle Bin" +``` + +*** + +(c) [No Clocks, LLC](https://github.com/noclocks) | 2024 \ No newline at end of file diff --git a/04-RESOURCES/Code/PowerShell/PowerShell - Review Explorer Recent Items.md b/04-RESOURCES/Code/PowerShell/PowerShell - Review Explorer Recent Items.md new file mode 100644 index 00000000..c58a3721 --- /dev/null +++ b/04-RESOURCES/Code/PowerShell/PowerShell - Review Explorer Recent Items.md @@ -0,0 +1,91 @@ +--- +creation_date: 2024-09-18 +modification_date: 2024-09-18 +author: Jimmy Briggs +tags: + - Type/Code + - Type/Code/PowerShell + - Topic/Dev + - Topic/Dev/Windows + - Topic/Dev/PowerShell + - Status/WIP +aliases: + - PowerShell PowerShell - Review Explorer Recent Items Code +publish: true +permalink: +description: +image: +cssclasses: + - code +--- + +# Review Explorer Recent Items PowerShell Code + +```table-of-contents +title: ## Contents +style: nestedList # TOC style (nestedList|inlineFirstLevel) +minLevel: 1 # Include headings from the specified level +maxLevel: 4 # Include headings up to the specified level +includeLinks: true # Make headings clickable +debugInConsole: false # Print debug info in Obsidian console +``` + +## Overview + +> [!SOURCE] Sources: +> - ** + +## Code Snippet + +```powershell +# Create Shell Object +$sh = New-Object -ComObject WScript.Shell + +# Specify Path +$RecentItemsPath = "$Env:APPDATA\Roaming\Microsoft\Windows\Recent" + +# Get Recent Items +$RecentItems = Get-ChildItem -Path $RecentItemsPath -Filter "*.lnk" | + Sort-Object LastAccessTime + +# Loop and Output +$RecentItems | ForEach-Object { + $lnk = $sh.CreateShortcut($_.FullName) + $tgt = $lnk.TargetPath + if ($tgt) { + if (Test-Path -Path $tgt -PathType Leaf) { + Write-Host "$($_.LastAccessTime.ToString('yyyy-MM-dd HH:mm:ss')) $($lnk.TargetPath)" + } + } +} +``` + +## Details + +> [!NOTE] About +> This note is about ... + +## See Also + +- [[04-RESOURCES/Code/PowerShell/_README|PowerShell Code]] +- [[MOC - PowerShell|PowerShell Map of Content]] + +*** + +## Appendix + +*Note created on [[2024-09-18]] and last modified on [[2024-09-18]].* + +### See Also + +- + +### Backlinks + +```dataview +LIST FROM [[PowerShell - Review Explorer Recent Items]] AND -"CHANGELOG" AND -"04-RESOURCES/Code/PowerShell/PowerShell - Review Explorer Recent Items" +``` + +*** + +(c) [No Clocks, LLC](https://github.com/noclocks) | 2024 \ No newline at end of file diff --git a/04-RESOURCES/Code/Python/Python - Exception Handling.md b/04-RESOURCES/Code/Python/Python - Exception Handling.md new file mode 100644 index 00000000..1fcd2269 --- /dev/null +++ b/04-RESOURCES/Code/Python/Python - Exception Handling.md @@ -0,0 +1,106 @@ +--- +creation_date: 2024-09-18 +modification_date: 2024-09-18 +author: Jimmy Briggs +tags: + - Type/Code + - Type/Code/Python + - Topic/Dev + - Topic/Dev/Python + - Topic/Dev/Python + - Status/WIP +aliases: + - Exception Handling Python Code +publish: true +permalink: +description: +image: +cssclasses: + - code +--- + +# Exception Handling Python Code + +```table-of-contents +title: ## Contents +style: nestedList # TOC style (nestedList|inlineFirstLevel) +minLevel: 1 # Include headings from the specified level +maxLevel: 4 # Include headings up to the specified level +includeLinks: true # Make headings clickable +debugInConsole: false # Print debug info in Obsidian console +``` + +## Overview + +> [!SOURCE] Sources: +> - *https://github.com/ReneNyffenegger/about-python/blob/master/exception-handling/demo.py* + +## Code + +```python +class Ex_Base(BaseException): + pass + +class Ex_Deriv(Ex_Base): + pass + +# -------------------------------------- + +try: + print('Before raising the exception') + raise Ex_Deriv() + print('After raising the exception') + +except Ex_Deriv as e: # Order of except statements is important. + print('Ex_Deriv caught') # Try to catch the more concrete class first. + +except Ex_Base as e: + print('Ex_Base caught') + + +# -------------------------------------- + +try: + print('Before raising the exception') + raise Ex_Deriv() + print('After raising the exception') + +except Ex_Base as e: # Probably wrong order. + print('Ex_Base caught') + +except Ex_Deriv as e: + print('Ex_Deriv caught') +``` + +## Details + +> [!NOTE] About +> This note is about ... + +## See Also + +- [[MOC - Python|Python Map of Content]] +- [[04-RESOURCES/Code/Python/_README|Python Code]] +- [[Tool - Python]] +- [[Tool - Python Flask]] + + +*** + +## Appendix + +*Note created on [[2024-09-18]] and last modified on [[2024-09-18]].* + +### See Also + +- + +### Backlinks + +```dataview +LIST FROM [[Python - Exception Handling]] AND -"CHANGELOG" AND -"04-RESOURCES/Code/Python/Python - Exception Handling" +``` + +*** + +(c) [No Clocks, LLC](https://github.com/noclocks) | 2024 \ No newline at end of file diff --git a/04-RESOURCES/Code/Python/Python - OpenAI.md b/04-RESOURCES/Code/Python/Python - OpenAI.md new file mode 100644 index 00000000..afba21c0 --- /dev/null +++ b/04-RESOURCES/Code/Python/Python - OpenAI.md @@ -0,0 +1,112 @@ +--- +creation_date: 2024-09-18 +modification_date: 2024-09-18 +author: Jimmy Briggs +tags: + - Type/Code + - Type/Code/Python + - Topic/Dev + - Topic/Dev/Python + - Topic/Dev/Python + - Status/WIP +aliases: + - OpenAI Python Code +publish: true +permalink: +description: +image: +cssclasses: + - code +--- + +# OpenAI Python Code + +```table-of-contents +title: ## Contents +style: nestedList # TOC style (nestedList|inlineFirstLevel) +minLevel: 1 # Include headings from the specified level +maxLevel: 4 # Include headings up to the specified level +includeLinks: true # Make headings clickable +debugInConsole: false # Print debug info in Obsidian console +``` + +## Overview + +> [!SOURCE] Sources: +> - *https://pypi.org/project/openai/* + +## Code + +### Installation + +```bash +pip install openai +``` + +### Examples + +```python +#!/usr/bin/python3 +import os +import sys +from openai import OpenAI + +# Specify API Key +OPENAI_API_KEY = os.getenv("OPENAI_API_KEY") + +# Specify Model (https://platform.openai.com/docs/models) +OPENAI_MODEL = "gpt-3.5-turbo" + +# Create Client +client = OpenAI( + api_key=OPENAI_API_KEY, +) + +# Perform a Chat Completion +chat_completion = client.chat.completions.create( + messages = [ + { + "role": "user", + "content": "Say this is a test", + } + ], + model = OPENAI_MODEL, +) + + + + +``` + +## Details + +> [!NOTE] About +> This note is about ... + +## See Also + +- [[MOC - Python|Python Map of Content]] +- [[04-RESOURCES/Code/Python/_README|Python Code]] +- [[Tool - Python]] +- [[Tool - Python Flask]] + + +*** + +## Appendix + +*Note created on [[2024-09-18]] and last modified on [[2024-09-18]].* + +### See Also + +- + +### Backlinks + +```dataview +LIST FROM [[Python - OpenAI]] AND -"CHANGELOG" AND -"04-RESOURCES/Code/Python/Python - OpenAI" +``` + +*** + +(c) [No Clocks, LLC](https://github.com/noclocks) | 2024 \ No newline at end of file diff --git a/04-RESOURCES/Code/Registry/Registry - Set Dark Theme.md b/04-RESOURCES/Code/Registry/Registry - Set Dark Theme.md new file mode 100644 index 00000000..c80be4bb --- /dev/null +++ b/04-RESOURCES/Code/Registry/Registry - Set Dark Theme.md @@ -0,0 +1,92 @@ +--- +creation_date: 2024-09-18 +modification_date: 2024-09-18 +author: Jimmy Briggs +tags: + - Type/Code + - Type/Code/Registry + - Topic/Dev + - Topic/Dev/Windows + - Status/WIP +aliases: + - Set Dark Theme Registry Code +publish: true +permalink: +description: +image: +cssclasses: + - code +--- + +# Set Dark Theme Registry Code + +```table-of-contents +title: ## Contents +style: nestedList # TOC style (nestedList|inlineFirstLevel) +minLevel: 1 # Include headings from the specified level +maxLevel: 4 # Include headings up to the specified level +includeLinks: true # Make headings clickable +debugInConsole: false # Print debug info in Obsidian console +``` + +## Overview + +> [!SOURCE] Sources: +> - ** + +## Code Snippet + +```registry +Windows Registry Editor Version 5.00 + +[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize] +"ColorPrevalence"=dword:00000000 +"EnableTransparency"=dword:00000001 +"AppsUseLightTheme"=dword:00000000 +"SystemUsesLightTheme"=dword:00000000 +``` + +Using `cmd`: + +```cmd +reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize" /v AppsUseLightTheme /t REG_DWORD /d 0 /f +reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize" /v SystemUsesLightTheme /t REG_DWORD /d 0 /f +reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize" /v EnableTransparency /t REG_DWORD /d 1 /f +pause +``` + +## Details + +> [!NOTE] About +> This note is about ... + +## See Also + +- [[04-RESOURCES/Code/Registry/_README|Windows Registry Code Snippets]] +- [[04-RESOURCES/Code/PowerShell/_README|PowerShell Code]] +- [[04-RESOURCES/Code/Cmd/_README|Command Line Code]] +- [[Tool - Microsoft Windows]] +- [[MOC - Development|Development Map of Content]] +- [[MOC - Technology|Technology Map of Content]] +- [[MOC - Computer Science|Computer Science Map of Content]] + + +*** + +## Appendix + +*Note created on [[2024-09-18]] and last modified on [[2024-09-18]].* + +### See Also + +- + +### Backlinks + +```dataview +LIST FROM [[Registry - Set Dark Theme]] AND -"CHANGELOG" AND -"04-RESOURCES/Code/Registry/Registry - Set Dark Theme" +``` + +*** + +(c) [No Clocks, LLC](https://github.com/noclocks) | 2024 \ No newline at end of file diff --git a/04-RESOURCES/Definitions/Acronyms/Browser Object Model (BOM).md b/04-RESOURCES/Definitions/Acronyms/Browser Object Model (BOM).md new file mode 100644 index 00000000..d8994da8 --- /dev/null +++ b/04-RESOURCES/Definitions/Acronyms/Browser Object Model (BOM).md @@ -0,0 +1,91 @@ +--- +creation_date: 2024-09-18 +modification_date: 2024-09-18 +author: Jimmy Briggs +tags: + - Type/Acronym + - Topic/NA + - Status/WIP +aliases: + - Browser Object Model (BOM) + - BOM + - Browser Object Model +publish: true +permalink: +description: +image: +cssclasses: +--- + +# Browser Object Model (BOM) + +> [!SOURCE] Sources: +> - ** + +```table-of-contents +title: ## Contents +style: nestedList # TOC style (nestedList|inlineFirstLevel) +minLevel: 1 # Include headings from the specified level +maxLevel: 4 # Include headings up to the specified level +includeLinks: true # Make headings clickable +debugInConsole: false # Print debug info in Obsidian console +``` + +## Overview + +> [!NOTE] About +> Wikipedia: The Browser Object Model (BOM) is a browser-specific convention referring to all the objects exposed by the web browser. Unlike the [[Document Object Model (DOM)]], there is no standard for implementation and no strict definition, so browser vendors are free to implement the BOM in any way they wish. + +Investigating the BOM: + +```plaintext +window +| ++---document +| | +| +---anchors +| | +| +---forms +| | +| +---links +| | +| +---images +| ++---frames +| ++---history +| ++---location +| ++---navigator +| ++---screen ++ ++---console +``` + +For the `document` element and its element beneath see the [Document Object Model](https://github.com/ReneNyffenegger/about-Document-Object-Model). + +## Resources + +*** + +## Appendix + +*Note created on [[2024-09-18]] and last modified on [[2024-09-18]].* + +### See Also + +- + +### Backlinks + +```dataview +LIST FROM [[Browser Object Model (BOM)]] AND -"CHANGELOG" AND -"04-RESOURCES/Definitions/Acronyms/Browser Object Model (BOM)" +``` + +*** + +(c) [No Clocks, LLC](https://github.com/noclocks) | 2024 + + diff --git a/04-RESOURCES/Tools/Tool - R bslib.md b/04-RESOURCES/Tools/Tool - R bslib.md new file mode 100644 index 00000000..0b1d5144 --- /dev/null +++ b/04-RESOURCES/Tools/Tool - R bslib.md @@ -0,0 +1,55 @@ +--- +creation_date: 2024-09-21 +modification_date: 2024-09-21 +author: Jimmy Briggs +tags: + - Type/Tool + - Topic/NA + - Status/WIP +aliases: + - Tool - R bslib + - R bslib +publish: true +permalink: +description: +image: +cssclasses: + - tool +--- + + +# R bslib + +```table-of-contents +title: ## Contents +style: nestedList # TOC style (nestedList|inlineFirstLevel) +minLevel: 1 # Include headings from the specified level +maxLevel: 4 # Include headings up to the specified level +includeLinks: true # Make headings clickable +debugInConsole: false # Print debug info in Obsidian console +``` + +## Overview + +> [!SOURCE] Sources: +> - ** + +*** + +## Appendix + +*Note created on [[2024-09-21]] and last modified on [[2024-09-21]].* + +### See Also + +- + +### Backlinks + +```dataview +LIST FROM [[Tool - R bslib]] AND -"CHANGELOG" AND -"04-RESOURCES/Tools/Tool - R bslib" +``` + +*** + +(c) [No Clocks, LLC](https://github.com/noclocks) | 2024 \ No newline at end of file