Skip to content

Instantly share code, notes, and snippets.

Oh no ... out of Union Hand-Roasted coffee ! If you 've tasted it , you 'd kno
ally ... but it takes ages ... need coffee ! : ~ ) Is it just me or is Steve J
se : a duplicate Union Hand-Roasted coffee order , and they said I can keep it
ate sent me some of his own roasted coffee ... i 'll bring some into the offic
cafe in Amsterdam with free wi-fi , coffee I can just about taste and brillian
r commute ... think I 'll find more coffee ... @ kiyanwang @ mmmmmrob : surely
d David Eddings ? ? ? Blogged about coffee and online presentation apps : www.
e some espresso to celebrate ... my coffee arrived this AM too ... good day ,
t had theological discussion by the coffee maker ... it kind of ties in with e
slow and body 's slow ... drank lst coffee too ... new blog post , bit weak th
Linked Data; 've got; lol ...; sounds like; looks like; n't know;
Looking forward; New Post; Looks like; last night; Nice one; Sounds
like; looking forward; bloody hell; Semantic Web; etc ...; Open Day;
blog post; n't think; Good luck
Building ngram index...
I 'm simple-minded like that. You 're filling my inbox : 1 ) follow @
talis and one in Stony Stratford , IIRC. I 'm a huge discussion about
schema less data and semantics at # okfest ! @ RevRichardColes : It
works on mobile ? @ derivadow I wonder whether they 're bad. It 's
ugly : `` I 'm planning to attend a bootcamp on data models ... Wonder
whether cafes would be good if there is too , I 'm speaking about #
kasabi Sending prizes from to hackers ? It is a fucking shame it died.
from nltk import *
from nltk.corpus import stopwords
filename = 'tweets.txt'
def txt_to_nltk(filename):
raw = open(filename, 'rU').read()
tokens = word_tokenize(raw)
words = [w.lower() for w in tokens]
vocab = sorted(set(words))
@beauvais
beauvais / nltk_stuff
Last active December 14, 2015 22:09
Working my way through NLTK
#!/usr/bin/python
# -*- coding: utf-8 -*-
import nltk
from nltk.corpus import stopwords
from collections import Counter
stops = stopwords.words('english')
ipsem = """
//jsonData contains data in the appropriate format
var json_table = new google.visualization.Table(document.getElementById('table_div_json')) var json_data = new google.visualization.DataTable(jsonData, 0.6);
json_table.draw(json_data, {
showRowNumber: true
});
@beauvais
beauvais / grades_variance.py
Created January 21, 2013 19:34
codeacademy variance calculator
grades = [100, 100, 90, 40, 80, 100, 85, 70, 90, 65, 90, 85, 50.5]
def print_grades(grades):
for grade in grades:
print grade
def grades_sum(grades):
total = 0
@beauvais
beauvais / scrabble_score.py
Created January 20, 2013 21:12
Returning a scrabble score (without letter multiplier squares).
score = {"a": 1, "c": 3, "b": 3, "e": 1, "d": 2, "g": 2,
"f": 4, "i": 1, "h": 4, "k": 5, "j": 8, "m": 3,
"l": 1, "o": 1, "n": 1, "q": 10, "p": 3, "s": 1,
"r": 1, "u": 1, "t": 1, "w": 4, "v": 4, "y": 4,
"x": 8, "z": 10}
def scrabble_score(word):
word = word.lower()
tally = 0
@beauvais
beauvais / anti_vowel.py
Created January 20, 2013 20:06
anti_vowel for code academy
def anti_vowel(text):
vowels = ["A", "a", "E", "e", "I", "i", "O", "o", "U", "u"]
anti = []
for i in text:
if i in vowels:
pass
else:
anti.append(i)
return "".join(anti)
Beauvais dit Saint-Joseph, Joseph-Xavier. Soldat au régiment de Languedoc, compagnie de Vaudray en 1755, engagé le 5 mai 1753 comme soldat dans la compagnie de Vaudray. Il est né le 14 mai 1730 à Champagnole (St-Cyr-et-Ste-Juliette), Jura, fils de Jacques Beauvais et Anne-Marie Roussout. Il épouse Josephte Desnoyers le 21 février 1757 à Chambly. Il décède à Chambly le 26 avril 1804. Notes : Charactéristiques physiques : 5 pieds et 2 pouces, les cheveaux et sourcils châtains, les yeux gris bleu, le nez et la bouche petite, le visage plein, une cicatrice à côté de l'œil droit. (239)