Skip to content

Instantly share code, notes, and snippets.

TOTAL_FILES=16014
def slugify(value):
value = str(value)
value = unicodedata.normalize('NFKD', value).encode('ascii', 'ignore').decode('ascii')
value = re.sub(r'[^\w\s-]', '', value).strip().lower()
return re.sub(r'[-\s]+', '-', value)
response = urllib.request.urlopen("http://bbcsfx.acropolis.org.uk/assets/BBCSoundEffects.csv")
csv_text = response.read().decode('utf-8')
use std::collections::HashMap;
use std::collections::VecDeque;
use std::thread;
use std::sync::Arc;
use std::sync::Mutex;
use std::time;
type ActorId = u32;
struct Actor {
@ghtyrant
ghtyrant / gvim_unity.sh
Created December 12, 2014 15:03
Use gvim as an editor in Unity and open new files in tabs automatically.
#!/bin/sh
if [ -z "$1" ]
then
echo "No file specified"
exit 1
fi
FILEPATH=`winepath -u "$1"`
gvim --servername unity --remote-tab-silent +$2 "$FILEPATH" || gvim +$2 "$FILEPATH"