Skip to content

Instantly share code, notes, and snippets.

View jaspertravers's full-sized avatar

Jasper Travers jaspertravers

View GitHub Profile
@WebReflection
WebReflection / inline-js-modules.js
Last active November 14, 2024 22:54
PoC: How to inline ES modules
const env = {
m1: `import {func} from './m2.mjs'; console.log(func());`,
m2: `export function func() { return 'abc'; }`
};
const inlineModule = (env, text) => `data:text/javascript;base64,${
btoa(inlineModules(env, text))
}`;
const inlineModules = (env, text) => text.replace(
@alphapapa
alphapapa / magit.sh
Last active April 5, 2020 10:18
Run a standalone Magit editor!
# Please see the script's new home: https://github.com/alphapapa/magit.sh
@maledorak
maledorak / dmenu_hotkeys.py
Last active December 18, 2024 15:35
i3 hotkeys in dmenu or rofi
#!/usr/bin/env python3
import os
import sys
from re import compile
from subprocess import run, Popen, PIPE
__author__ = "Mariusz 'Maledorak' Korzekwa"
__credits__ = ["Mariusz 'Maledorak' Korzekwa"]
__license__ = "CC BY 4.0"
@gillescastel
gillescastel / Ultisnip snippets
Last active October 19, 2025 16:44
Vimtex setup
snippet template "Basic template" b
\documentclass[a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage[dutch]{babel}
\usepackage{amsmath, amssymb}
\begin{document}
@manigandham
manigandham / rich-text-html-editors.md
Last active June 2, 2025 03:59
Rich text / HTML editors and frameworks

Strictly Frameworks

Abstracted Editors

These use separate document structures instead of HTML, some are more modular libraries than full editors

I came across Nile for the first time in 2011

When Alan Kay presented his talk "Programming and Scaling" (https://www.youtube.com/watch?v=y9xLi0iJg1g best watch the whole talk!) The Idea to create an Approach that satisfies the users demands for personal computing in less than 10000 lines of Code, powered by DSL and other advanced concepts, seemed intriguing.

I searched the web and there was little to noting I found.

Later I found this talk in that at the end Dan Amelang also answers QA: https://www.youtube.com/watch?v=ubaX1Smg6pY.

The Problem with the STEPTS project is that you need all the parts together: Maru, Nile, Gezira etc..

@DrewMcArthur
DrewMcArthur / 2d-workspaces.sh
Created July 1, 2015 18:38
This script allows a simulation of a 2D grid of workspaces for i3wm
#!/bin/bash
#This script simulates a 2D grid of workspaces with i3.
#all you have to do is add the next line to your i3/config
#bindsym <keys> exec <path>/i3/workspaces.sh <direction> [move win]
#for example,
#bindsym Control+Mod1+Right exec ~/.config/i3/workspaces.sh right
@staltz
staltz / introrx.md
Last active November 13, 2025 18:44
The introduction to Reactive Programming you've been missing
@XVilka
XVilka / TrueColour.md
Last active October 9, 2025 17:55
True Colour (16 million colours) support in various terminal applications and terminals

THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.

PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!