This file contains hidden or 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 'formula' | |
class Boost < Formula | |
homepage 'http://www.boost.org' | |
url 'http://downloads.sourceforge.net/project/boost/boost/1.48.0/boost_1_48_0.tar.bz2' | |
md5 'd1e9a7a7f532bb031a3c175d86688d95' | |
head 'http://svn.boost.org/svn/boost/trunk', :using => :svn | |
# Bottle built on 10.7.2 using XCode 4.2 | |
bottle 'https://downloads.sourceforge.net/project/machomebrew/Bottles/boost-1.48.0-bottle.tar.gz' |
This file contains hidden or 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 calendar | |
import datetime | |
import platform | |
import time | |
import urllib | |
import urlparse | |
import warnings | |
import stripe | |
from stripe import error, http_client, version, util |
This file contains hidden or 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
# Boilerplate for .gitignore, Ignores unnecessary file extension/folders for python web development | |
# OS Stuff | |
.DS_Store | |
Thumbs.db | |
.sass-cache | |
*.*~ | |
*.bak |
This file contains hidden or 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
# Defines files and directories that should not be deployed | |
.gitignore export-ignore | |
.gitattributes export-ignore | |
Gruntfile.js export-ignore | |
bower.json export-ignore | |
package.json export-ignore | |
README.md export-ignore | |
.bowerrc export-ignore | |
tests export-ignore |
This file contains hidden or 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
# git submodule add https://github.com/mitsuhiko/flask-sphinx-themes.git flask-sphinx-theme | |
# git submodule add https://github.com/mitsuhiko/flask-sphinx-themes.git docs/_themes | |
[submodule "flask-sphinx-themes"] | |
path = flask-sphinx-themes | |
url = https://github.com/mitsuhiko/flask-sphinx-themes.git | |
[submodule "docs/_themes"] | |
path = docs/_themes | |
url = https://github.com/mitsuhiko/flask-sphinx-themes.git |
This file contains hidden or 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
#include "Python.h" // should be before any standard headers | |
#include <errno.h> | |
#include <pthread.h> | |
static void* | |
non_python_thread(void *python_callback) { | |
//XXX without PyEval_InitThreads() it produces: | |
// Fatal Python error: PyEval_SaveThread: NULL tstate | |
//XXX with PyEval_InitThreads() it deadlocks!! | |
//XXX without PyGILState_*() (with/without PyEval_InitThreads()) it produces: |
This file contains hidden or 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 | |
# | |
# DESCRIPTION: | |
# | |
# Set the bash prompt according to: | |
# * the active virtualenv | |
# * the branch/status of the current Git, Mercurial or Subversion repository | |
# * the return value of the previous command | |
# * the fact you just came from Windows and are used to having newlines in | |
# your prompts. |
This file contains hidden or 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/sh | |
# | |
# /etc/rc.d/init.d/supervisord | |
# | |
# Supervisor is a client/server system that | |
# allows its users to monitor and control a | |
# number of processes on UNIX-like operating | |
# systems. | |
# | |
# chkconfig: - 64 36 |
This file contains hidden or 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
worker_processes 4; | |
worker_rlimit_nofile 8192; | |
events { | |
worker_connections 3000; | |
} | |
error_log /var/log/nginx/error.log warn; | |
pid /var/run/nginx.pid; |
This file contains hidden or 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
# https://en.wikipedia.org/wiki/List_of_postal_codes | |
# http://www.geopostcodes.com/data | |
class NoPostalCodeCountries(object): | |
_countries = { | |
"AO": "Angola", | |
"AG": "Antigua and Barbuda", | |
"AW": "Aruba", | |
"BS": "Bahamas", | |
"BZ": "Belize", |
OlderNewer