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
// Invoke using something like: | |
// HTML: <img src="foobar.png" width="400" height="300" alt="Example" /> | |
// JQUERY: $('img').zoompan({sw: 400, sh: 300, lw: 2851, lh: 2135}); | |
(function($){ | |
$.fn.zoompan = function(settings) { | |
settings = jQuery.extend({ | |
sw: 100, // small image width | |
sh: 100, // small image height |
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
//jsonData contains data in the appropriate format | |
var json_table = new google.visualization.Table(document.getElementById('table_div_json')) | |
var json_data = new google.visualization.DataTable(jsonData, 0.6); | |
json_table.draw(json_data, { | |
showRowNumber: true | |
}); |
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
#!/usr/bin/env python | |
# By David, Jonathan, David, and Zarino | |
import sys | |
names = sys.argv | |
score = 0.0 | |
p1 = names[1].lower() |
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
[user] | |
name = Your Name Here | |
email = [email protected] | |
[github] | |
user = your_github_username | |
token = your_github_api_key | |
[core] | |
editor = nano | |
pager = | |
[color] |
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 | |
# Optware setup | |
[ -x /etc/rc.optware ] && /etc/rc.optware start |
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 | |
if test -z "${REAL_OPT_DIR}"; then | |
# next line to be replaced according to OPTWARE_TARGET | |
REAL_OPT_DIR=/volume1/@optware | |
fi | |
case "$1" in | |
start) | |
echo "Starting Optware." |
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
~/mysociety/popit:zarinozappia ⌘ npm rebuild | |
> [email protected] install /Users/zarinozappia/Work/mySociety/popit/node_modules/bcrypt | |
> node-gyp rebuild | |
CXX(target) Release/obj.target/bcrypt_lib/src/blowfish.o | |
CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt.o | |
CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt_node.o | |
SOLINK_MODULE(target) Release/bcrypt_lib.node | |
SOLINK_MODULE(target) Release/bcrypt_lib.node: Finished |
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
~/Work/mySociety/popit:zarinozappia ⌘ make test | |
compass clean | |
remove .sass-cache/ | |
remove public/css/docs.css | |
remove public/css/foundicons/general_foundicons.css | |
remove public/css/foundicons/general_foundicons_ie7.css | |
remove public/css/ie.css | |
remove public/css/popit.css | |
remove public/css/print.css | |
rm -rf public/css |
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
~/Work/mysociety/sayit.mysociety.org:zarinozappia ⌘ git ls-files -v | |
H .gitignore | |
H .tx/config | |
H LICENSE.txt | |
H README.md | |
H about/__init__.py | |
H about/models.py | |
H about/templates/about/charles-taylor/index.html | |
H about/templates/about/leveson/index.html | |
H about/templates/about/shakespeare/index.html |
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
#!/usr/bin/env python | |
# Assumes a file called mailman.txt in the working directory, | |
# generated by: `list_members -p -f -n enabled -o ~/mailman.txt news` | |
import csv | |
import re | |
with open('exported.tsv', 'wb') as csvfile: | |
csvwriter = csv.writer(csvfile, delimiter="\t") |
OlderNewer