This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//= require "vendor/prototype.s2" | |
HAE = { | |
} | |
//= require "hae/attorney" | |
//= require "hae/hiringagency" | |
document.observe('dom:loaded', function() { | |
Element.addMethods({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kicker -e "sprocketize -C /Users/dave/code/Python/django-sites/hae/content/js -I hae -I vendor hae.js > /Users/dave/code/Python/django-sites/hae/content/js/sprockets.js" /Users/dave/code/Python/django-sites/hae/content/js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess, shlex | |
import os | |
def sprocketize(): | |
try: | |
import shlex, subprocess | |
js_path = os.path.abspath(os.path.join(os.getcwd(), '../content/js')) | |
sprocketize = "sprocketize -C %s -I hae -I vendor hae.js > %s/sprockets.js" % ( | |
js_path, | |
js_path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# | |
def create_table_for_unrelated_model(model, database_name): | |
from django.db import connections, transaction | |
from django.core.management.sql import custom_sql_for_model | |
from django.core.management.color import no_style | |
connection = connections[database_name] | |
cursor = connection.cursor() | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from jinja2 import Template as Jinja2Template | |
from django.test import signals | |
#note - this code can be run only once | |
ORIGINAL_JINJA2_RENDERER = Jinja2Template.render | |
def instrumented_render(template_object, *args, **kwargs): | |
context = dict(*args, **kwargs) | |
signals.template_rendered.send( | |
sender=template_object, | |
template=template_object, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os, sys | |
import datetime | |
import base64 | |
import cloudservers | |
import cloudlb | |
import urllib2 | |
#import paramiko | |
from time import sleep |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
if [ -f /etc/cron.d/initialrunner ]; then | |
rm /etc/cron.d/initialrunner | |
fi | |
# Update the server | |
apt-get update -y | |
aptitude -yf full-upgrade | |
aptitude install -y git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* User File Prefs */ | |
{ | |
"auto_match_enabled": true, | |
"color_scheme": "Packages/Color Scheme - Default/Monokai Bright.tmTheme", | |
"draw_minimap_border": true, | |
"ensure_newline_at_eof_on_save": true, | |
"font_face": "Monaco", | |
"font_size": 12, | |
"scroll_past_end": true, | |
"tab_size": 4, |