I hereby claim:
- I am vanzaj on github.
- I am vanzaj (https://keybase.io/vanzaj) on keybase.
- I have a public key ASBYgX0BtNA_at4Goa9W-KaORsLRmnkk77abe3vYWYbRLQo
To claim this, I am signing this object:
SHOULD MATCH: | |
http://foo.com/blah_blah | |
http://foo.com/blah_blah/ | |
http://foo.com/blah_blah_(wikipedia) | |
http://foo.com/blah_blah_(wikipedia)_(again) | |
http://www.example.com/wpstyle/?p=364 | |
https://www.example.com/foo/?bar=baz&inga=42&quux | |
http://✪df.ws/123 | |
http://userid:password@example.com:8080 |
#!/usr/local/bin/python3 | |
from itertools import chain, product | |
flatten = chain.from_iterable | |
digits = [ str(x+1) for x in range(9) ] | |
P, M, C = [ ' + ', ' - ', ''] | |
''' operators = add, sub, concat (str, str) | |
1 + 2 + 3 + ... |
#!/bin/bash | |
hash_string() { | |
if [[ -z "$1" ]]; then | |
echo "Usage: $0 input_string [hash_length]" | |
exit 0 | |
fi | |
echo "$1" | git hash-object --stdin | cut -c 1-"${2:-8}" | |
} |
digraph G { | |
rankdir=LR; | |
OFS [shape=box]; | |
HW [shape=box]; | |
Coding [shape=box]; | |
AltEdu [shape=box]; | |
edu_trends [shape=box, label="Edu\nTrends"]; | |
current_state [shape=box, label="Current\nState"]; | |
OFS -> HW; | |
OFS -> Coding; |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env python | |
# coding=utf-8 | |
# | |
# convert evernote enex files to markdown | |
# depends on https://github.com/claytron/ever2simple | |
# assumes enex files are named as CATEG-foo-bar.enex | |
import datetime | |
import glob | |
import json |
#!/usr/bin/env bash | |
#dld="https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh" | |
dld="https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh" | |
curl -o miniconda_install.sh $dld | |
test -d $HOME/local || mkdir $HOME/local | |
sh ./miniconda_install.sh -b -p $HOME/local/miniconda |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE xkbConfigRegistry SYSTEM "xkb.dtd"> | |
<xkbConfigRegistry version="1.1"> | |
<modelList> | |
<model> | |
<configItem> | |
<name>pc101</name> | |
<description>Generic 101-key PC</description> | |
<vendor>Generic</vendor> | |
</configItem> |
# http://www.johndcook.com/blog/2015/06/03/mystery-curve/ | |
import matplotlib.pyplot as plt | |
from numpy import pi, exp, real, imag, linspace | |
def f(t): | |
'''$\exp^{it} – \exp^{6it}/2 + i \exp^{-14it}/3$ with $t$ running from 0 to 2$\pi$.''' | |
return exp(1j*t) - exp(6j*t)/2 + 1j*exp(-14j*t)/3 |