Skip to content

Instantly share code, notes, and snippets.

View magnusnissel's full-sized avatar

Magnus Nissel magnusnissel

  • Wiesloch, Germany
View GitHub Profile
@passcod
passcod / gist:3234448
Created August 2, 2012 06:21
The public domain tri-license

Sometimes, for small pieces of code, I use a special license header that goes like this:

/* Released as public domain, or licensed under
 * either CC0 or the MIT/X11, whichever gives
 * you the most rights in your legislation.
 */

Now, there's a few things in here:

@fnielsen
fnielsen / gist:1410094
Created November 30, 2011 18:12
Movie review sentiment classifier and the AFINN word list
# Code inspired and developed from:
# http://streamhacker.com/2010/05/10/text-classification-sentiment-analysis-naive-bayes-classifier/
from __future__ import division
import nltk.classify, nltk.corpus, nltk.classify.util
from pylab import *
filebase = '/home/fn'
@jamiew
jamiew / google_twunter_lol
Created July 28, 2011 20:34
All the dirty words from Google's "what do you love" project: http://www.wdyl.com/
easterEgg.BadWorder.list={
"4r5e":1,
"5h1t":1,
"5hit":1,
a55:1,
anal:1,
anus:1,
ar5e:1,
arrse:1,
arse:1,