This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Import-Module Terminal-Icons | |
| Import-Module posh-git | |
| function prompt { | |
| function Get-CPUUsage { | |
| $cpu = Get-CimInstance -ClassName Win32_Processor | Select-Object -ExpandProperty LoadPercentage | |
| return $cpu | |
| } | |
| function Get-MemoryUsage { | |
| $mem = Get-CimInstance -ClassName Win32_OperatingSystem |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
| // Zed settings | |
| // | |
| // For information on how to configure Zed, see the Zed | |
| // documentation: https://zed.dev/docs/configuring-zed | |
| // | |
| // To see all of Zed's default settings without changing your | |
| // custom settings, run `zed: open default settings` from the | |
| // command palette (cmd-shift-p / ctrl-shift-p) | |
| { | |
| "language_models": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const std = @import("std"); | |
| // DTO for deserialization | |
| const LLMResponse = struct { | |
| id: []const u8, // Unique identifier for the response | |
| object: []const u8, // Type of object returned | |
| created: u32, // Unix timestamp of when the response was generated | |
| model: []const u8, // Name of the model used to generate the response | |
| usage: ?struct { // Usage statistics for the response, optional | |
| prompt_tokens: u32, // Number of tokens in the prompt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let tabGroups = document.getElementsByClassName('tabGroup'); | |
| const headerTemplatizer = (tabCount, timestamp) => ` | |
| --- | |
| ## ${tabCount} | |
| > ${timestamp} | |
| `; | |
| const tabTemplatizer = (textContent, href) => `[${textContent}](${href})`; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
| "blocks": [ | |
| { | |
| "alignment": "left", | |
| "newline": true, | |
| "segments": [ | |
| { | |
| "foreground": "#00ff00", | |
| "style": "plain", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Informational R. Pantos, Ed. | |
| Internet-Draft Apple Inc. | |
| Obsoletes: 8216 (if approved) 17 February 2025 | |
| Intended status: Informational | |
| Expires: 21 August 2025 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| .SYNOPSIS | |
| Generate a context file by compiling the contents of files in a directory. | |
| .DESCRIPTION | |
| This script scans a specified directory, compiles file contents into a single output file, and excludes specified directories, files, and optionally hidden paths (with dot-prefixed names). It respects a maximum file size limit and provides detailed logging. | |
| .PARAMETER OutputFile | |
| Specifies the output file name. Default is "context.txt". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Write-Host "Creating .vscode" | |
| New-Item -Path .\.vscode -ItemType Directory | Out-Null | |
| Write-Host "Creating .vscode\settings.json" | |
| New-Item -Path .\.vscode\settings.json -ItemType File | Out-Null | |
| Write-Host "Creating .gitignore" | |
| New-Item -Path .\.gitignore -ItemType File | Out-Null | |
| Write-Host "Creating README.md" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "time" | |
| ) | |
| func main () { | |
| var c = make(chan int, 5) | |
| go process(c) |
NewerOlder