People I want to be more like at this point in my life, in ambition, style, or personality.
- gaben
- @BillNye
- @snowden
- @jessfraz
- @vitalikbuterin
# listopi/test/__init__.py | |
from unittest import TestCase | |
from pyramid import testing | |
from sqlalchemy import create_engine | |
from listopi.model import metadata, Session | |
class TestModel(TestCase): | |
def setUp(self): |
#!/bin/sh | |
mount /boot | |
cd /usr/src/linux | |
make clean; make; make modules_install | |
NEW_KERNEL=$(readlink /usr/src/linux) | |
echo "Copying kernel: ${NEW_KERNEL}" |
#!/bin/bash | |
# Setup deployment target for Nginx + Python/uWSGI + Supervisor + Git | |
# From: https://gist.github.com/1210041 | |
function usage() { | |
cat << EOF | |
Usage: $0 PROJECT_NAME [DOMAIN] [OPTIONS] | |
Options: | |
-y No prompts, assume yes to all. |
from simpleapi import SimpleAPI | |
class FacebookError(Exception): | |
def __init__(self, type, message, response=None): | |
self.type = type | |
self.message = message | |
self.response = response | |
def __str__(self): | |
return "%s (%s)" % (self.type, self.message) |
#!/usr/bin/env python | |
# Print all the people you're following on Twitter. | |
import webbrowser | |
import tweepy | |
import sys | |
def main(): | |
# Twolever app | |
consumer_key, consumer_secret = 'd8BVP2w58kwnVxVT3BrrPQ', 'Wuelj9vieJgzpnfqGTxptYBqN9BT3SYHxQnRzeyBbxg' |
def setup(config_file='development.ini'): | |
from socialgrapple.config.environment import load_environment | |
from paste.deploy import loadapp | |
from routes.util import URLGenerator | |
from webtest import TestApp | |
from beaker.session import SessionObject | |
environ = {'HTTP_HOST': 'socialgrapple.com'} | |
wsgiapp = loadapp('config:' + config_file, relative_to='.') | |
config = load_environment(wsgiapp.config['global_conf'], wsgiapp.config['app_conf']) |
Function.prototype.bind = function(bind) { | |
var self = this; | |
return function () { | |
var args = Array.prototype.slice.call(arguments); | |
return self.apply(bind || null, args); | |
}; | |
}; | |
/** Geometry and vectors **/ |
"""The application's Globals object""" | |
from beaker.cache import CacheManager | |
from beaker.util import parse_cache_config_options | |
from myproject.lib.email import TurboMailer | |
class Globals(object): | |
"""Globals acts as a container for objects available throughout the | |
life of the application |