Skip to content

Instantly share code, notes, and snippets.

Avatar
🐛
Squashing bugs but sparing the cute ones!

Noah Doersing doersino

🐛
Squashing bugs but sparing the cute ones!
View GitHub Profile
@cmod
cmod / hugofastsearch.md
Last active Nov 22, 2020 — forked from eddiewebb/readme.md
Fast, instant client side search for Hugo static site generator
View hugofastsearch.md

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 craigmod.com and press CMD-/ and start typing.

Fast Search

@tomhicks
tomhicks / plink-plonk.js
Last active Nov 21, 2020
Listen to your web pages
View plink-plonk.js
@publik-void
publik-void / Should indexing be 0-based or 1-based.adoc
Last active Nov 22, 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
willwhitney / himawari.py
Last active Oct 27, 2017 — forked from celoyd/hi8-fetch.py
Fetch and untile tiled Himawari-8 images from the http://himawari8.nict.go.jp PNG endpoint, then set them as desktop background on OSX
View himawari.py
import requests
import sys
from datetime import datetime, timedelta
import pytz
from PIL import Image
from StringIO import StringIO
import os
import logging
# python himawari.py
View wichmann.py
try:
#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
/////////////////////
//
/////////////////////
// WHAT DOES THIS DO?
/////////////////////
//
@nylki
nylki / char-rnn recipes.md
Last active Nov 16, 2020
char-rnn cooking recipes
View char-rnn recipes.md

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: https://github.com/karpathy/char-rnn 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 ffts.com And here is the actual zipped data (uncompressed ~35 MB) I used for training. The ZIP is also archived @ archive.org in case the original links becomes invalid in the future.

@marcoarment
marcoarment / encode-podcast.sh
Created Feb 13, 2015
Encode a podcast with metadata using command-line LAME
View encode-podcast.sh
#!/bin/bash
# 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
SHOW_AUTHOR="ATP"
EPISODE_NUMBER=104
EPISODE_TITLE="Minutiæ"
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) {
You can’t perform that action at this time.