Skip to content

Instantly share code, notes, and snippets.

$ sudo apt-cache show tilemill
Package: tilemill
Priority: extra
Section: web
Installed-Size: 200796
Maintainer: Ian Ward <[email protected]>
Architecture: amd64
Version: 0.9.0~natty3
Depends: libatk1.0-0 (>= 1.12.4), libc6 (>= 2.7), libcairo2 (>= 1.2.4), libfontconfig1 (>= 2.8.0), libfreetype6 (>= 2.2.1), libgcc1 (>= 1:4.1.1), libgdk-pixbuf2.0-0 (>= 2.22.0), libglib2.0-0 (>= 2.12.0), libgtk2.0-0 (>= 2.8.0), libmapnik, libpango1.0-0 (>= 1.14.0), libsoup2.4-1 (>= 2.4.0), libstdc++6 (>= 4.4.0), libwebkitgtk-1.0-0 (>= 1.3.10), zlib1g (>= 1:1.1.4), debconf (>= 0.5) | debconf-2.0, curl, nodejs (>= 0.4.8), libsqlite3-0 (>= 3.6), libsqlite3-dev, unzip
Filename: pool/main/t/tilemill/tilemill_0.9.0~natty3_amd64.deb
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Is the Internet Boring Today?</title>
<style>
a {
color: #ddd;
text-decoration: none;
font-family: Arial, sans-serif;
Python 2.7.2 (default, Aug 1 2011, 14:44:17)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import re
>>> m = re.match("a", "alpha")
>>> m
<_sre.SRE_Match object at 0x10044c920>
>>> dir(m)
['__class__', '__copy__', '__deepcopy__', '__delattr__', '__doc__', '__format__', '__getattribute__',
'__hash__', '__init__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__',
A hypothetical model:
1. In 88% of all national general elections, the outcome is known before the
election to a high degree of certainty. In all these cases, the leading candidate
gets more donations than his opponent.
2. In 12% of all national general elections, the outcome is not well known before
the election. In 50% of these cases, the candidate who eventually wins will have
raised more money than his opponent. (i.e.: there is no correlation between money
raised and victory)
["http://imgur.com/vNNgw.jpg", "http://imgur.com/UgzjE.jpg", "http://imgur.com/YGB6A.jpg", "http://imgur.com/LUWK8.jpg", "http://imgur.com/6E3JK.jpg", "http://imgur.com/tjfFM.jpg", "http://imgur.com/2cb4q.jpg", "http://imgur.com/iQ89L.jpg", "http://imgur.com/toQYU.jpg", "http://imgur.com/wOQLv.jpg", "http://imgur.com/Iis7H.jpg", "http://imgur.com/pjHXU.jpg", "http://imgur.com/GbLiX.jpg", "http://imgur.com/bgbAM.jpg", "http://imgur.com/eV0Q2.jpg", "http://imgur.com/HTSkK.jpg", "http://imgur.com/lL922.jpg", "http://imgur.com/wu98d.jpg", "http://imgur.com/QgqmD.jpg", "http://imgur.com/biA50.jpg", "http://imgur.com/7INwG.jpg", "http://imgur.com/zhr1S.jpg", "http://imgur.com/FmtqB.jpg", "http://imgur.com/d2lXt.jpg", "http://imgur.com/qVjhD.jpg", "http://imgur.com/eJWfw.jpg", "http://imgur.com/HlFzr.jpg", "http://imgur.com/18KYP.jpg", "http://imgur.com/ZunXi.jpg", "http://imgur.com/gZ6Z6.jpg", "http://imgur.com/fBX3A.jpg", "http://imgur.com/GNLhj.jpg", "http://imgur.com/BNoKP.jpg", "http://imgur.com/rvNNE.jpg", "ht
sudo apt-get install python-software-properties
sudo apt-add-repository ppa:developmentseed/mapbox
sudo apt-add-repository ppa:chris-lea/node.js
sudo aptitude update
sudo aptitude install tilemill
@llimllib
llimllib / gist:1327455
Created October 31, 2011 13:11
Simple csv filtering
import csv
goodrows = []
with open('stateplane.csv', 'rb') as f:
reader = csv.reader(f)
for row in reader:
if row[1] == 'HAWAII':
goodrows.append(row)
print row
07:11 PM ~/code/aiclass/unit2 master
$ python cacheless_fifteen.py
result: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, -1]
5329309 function calls in 3.121 seconds
Ordered by: standard name
ncalls tottime percall cumtime percall filename:lineno(function)
1 0.000 0.000 3.121 3.121 <string>:1(<module>)
73095 0.036 0.000 0.077 0.000 <string>:8(__new__)
from __future__ import division
from visual import *
craft = sphere(pos = vector(10e7,0,0), color = color.white, radius = 1e6)
Earth = sphere(pos = vector(0,0,0), color = color.blue, radius = 6.3e6)
trail = curve(color = craft.color)
G = 6.67e-11
mcraft = 1500
mEarth = 5.97e24
$ brew doctor
Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected dylibs:
/usr/local/lib/libenca.0.dylib
Unbrewed static libraries were found in /usr/local/lib.