Skip to content

Instantly share code, notes, and snippets.

@GerHobbelt
GerHobbelt / emoji-list.md
Last active June 26, 2026 16:59 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

A list of GitHub emoji markup, adapted from rxavier's Complete list of github markdown emoji markup, generated with a Grunt script for maintainability (see repository).

Additional original source material: http://unicode.org/emoji/charts/full-emoji-list.html

This table is available as a gist at https://gist.github.com/GerHobbelt/b9b87a2257ddd5251a45628d61385717 and as part of the build repo at https://github.com/GerHobbelt/emoji-list/blob/master/dist/emoji-list.md

Table of Contents

@Mizux
Mizux / vrp_multiple_transit.py
Last active June 26, 2026 16:57
VRP With differents speed and autonomy
#!/usr/bin/env python3
"""Vehicles Routing Problem (VRP)."""
from functools import partial
from ortools.constraint_solver import routing_enums_pb2
from ortools.constraint_solver import pywrapcp
# Vehicle 1: slow (speed: 20)
# Vehicle 2: slow (speed: 20)
# Vehicle 3: average (speed: 18)
@kcrwfrd
kcrwfrd / init.lua
Created March 13, 2026 22:24
Hammerspoon config to move window to a space
local function moveWindowToSpace(spaceNumber)
local win = hs.window.focusedWindow()
if not win then
hs.alert.show("No focused window")
return
end
local frame = win:frame()
local titleBarPoint = {
x = frame.x + frame.w / 2,

A metatable in Lua defines various extraneous behaviors for a table when indexed, modified, interacted with, etc. They are Lua's core metaprogramming feature; most well known for being useful to emulate classes much like an OOP language.

Any table (and userdata) may be assigned a metatable. You can define a metatable for a table as such:

-- Our sample table
local tab = {}
-- Our metatable
local metatable = {
 -- This table is then what holds the metamethods or metafields
@jpchateau
jpchateau / GIT.MD
Last active June 26, 2026 16:47
Git - Commandes / Configuration / Astuces

Commandes

git add -vA # ajoute tous les changements au commit, verbeux
git rm [fichiers] # supprime les fichiers du dépôt
git add -p [fichier] # permet de préciser quels morceaux de code d'un fichier sont à ajouter au commit
git pull # met à jour ses fichiers locaux à partir d'un dépôt distant (cela effectue un fetch puis un merge)
git pull -r # met à jour ses fichiers locaux en effectuant un rebase
git push # envoie les modifications locales sur un dépôt distant
git push -f # force à envoyer ses modifications locales sur un dépôt distant. À utiliser avec précaution.

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@Pythonation
Pythonation / prompt.md
Last active June 26, 2026 16:44
3 PROMPTS OF CODING AGENTS

1. برومبت التخطيط المطوّر (The Planning Protocol)

[الدور والمسؤولية] أنت الآن تعمل بصفة Staff Software Engineer ومدير تقني Tech Lead. مهمتك التخطيط المعماري الصارم للمشروع التالي: [أدخل وصف المشروع هنا]

[قواعد ما قبل التتخطيط] قبل البدء بالبروتوكولات، يجب أن تطبق مبدأ "Think Before Coding":

@valiant-code
valiant-code / IronMon-Rules.md
Last active June 26, 2026 16:40
IronMon Rules

The IronMON Challenge

The IronMon challenge is a Pokémon Randomizer Challenge run created by iateyourpie. Designed to make experiencing the randomizer fun and challenging, while taking away the wild Pokémon grind that come with some other challenges. It was originally made for Fire Red / Leaf Green but the rules can be applied/adjusted for other games as well. If you're interested to find out more about IronMon, join our Discord community!

IronMon has varying levels of difficulties, to keep it more approachable but also provide the toughest challenge possible for those who want it.

@jmcmurry
jmcmurry / gist:4194663d36caa1e76539896adb74f7b1
Created June 25, 2026 15:48
Format every table in the active Google Doc
/**
* Format every table in the active Google Doc.
*
* - Body text: Arial 8
* - Header row: #0b5394 fill, white bold Arial 8
* - Cell padding: 0 on all sides
* - Text edges: 0.02" inset on left & right via paragraph indents
* (the blue ruler controls), not via cell padding.
*
* Run formatAllTables(). First run will prompt for authorization.