Skip to content

Instantly share code, notes, and snippets.

Squashing bugs but sparing the cute ones!

Noah Doersing doersino

Squashing bugs but sparing the cute ones!
View GitHub Profile
cmod /
Last active Jun 15, 2021 — forked from eddiewebb/
Fast, instant client side search for Hugo static site generator

Super fast, keyboard-optimized, client side Hugo search

This is a fork of and builds upon the work of Eddie Webb's search and Matthew Daly's search explorations.

It's built for the Hugo static site generator, but could be adopted to function with any json index compatible with Fuse fuzzy search library.

To see it in action, go to and press CMD-/ and start typing.

Fast Search

tomhicks / plink-plonk.js
Last active Jun 17, 2021
Listen to your web pages
View plink-plonk.js
publik-void / Should indexing be 0-based or 1-based.adoc
Last active Dec 10, 2020
Should numbering start at 0 or 1?
View Should indexing be 0-based or 1-based.adoc

Should numbering start at 0 or 1?

Arguments for 1-based indexing and/or against 0-based indexing

  • The number which denotes the index of an element is equal to the number one would get by counting up to (and including) that element.

  • We are very used to labeling elements with their corresponding count number. This means 1-based indexing has a lot of inertia in our everyday lives and we

willwhitney /
Last active Oct 27, 2017 — forked from celoyd/
Fetch and untile tiled Himawari-8 images from the PNG endpoint, then set them as desktop background on OSX
import requests
import sys
from datetime import datetime, timedelta
import pytz
from PIL import Image
from StringIO import StringIO
import os
import logging
# python
#Wir brauchen aktuelle Versionen von BeautifulSoup und Requests
from bs4 import BeautifulSoup;
import requests
import shutil
# Scrapen wir mal los
n = 24 #Hier wirfst du die Anzahl der Seiten rein, die eine Kategorie hat (siehst du in der Pagination)
#(Mir ist voll und ganz bewusst, dass man dass auch einfach aus der Seite scrapen könnte, aber das
#war zeitlich recht sinnlos)
View gist:122907e95956602e5c09
// slack2html
// by @levelsio
nylki / char-rnn
Last active May 4, 2021
char-rnn cooking recipes
View char-rnn

do androids dream of cooking?

The following recipes are sampled from a trained neural net. You can find the repo to train your own neural net here: Thanks to Andrej Karpathy for the great code! It's really easy to setup.

The recipes I used for training the char-rnn are from a recipe collection called And here is the actual zipped data (uncompressed ~35 MB) I used for training. The ZIP is also archived @ in case the original links becomes invalid in the future.

marcoarment /
Created Feb 13, 2015
Encode a podcast with metadata using command-line LAME
# Encode a WAV to a finalized podcast MP3 with metadata, in the current directory
# Requires lame
# With Homebrew on Mac OS X: brew install lame
View RegexMatchingOperator.playground
// Playground - noun: a place where people can play
import Cocoa
struct Regex {
let pattern: String
let expressionOptions: NSRegularExpressionOptions
let matchingOptions: NSMatchingOptions
init(pattern: String, expressionOptions: NSRegularExpressionOptions, matchingOptions: NSMatchingOptions) {