Skip to content

Instantly share code, notes, and snippets.

@tecknicaltom
tecknicaltom / README.md
Last active December 22, 2015 01:09 — forked from mbostock/.block

A dendrogram is a node-link diagram that places leaf nodes of the tree at the same depth. In this example, the classes (leaf nodes) are aligned on the right edge, with the packages (internal nodes) to the left. Data shows the Flare class hierarchy, courtesy Jeff Heer.

@tecknicaltom
tecknicaltom / gist:3ace016eefd2cfe418d7
Created June 18, 2014 20:30
keybase verification
### Keybase proof
I hereby claim:
* I am tecknicaltom on github.
* I am tecknicaltom (https://keybase.io/tecknicaltom) on keybase.
* I have a public key whose fingerprint is 5316 C6BE 366B 025C 6A35 53D9 4119 CE87 B8B6 3D79
To claim this, I am signing this object:
#!/usr/bin/env python
"""
Like strings(1) but only return stuff that is probably English (or whatever locale you set)
TODO:
* Add a parameter to ignore punctuation as token counts towards the threshold.
e.g. "Foo." vs "Foo........" would both return true.
* Add conditional for not counting digit only results if alphanumeric=True in is_natlang()
Copyleft 2015 Ian Gallagher <crash@neg9.org>
@tecknicaltom
tecknicaltom / get_lyrics.sh
Last active November 24, 2015 21:53
script to download ogg song lyrics
#!/bin/bash
FILE=$1
echo $FILE
ARTIST=$(ogginfo "$FILE" | grep -i ARTIST= | sed 's# ARTIST=##i')
TITLE=$(ogginfo "$FILE" | grep -i TITLE= | sed 's# TITLE=##i')
echo Artist: $ARTIST