Skip to content

Instantly share code, notes, and snippets.

Tom Samstag tecknicaltom

Block or report user

Report or block tecknicaltom

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tecknicaltom
tecknicaltom / get_lyrics.sh
Last active Nov 24, 2015
script to download ogg song lyrics
View get_lyrics.sh
#!/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
View natstrings.py
#!/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>
View gist:3ace016eefd2cfe418d7
### 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:
View README.md

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.

You can’t perform that action at this time.