Instantly share code, notes, and snippets.
- Vancouver, BC
- http://mostlygeek.com
mostlygeek /qwen3-coder-30B-A3B.jinja
CreatedNovember 30, 2025 07:54
qwen3-coder-30B jinja template, works with Claude Code 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
| {# ============================================================================ | |
| MACRO: render_extra_keys | |
| Renders any JSON keys not already handled into XML-style tags | |
| Adapted from: https://huggingface.co/ggml-org/Qwen3-Coder-30B-A3B-Instruct-Q8_0-GGUF/blob/main/qwen3-coder-30b-a3b-instruct-q8_0.gguf | |
| ============================================================================ #} | |
| {%macrorender_extra_keys(json_dict,handled_keys)%} | |
| {%-ifjson_dictismapping%} | |
| {%-forjson_keyinjson_dictifjson_keynotinhandled_keys%} | |
| {%-ifjson_dict[json_key]ismapping%} | |
| {{- '\n<' ~ json_key ~ '>' ~ (json_dict[json_key] | tojson | safe) ~ '</' ~ json_key ~ '>' }} |
mostlygeek /windows-keys.md
CreatedNovember 25, 2025 06:00 — forked fromrvrsh3ll/windows-keys.md
Windows Product Keys 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
| tsidp/ | |
| ├── tsidp.go | |
| ├── internal/ | |
| │ ├── app/ // Core application logic and the idpServer struct. | |
| │ ├── crypto/ // Key generation, signing, and management. | |
| │ ├── handlers/ // All HTTP handlers and routing setup. | |
| │ ├── oidc/ // OIDC/OAuth2 specific types and metadata logic. | |
| │ ├── pkce/ // Self-contained PKCE validation logic. | |
| │ └── store/ // Data persistence for clients and tokens. | |
| └── ui/ // (Future) Stub for HTML/CSS/JS assets. |
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
| // The tsidp command is an OpenID Connect Identity Provider server. | |
| package main | |
| import ( | |
| "context" | |
| "errors" | |
| "flag" | |
| "fmt" | |
| "log" | |
| "net" |
mostlygeek /demo.tsx
CreatedJune 11, 2025 00:25
keyboard avoiding view for ios, react-native, that actually kinda works as expected. 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{KeyboardAvoidingView,TextInput,StyleSheet,View}from"react-native"; | |
| importAnimated,{useAnimatedKeyboard,useAnimatedStyle}from"react-native-reanimated"; | |
| import{Text}from"@/themes"; | |
| import{useState}from"react"; | |
| exportdefaultfunctionScreen(){ | |
| const[content,setContent]=useState(()=>{ | |
| returnArray.from({length:100},(_,i)=>`Line${i+1}`).join("\n"); | |
| }); | |
| constkeyboard=useAnimatedKeyboard(); |
mostlygeek /child-development.md
Last activeDecember 12, 2024 18:28
mostlygeek /gist:da429769796ac8a111142e75660820f1
Last activeDecember 2, 2024 19:42
testing llama-swap settings for performance 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
| # | |
| # Run "write sname game in $lang" with different llama-swap profiles and llama.cpp | |
| # greps logs for latest `eval time` | |
| # | |
| for model in "qwen-coder-32b-q4-nodraft" "qwen-coder-32b-q4" "qwen-coder-32b-q4-w-ctk"; do | |
| for lang in "python" "typescript" "swift"; do | |
| echo "Generating Snake Game in $lang using $model" | |
| curl -s --url http://localhost:8080/v1/chat/completions -d "{\"messages\": [{\"role\": \"system\", \"content\": \"you only write code.\"}, {\"role\": \"user\", \"content\": \"write snake game in $lang\"}], \"temperature\": 0.1, \"top_k\": 1, \"model\":\"$model\"}" > /dev/null | |
| curl -s --url http://localhost:8080/logs | grep 'eval time' | tail -n 2 |
mostlygeek /gist:fef5c4c0b588ca25ba7a2b3d81c9a4ad
CreatedApril 17, 2024 20:34
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
| Find 8 broad categories across the list of struggles faced by parents and caregivers of children with ADHD and or autism. Include a description for each category. | |
| Each category should be in this format: | |
| ## Category Name | |
| Short description of the struggles faced by parents and caregivers | |
| List of Struggles: |
mostlygeek /gist:515c83fc49a3da7398fd2f023a5de074
CreatedFebruary 8, 2024 06:10
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
| - reel layout | |
| - payline layouts | |
| - | |
| # lives with the python code: | |
| /game_data/ | |
| /slots | |
| shrek.json |
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
| # | |
| # Statistics from data.gov.bc.ca for students with diverse needs | |
| # | |
| # - downloads the csv file | |
| # - uses csvkit to create the extracted data files | |
| # | |
| INPUT = source.csv | |
| OUTPUT_DIR = output |
NewerOlder