Skip to content

Instantly share code, notes, and snippets.

View davidthewatson's full-sized avatar

Dave davidthewatson

View GitHub Profile
@davidthewatson
davidthewatson / david_foster_wallace_this_is_water.html
Created December 18, 2011 17:12
David Foster Wallace: This is Water
<p><iframe width="940" height="705" src="http://www.youtube.com/embed/M5THXa_H_N8" frameborder="0" allowfullscreen></iframe></p>
<p><iframe width="940" height="705" src="http://www.youtube.com/embed/uSAzbSQqals" frameborder="0" allowfullscreen></iframe></p>
@davidthewatson
davidthewatson / heroku_no_app_specified.html
Created December 19, 2011 02:36
Heroku No App Specified
<p>
If you run into the dreaded "heroku no app specified" problem, <a href="http://www.digitalsanctum.com/2010/05/05/heroku-no-app-specified/">here's the solution</a>.
</p>
@davidthewatson
davidthewatson / get_flickr_userid.html
Created December 19, 2011 02:41
Get Flickr Userid
<p>Why this has to be so difficult I'm not sure, but <a href="http://idgettr.com/">this tool</a> to go from your userid to that hideous thing that the flickr API's require works.</p>
@davidthewatson
davidthewatson / paul_hudak_on_haskell.html
Created December 21, 2011 03:48
Paul Hudak on Haskell
An interview with <a href="http://www.infoq.com/interviews/paul-hudak-haskell-Qcon-SF-08">Yale's Paul Hudak</a> on Haskell.
@davidthewatson
davidthewatson / a_history_of_haskell.html
Created December 21, 2011 03:53
A History of Haskell
A <a href="http://research.microsoft.com/en-us/um/people/simonpj/papers/history-of-haskell/history.pdf">history of Haskell [PDF]</a> from Microsoft Research.
@davidthewatson
davidthewatson / the_smartest_thing_ever_written_about_vim_vs_emacs.html
Created December 28, 2011 18:30
The Smartest Thing Ever Written About Vim vs. Emacs
<p>
Derek Thurn has written probably the best comparison of Vim and Emacs ever written. In particular, he's confirmed that I'm not the only person in the known universe who uses vi for quick sysadmin editing tasks and emacs for larger scale coding efforts. And he's managed to do this in <a href="http://www.thurn.ca/why_i_switched_from_vim_to_emacs">the most fence-straddling way possible</a>.</p>
<p>
I'd also add that Gabriel Lanaro's <a href="http://gabrielelanaro.github.com/emacs-for-python/">emacs for python starter kit</a> tipped the scales in favor of emacs for me having come from vim.
</p>
@davidthewatson
davidthewatson / flask_wtf_form_template
Created December 30, 2011 19:24
flask wtf form template
<form method="post" action="">
<fieldset>
<legend>Applications</legend>
{% for field in form %}
<div class="clearfix">
{{ field.label }}
<div class="input">
{{ field }}
{% if field.errors %}
<ul class="errors">
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@davidthewatson
davidthewatson / fizzbuzz.py
Created January 14, 2012 17:13 — forked from kk6/fizzbuzz.py
無駄にitertoolsを駆使したFizzBuzz(Python3では動きません)
#-*- coding:utf8 -*-
# 無駄にitertoolsを駆使したFizzBuzz
from itertools import repeat, ifilterfalse, starmap, count
N = 31
LEN = range(1, N)
FIZZ, BUZZ = map(repeat, ("Fizz", "Buzz"))
fizz, buzz = (
@davidthewatson
davidthewatson / gist:1638451
Created January 19, 2012 06:43 — forked from joshfinnie/gist:1102695
Flask Signup/Login Template
from datetime import datetime
from flask import *
from flaskext.wtf import *
from flaskext.sqlalchemy import *
from werkzeug import generate_password_hash, check_password_hash
app = Flask()
app.config.from_pyfile('app_settings.py')
db = SQLAlchemy(app)