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 | |
# remove __MACOSX foldr and .DS_Store files | |
# from *_original.zip file | |
# zip again and place under fixed/* | |
for x in $* | |
do | |
unzip $x |
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
# -*- coding: utf-8 -*- | |
""" | |
You need to fill in your API key from google below. Note that querying | |
supported languages is not implemented. | |
Language Code | |
-------- ---- | |
Afrikaans af | |
Albanian sq | |
Arabic ar |
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
var morse = { | |
a: '.-', b: '-...', c: '-.-.', d: '-..', | |
e: '.', f: '..-.', g: '--.', h: '....', | |
i: '..', j: '.---', k: '-.-', l: '.-..', | |
m: '--', n: '-.', o: '---', p: '.--.', | |
q: '--.-', r: '.-.', s: '...', t: '-', | |
u: '..-', v: '...-', w: '.--', x: '-..-', | |
y: '-.--', z: '--..', 0: '-----', 1: '.----', | |
2: '..---', 3: '...--', 4: '....-', 5: '.....', | |
6: '-....', 7: '--...', 8: '---..', 9: '----.' |
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
#Quick cp from http://sekati.com/etc/install-nodejs-on-debian-squeeze | |
# | |
#Needed to install TileMill from MapBox | |
# | |
#Installs node.js which has npm bundled | |
# | |
#Build Dependencies | |
sudo apt-get update && apt-get install git-core curl build-essential openssl libssl-dev |
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
sudo apt-get install build-essential libsqlite3-dev zlib1g-dev libncurses5-dev libgdbm-dev libbz2-dev libreadline5-dev libssl-dev libdb-dev | |
wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz | |
tar -xzf Python-2.7.3.tgz | |
cd Python-2.7.3 | |
./configure --prefix=/usr --enable-shared | |
make | |
sudo make install | |
cd .. |
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
""" | |
A series of functions to extract just the text from html page articles | |
""" | |
from lxml import etree | |
default_encoding = "utf-8" | |
def newyorker_fp (html_text, page_encoding=default_encoding): | |
"""For the articles found on the 'Financial Page' section of the New Yorker's website |
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 | |
# Contact: Will Wade willwa.de | |
# Date: April 2013 | |
# Needs mechanize and pybtex | |
# | |
# NB: Little error checking going on in this script | |
# TO-DO: Check last-download-date of bibtex file later than last-modified date on CUL. ? possible | |
# | |
# With thanks to https://pypi.python.org/pypi/citeulike_api/0.1.3dev for the login part | |
import mechanize |
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 | |
NAME="hello_app" # Name of the application | |
DJANGODIR=/webapps/hello_django/hello # Django project directory | |
SOCKFILE=/webapps/hello_django/run/gunicorn.sock # we will communicte using this unix socket | |
USER=hello # the user to run as | |
GROUP=webapps # the group to run as | |
NUM_WORKERS=3 # how many worker processes should Gunicorn spawn | |
DJANGO_SETTINGS_MODULE=hello.settings # which settings file should Django use | |
DJANGO_WSGI_MODULE=hello.wsgi # WSGI module name |
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
Image link: | |
![My Image](https://gist.github.com/t-paul/7171783#file-openscad-freetype-4-png) |
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
packages: | |
yum: | |
gcc: [] | |
libstdc++-devel: [] | |
gcc-c++: [] | |
fuse: [] | |
fuse-devel: [] | |
libcurl-devel: [] | |
libxml2-devel: [] | |
openssl-devel: [] |
OlderNewer