Skip to content

Instantly share code, notes, and snippets.

View arichiardi's full-sized avatar

Andrea Richiardi arichiardi

  • Canada
View GitHub Profile
@fakezeta
fakezeta / qwen3.6_merged_template.jinja
Last active May 29, 2026 19:36
Merged Qwen Multimodal Chat Template from allanchan339 and froggeric
{# =========================
Merged Qwen Multimodal Chat Template from
- https://github.com/allanchan339/vLLM-Qwen3-3.5-3.6-chat-template-fix
- https://huggingface.co/froggeric/Qwen-Fixed-Chat-Templates
Features:
- developer role supported (from froggeric)
- <|think_on|> / <|think_off|> toggles (from froggeric)
- Historical reasoning HIDDEN by default (from allanchan339)
- String-form tool arguments parsed as JSON (from allanchan339)
- Non-ASCII escaped in tools/args JSON (from froggeric)
@adham-omran
adham-omran / prompt.md
Created January 23, 2025 06:28
Clojure Documentation LLM Prompt

You are an expert Clojure developer with 15 years of experience, write a rich docstring for the provided function form using the following guidelines

  • Let the first line in the docstring be a complete, capitalized sentence which concisely describes the var in question. This makes it easy for tooling (Clojure editors and IDEs) to display a short a summary of the docstring at various places.
  • Document all positional arguments, and wrap them them with backticks () so that editors and IDEs can identify them and potentially provide extra functionality for them.
  • Wrap any var references in the docstring with so that tooling can identify them. Wrap them with [[..]] if you want to link to them
  • Docstrings should be composed of well-formed English sentences. Every sentence should start with a capitalized word, be grammatically coherent, and end with appropriate punctuation. Sentences should be separated with a single space.
  • Indent multi-line docstrings by two spaces.
  • Neither start nor end your docstrings
@chase-lambert
chase-lambert / onefile.clj
Created January 16, 2025 01:56
Concatenates all your git repo's clojure files into one file
#!/usr/bin/env bb
;; A Babashka script to concatenate all Clojure files in a repository into a single file.
;; Respects .gitignore patterns and includes clear file separation markers.
;;
;; Usage:
;; ./onefile.clj ; uses current git repo and default output
;; ./onefile.clj /path/to/repo ; uses custom repo path
;; ./onefile.clj /path/to/repo out.clj ; specifies output filename
;;
@arvati
arvati / reboot.md
Last active November 26, 2025 02:12
Reboot Openwrt
@Artefact2
Artefact2 / README.md
Last active May 29, 2026 23:08
GGUF quantizations overview
@padeoe
padeoe / README_hfd.md
Last active May 29, 2026 21:08
CLI-Tool for download Huggingface models and datasets with aria2/wget: hfd

🤗Huggingface Model Downloader

Note

(2025-01-08) Add feature for 🏷️Tag(Revision) Selection, contributed by @Bamboo-D.
(2024-12-17) Add feature for ⚡Quick Startup and ⏭️Fast Resume, enabling skipping of downloaded files, while removing the git clone dependency to accelerate file list retrieval.

Considering the lack of multi-threaded download support in the official huggingface-cli, and the inadequate error handling in hf_transfer, This command-line tool leverages curl and aria2c for fast and robust downloading of models and datasets.

Features

  • ⏯️ Resume from breakpoint: You can re-run it or Ctrl+C anytime.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; BACK UP YOUR LOGSEQ DIR BEFORE RUNNING THIS!
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Copyright (C) Aug 4 2022, William R. Burdick Jr.
;;
;; LICENSE
;; This code is dual-licensed with MIT and GPL licenses.
@borkdude
borkdude / 01-README.md
Last active May 4, 2023 03:42
Shadow CLJS require ES Module in script

This shows how to require ES modules in a node script which is itself compiled as an ES module by shadow. I made this to verify if nbb's way of requiring ES modules aligns with other tools that accomplish the same using the CLJS compiler.

Build with npx shadow-cljs compile script. Run with node out/script.js. It will print something like:

#js {:columns 202, :rows 45}
[Function: Spinner]
(defonce ^Logger logger (doto (Logger/getLogger "clojure")
(.setUseParentHandlers false)
(.addHandler
(doto (ConsoleHandler.)
(.setLevel Level/ALL)
(.setFormatter
(proxy [SimpleFormatter] []
(format [^LogRecord record]
(let [sb (StringBuilder.)]
(.append sb "#:log{")
@baskeboler
baskeboler / clipboard.clj
Last active April 11, 2021 01:21 — forked from brake/clipboard.clj
Write pretty printed Clojure data structures to the clipboard
(ns clipboard.core
(:require [fipp.edn :as fipp])
(:import (java.awt.datatransfer DataFlavor Transferable StringSelection)
(java.awt Toolkit)
(java.io StringWriter))
(defn get-clipboard
"get system clipboard"
[]
(-> (Toolkit/getDefaultToolkit)