Movatterモバイル変換


[0]ホーム

URL:


Skip to content
Search Gists
Sign in Sign up

Instantly share code, notes, and snippets.

@mostlygeek
mostlygeek /qwen3-coder-30B-A3B.jinja
CreatedNovember 30, 2025 07:54
qwen3-coder-30B jinja template, works with Claude Code
{# ============================================================================
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
mostlygeek /windows-keys.md
CreatedNovember 25, 2025 06:00— forked fromrvrsh3ll/windows-keys.md
Windows Product Keys

These are NOT product / license keys that are valid for Windows activation.
These keys only select the edition of Windows to install during setup, but they do not activate or license the installation.

Index

@mostlygeek
mostlygeek /tsidp-layout.txt
CreatedSeptember 3, 2025 17:58
refactor pkg layout
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.
@mostlygeek
mostlygeek /tsidp.go
Last activeSeptember 3, 2025 17:47
tsidp.go refactor
// The tsidp command is an OpenID Connect Identity Provider server.
package main
import (
"context"
"errors"
"flag"
"fmt"
"log"
"net"
@mostlygeek
mostlygeek /demo.tsx
CreatedJune 11, 2025 00:25
keyboard avoiding view for ios, react-native, that actually kinda works as expected.
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();

List all the reasons why supporting a child with a learning disability (or any sort of extra support needs) is so complicated.

Combined Summary

Here is the combined list of reasons why supporting a child with a learning disability or extra support needs is complicated:

  1. Individualized Needs: Each child has unique needs and strengths, requiring tailored strategies.
  2. Diagnostic Challenges: Accurate diagnosis can be difficult, and symptoms may overlap with other conditions.
@mostlygeek
mostlygeek /gist:da429769796ac8a111142e75660820f1
Last activeDecember 2, 2024 19:42
testing llama-swap settings for performance
#
# 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
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:
- reel layout
- payline layouts
-
# lives with the python code:
/game_data/
/slots
shrek.json
@mostlygeek
mostlygeek /Makefile
CreatedOctober 12, 2023 22:23
Makefile for extract BC special needs data
#
# 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

[8]ページ先頭

©2009-2025 Movatter.jp