Skip to content

Instantly share code, notes, and snippets.

@jamtur01
jamtur01 / ladder.md
Last active April 28, 2024 20:07
Kickstarter Engineering Ladder
@mdawaffe
mdawaffe / moon.sh
Created December 5, 2013 02:09
Express the Current Approximate Phase of the Moon as an Emoji Character in UTF-8
#!/bin/bash
# Approximates the phase of the moon using a known new-moon time and a fixed lunar phase of 2551443 seconds.
# Outputs the phase as an emoji in UTF-8
CHARS=(
"\xf0\x9f\x8c\x91" # 0 - NEW
"\xf0\x9f\x8c\x91" # 1 - NEW
"\xf0\x9f\x8c\x92" # 2 - WAXING CRESCENT
@jinroh
jinroh / README.md
Last active March 26, 2024 07:54
Fourier series visualisation with d3.js.

From Wikipedia:

In mathematics, a Fourier series decomposes periodic functions or periodic signals into the sum of a (possibly infinite) set of simple oscillating functions, namely sines and cosines (or complex exponentials).

Use the bottom right form to change the visualized serie.

@ogrisel
ogrisel / .gitignore
Created December 16, 2012 21:52
Gist to load the amazon7 dataset as a scipy.sparse matrix with hashed features
*.pyc
@barrym
barrym / example.coffee
Created August 10, 2011 15:26
d3 scrolling line graph example
w = 500
h = 300
x = null
y = null
intervalTime = 500
data = d3.range(100).map((n) -> Math.round(Math.random() * 100))
setInterval(
() ->