>>> from nltk import tokenize
>>> para = "Hello. My name is Jacob. Today you'll be learning NLTK."
>>> sents = tokenize.sent_tokenize(para)
>>> sents
['Hello.', 'My name is Jacob.', "Today you'll be learning NLTK."]
## Prepare ################################################################### | |
# Remove RVM | |
rvm implode | |
# Ensure your homebrew is working properly and up to date | |
brew doctor | |
brew update | |
## Install ################################################################### |
Successfully installed django django-celery django-debug-toolbar django-filebrowser django-flatblocks django-grappelli django-haystack django-memcache-status django-model-utils django-redis-cache django-smuggler django-tastypie BeautifulSoup docutils fabric feedparser geopy johnny-cache kombu mimeparse PIL psycopg2 pysolr python-memcached redis sorl-thumbnail south typogrify python-dateutil python-wordpress boto django-storages python-nameparser django-boundaryservice django-disqus django-picklefield celery python-digest ssh anyjson amqplib smartypants pycrypto | |
Cleaning up... |
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
// The narrator leaks globals but we cannot know if he intends this; we are | |
// forced to trust him. There is no going back. | |
stairs = | |
this['stairs'] || | |
{}; | |
stairs['0'] = [], | |
stairs['1'] = [ | |
0 | |
], | |
stairs['2'] = [ 0, 1 |
#!/usr/bin/python | |
import random | |
import string | |
import twitter | |
from fuzzywuzzy import process | |
api = twitter.Api() | |
recent_tweets = api.GetUserTimeline('andymboyle') | |
tweet_list = [tweet.text for tweet in recent_tweets] |
require 'sinatra' | |
require 'sanitize' | |
TO_REMOVE = ["", " ", " "] | |
get '/' do | |
<<-HTML | |
<form method="post" action="sanitize"> | |
<textarea name="dirty" style="width:100%;height:800px;"></textarea> | |
<input type="submit" value="Submit"> |
In the comments from my last post and on Twitter I noticed a lot of people who had something to say about PHP. The comments were varied but they usally sounded something like this (sorry @ipetepete, I picked yours because it was the shortest).
...the little bits of soul from all of us who've had to work on, and or maintain large PHP applications. – ipetepete
In Pete's defense, he did go on to say that rest of the stack I was using was a "smorgasbord of awesome". Thanks, Pete. I agree!
I would, however, like to take a little time to correct a misperception in the developer community about PHP. I recently got into this same... discussion... with Jeff Atwood, and I seem to be running into it more and more. So here goes. Please bear with me as I cover a little history further on.
Pete, and everybody else, _you're exactly rig