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 django.conf import settings | |
from django.core.signals import request_finished | |
from redis.client import Redis | |
database = Redis( | |
host=getattr(settings, "REDIS_HOST", "localhost"), | |
port=getattr(settings, "REDIS_PORT", 6379), | |
db=getattr(settings, "REDIS_DB", 0), | |
password=getattr(settings, "REDIS_PASSWORD", "")) |
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 base64 | |
import httplib | |
import threading | |
import urllib | |
import tweepy | |
CONVORE_BOT_USERNAME = '' | |
CONVORE_BOT_PASSWORD = '' | |
CONVORE_TOPIC_ID = '7612' |
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 | |
# This hook is run after every virtualenv is activated. | |
export OLD_GEM_HOME=$GEM_HOME | |
export GEM_HOME=$VIRTUAL_ENV/gems/ | |
export GEM_PATH= | |
export PATH=$VIRTUAL_ENV/gems/bin:$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
#!/usr/bin/env python | |
import subprocess | |
import sys | |
trials = 5 | |
force_drop = True | |
branch = 'factories' | |
test_db = 'test_zamboni' |
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
// manage a webapp. | |
// place <link rel="app-manifest" href="path-to-manifest.webapp"> in your <head> | |
// mozApp.install() attempts installation | |
// mozApp.uninstall() removes | |
// mozApp.isRunning() indicates whether the app is currently installed and open | |
var mozApp = (function() { | |
var manLink = document.querySelector('link[rel="app-manifest"]'), | |
manifestURL = manLink.href; | |
var self = false; |