Factored out of gratipay/gratipay.com#1404.
Your YC username:
whit537
#!/usr/bin/env bash | |
set -e # exit when any command fails | |
# configure apt for postgres-9.3 | |
codename=`lsb_release -cs` | |
aptlist="deb http://apt.postgresql.org/pub/repos/apt/ $codename-pgdg main" | |
echo $aptlist | sudo tee /etc/apt/sources.list.d/pgdg.list | |
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - |
web: python -u app.py |
web: python -u app.py |
import json | |
from urllib import urlencode | |
from flask import Flask, request, jsonify | |
app = Flask(__name__) | |
app.debug = True | |
@font-face { | |
font-family: 'MyWebFont'; | |
src: url('silkscreen_normal_macroman/slkscr-webfont.eot'); /* IE9 Compat Modes */ | |
src: url('silkscreen_normal_macroman/slkscr-webfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ | |
url('silkscreen_normal_macroman/slkscr-webfont.woff') format('woff'), /* Pretty Modern Browsers */ | |
url('silkscreen_normal_macroman/slkscr-webfont.ttf') format('truetype'), /* Safari, Android, iOS */ | |
url('silkscreen_normal_macroman/slkscr-webfont.svg#svgFontName') format('svg'); /* Legacy iOS */ | |
} |
#!/usr/bin/env python | |
''' | |
Based on http://ginstrom.com/scribbles/2012/05/10/continuous-integration-in-python-using-watchdog/ | |
Dependencies: ``watchdog`` (pip install watchdog) | |
Montiors the whole tree for changes. | |
Check for all changes to any files and test the associated package; we might want to test changes to a pyramid test.ini, say, or a file rename as part of a refactor. |
import random | |
FIRST_NAMES = 'James', 'John', 'Robert', 'Michael', 'William', 'David', | |
'Richard', 'Charles', 'Joseph', 'Thomas', 'Christopher', 'Daniel', 'Paul', | |
'Mark', 'Donald', 'George', 'Kenneth', 'Steven', 'Edward', 'Brian', | |
'Ronald', 'Anthony', 'Kevin', 'Jason', 'Matthew', 'Gary', 'Timothy', | |
'Jose', 'Larry', 'Jeffrey', 'Frank', 'Scott', 'Eric', 'Stephen', 'Andrew', | |
'Raymond', 'Gregory', 'Joshua', 'Jerry', 'Dennis', 'Walter', 'Patrick', | |
'Peter', 'Harold', 'Douglas', 'Henry', 'Carl', 'Arthur', 'Ryan', 'Roger', | |
'Joe', 'Juan', 'Jack', 'Albert', 'Jonathan', 'Justin', 'Terry', 'Gerald', |
var User = DS.Model.extend({ | |
messages: DS.hasMany('message', {polymorphic: true}) | |
}); | |
var Message = DS.Model.extend({ | |
user: DS.belongsTo('user'), | |
body: DS.attr() | |
}); | |
var Post = Message.extend({ |
Factored out of gratipay/gratipay.com#1404.
Your YC username:
whit537
### Keybase proof | |
I hereby claim: | |
* I am joeyespo on github. | |
* I am joeyespo (https://keybase.io/joeyespo) on keybase. | |
* I have a public key whose fingerprint is 22EB 13A9 C8CE E5A5 77A7 8AF2 657E 9678 83E5 2DB5 | |
To claim this, I am signing this object: |