Skip to content

Instantly share code, notes, and snippets.

View lobau's full-sized avatar

Laurent Baumann lobau

View GitHub Profile
@vmonney
vmonney / README.md
Last active September 28, 2022 14:21
CSS Named Colors
Alice was beginning to get very tired of sitting by her sister on the bank, and of having nothing to do: once or twice she had peeped into the book her sister was reading, but it had no pictures or conversations in it, โ€œand what is the use of a book,โ€ thought Alice โ€œwithout pictures or conversations?โ€ So she was considering in her own mind (as well as she could, for the hot day made her feel very sleepy and stupid), whether the pleasure of making a daisy-chain would be worth the trouble of getting up and picking the daisies, when suddenly a White Rabbit with pink eyes ran close by her. There was nothing so very remarkable in that; nor did Alice think it so very much out of the way to hear the Rabbit say to itself, โ€œOh dear! Oh dear! I shall be late!โ€ (when she thought it over afterwards, it occurred to her that she ought to have wondered at this, but at the time it all seemed quite natural); but when the Rabbit actually took a watch out of its waistcoat-pocket, and looked at it, and then hurried on, Alice sta
# taken from http://www.piware.de/2011/01/creating-an-https-server-in-python/
# generate server.pem with the following command:
# openssl req -new -x509 -keyout key.pem -out server.pem -days 365 -nodes
# run as follows:
# python simple-https-server.py
# then in your browser, visit:
# https://localhost:4443
import http.server
@AnnoyingTechnology
AnnoyingTechnology / Apple's SuperDrive tweak for use with Linux.md
Last active April 21, 2026 13:55
Make Apple's USB SuperDrive work on Linux

I was ready to throw it away, I opened it up and didn't find anything wrong with it. After a quick Google Search, turns out Apple fucked up their users (again) and locked this drive to only one laptop : the MacBook Air.

Bellow is the tweak (found online) to make it usable on Linux

# Debian/linux only - Linux SCSI generic driver
sudo apt install sg3-utils -y
@mattdesl
mattdesl / motion-blur.js
Last active January 2, 2022 12:05
canvas-sketch + motion blur + canvas2D (NOTE: Only blurs on sequence export) adapted from @delucis
// Adapted from @delucis
// https://github.com/delucis/pellicola/blob/735bd7487bdc597ac7272e4ddce9473c15f68d09/lib/frame-maker.js#L99-L134
const canvasSketch = require('canvas-sketch');
const settings = {
dimensions: [ 512, 512 ],
duration: 3,
animate: true,
fps: 24
@rascul
rascul / rc
Last active October 21, 2022 08:37
bash static site generator
# Feel free to edit this config. Don't remove any options.
declare -A config=(
# Directories. No trailing slashes.
["content"]="content"
["output"]="www"
["templates"]="templates"
# Add .html extention to generated files
@watson
watson / four-byte-emojis.json
Last active December 26, 2025 13:28
Emoji's sorted by byte-size
[
"๐Ÿ˜",
"๐Ÿ˜‚",
"๐Ÿ˜ƒ",
"๐Ÿ˜„",
"๐Ÿ˜…",
"๐Ÿ˜†",
"๐Ÿ˜‰",
"๐Ÿ˜Š",
"๐Ÿ˜‹",
@celevra
celevra / index.html
Last active October 10, 2021 03:13 — forked from danopia/index.html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>collab editing, yo</title>
<link rel="stylesheet" href="http://codemirror.net/lib/codemirror.css">
<link rel="stylesheet" href="http://codemirror.net/theme/ambiance.css">
<script src="http://codemirror.net/lib/codemirror.js"></script>
<script src="http://codemirror.net/addon/mode/overlay.js"></script>
<script src="http://codemirror.net/mode/xml/xml.js"></script>
@metaskills
metaskills / left-nav.scss
Created August 28, 2014 20:30
Dynamic SVGs Using <defs> Elements & JavaScript
@import "bourbon";
$steeler-fill1: rgba(#052838, 0.8);
$steeler-fill2: rgba(#95a8b1, 0.3);
@include keyframes(star) {
0% { opacity: 1.0; }
20% { opacity: 0.2; }
50% { opacity: 0.7; }
70% { opacity: 0.1; }
# taken from http://www.piware.de/2011/01/creating-an-https-server-in-python/
# generate server.xml with the following command:
# openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes
# run as follows:
# python simple-https-server.py
# then in your browser, visit:
# https://localhost:4443
import BaseHTTPServer, SimpleHTTPServer
import ssl