Skip to content

Instantly share code, notes, and snippets.

View davo's full-sized avatar
🦮
Golden

Davo Galavotti davo

🦮
Golden
View GitHub Profile
@spideynolove
spideynolove / Guide.md
Last active November 4, 2025 23:53
Claude Code Multi-Provider Setup

Claude Code Multi-Provider Setup Guide

Overview

Claude Code is a powerful command-line interface that allows developers to interact with Anthropic's Claude AI models for coding assistance. This guide provides two battle-tested methods to configure Claude Code to work with multiple LLM providers beyond just Anthropic, including models from DeepSeek, z.ai (GLM), Kimi, and OpenRouter.

This empowers you to switch between the best model for any given task without ever leaving your terminal. Two Approaches to Flexibility

  • Shell Functions: A simple, lightweight, and robust method for switching providers before starting a session. Perfect for most use cases.
@NazCodeland
NazCodeland / css-units.css
Last active February 11, 2025 14:16
css units
{
"absolute": ["px", "deg", "in", "cm", "mm", "pt", "pc", "ex"],
"relative": ["rem", "em", "%", "ch"],
"viewport": {
"inline": ["vi", "dvi", "svi", "lvi", "vw", "dvw", "svw", "lvw"],
"block": ["vb", "dvb", "svb", "lvb", "vh", "dvh", "svh", "lvh"],
"size": ["vmin", "dvmin", "svmin", "lvmin", "vmax", "dvmax", "svmax", "lvmax"]
},
"container": ["cqi", "cqw", "cqb","cqh", "cqmin", "cqmax"]
}
@OrionReed
OrionReed / dom3d.js
Last active September 28, 2025 08:09
3D DOM viewer, copy-paste this into your console to visualise the DOM topographically.
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks.
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/)
(() => {
const SHOW_SIDES = false; // color sides of DOM nodes?
const COLOR_SURFACE = true; // color tops of DOM nodes?
const COLOR_RANDOM = false; // randomise color?
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com)
const MAX_ROTATION = 180; // set to 360 to rotate all the way round
const THICKNESS = 20; // thickness of layers
const DISTANCE = 10000; // ¯\\_(ツ)_/¯
@virattt
virattt / rag-reranking-gpt-colbert.ipynb
Last active October 30, 2025 02:24
rag-reranking-gpt-colbert.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@astuyve
astuyve / deny_snippet.json
Created January 17, 2024 15:00
Deny cloudwatch permissions from Lambda to save money
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Deny",
"Action": [
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:PutLogEvents"
],
@yuinchien
yuinchien / glossary.md
Last active February 3, 2024 16:31
AI Glossary
TERM DEFINITION SOURCE LINK
AGI. Artificial General Intelligence An AGI could learn to accomplish any intellectual task that human beings or animals can perform. Alternatively, AGI has been defined as an autonomous system that surpasses human capabilities in the majority of economically valuable tasks. Source
Adversarial suffix A string of random seeming characters, to a prompt that makes the LLM significantly more likely to return an unfiltered response. Source Demo
AI. Artificial Intelligence Artificial intelligence (AI) is the intelligence of machines or software, as opposed to the intelligence of humans or animals. It is a field of study in computer science which develops and studies intelligent machines. [Source](https://en.wikipedia.org/wiki/Artificial
@ZeldOcarina
ZeldOcarina / AirtableConnector.ts
Created September 5, 2023 18:50
A simple way to fetch Airtable API
import * as path from "path";
import * as fs from "fs";
import axios, { AxiosError, type AxiosInstance } from "axios";
import airtableDefaults from "./constants/airtable-defaults";
const fsPromises = fs.promises;
const MAX_RETRIES = 3; // Number of times to retry after hitting rate limit
const RETRY_DELAY = 30 * 1000; // 30 seconds in milliseconds
from langchain.document_loaders import YoutubeLoader
from langchain.indexes import VectorstoreIndexCreator
urls = [
("https://www.youtube.com/watch?v=fP6vRNkNEt0", "Prompt Injection"),
("https://www.youtube.com/watch?v=qWv2vyOX0tk", "Low Code-No Code"),
("https://www.youtube.com/watch?v=k8GNCCs16F4", "Agents In Production"),
("https://www.youtube.com/watch?v=1gRlCjy18m4", "Agents"),
("https://www.youtube.com/watch?v=fLn-WqliEQU", "Output Parsing"),
("https://www.youtube.com/watch?v=ywT-5yKDtDg", "Document QA"),
("https://www.youtube.com/watch?v=GrCFyyyAxCU", "SQL"),
@alex-streza
alex-streza / FigmaProvider.ts
Last active December 28, 2024 10:47
Figma OAuth Provider implementation for Auth.js (previously next-auth)
import { Provider } from "next-auth/providers";
export const FigmaProvider: Provider = {
id: "figma",
name: "Figma",
type: "oauth",
authorization: {
url: "https://www.figma.com/oauth",
params: {
scope: "file_read",