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 | |
"""Scraper for Houston's active incident report""" | |
import collections | |
import csv | |
import operator | |
import sys |
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 script automatically sets the version and short version string of | |
# an Xcode project from the Git repository containing the project. | |
# | |
# To use this script in Xcode 4, add the contents to a "Run Script" build | |
# phase for your application target. | |
set -o errexit | |
set -o nounset |
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/sh | |
brew install python boost exiv2 | |
curl -O http://launchpadlibrarian.net/61465005/pyexiv2-0.3.0.tar.bz2 | |
tar xjvf pyexiv2-0.3.0.tar.bz2 | |
cd pyexiv2-0.3.0 | |
# https://answers.launchpad.net/pyexiv2/+question/140742 | |
echo "env['FRAMEWORKS'] += ['Python']" >> src/SConscript |
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
// javascript:(function(){var l=(document.querySelector('[rev~="canonical"]')||document.querySelector('[rel~="alternate"][rel~="short"]')||document.querySelector('[rel~="shortlink"]')||document.querySelector('[rel~="shorturl"]')||document.querySelector('[rel~="alternate"][rel~="shorter"]'));if(l){prompt("Short URL:",l.getAttribute('href'));}else{window.shortUrlBookmarkletCallback=function(bitly){if(bitly.status_code===200){prompt("Bit.ly URL:",bitly.data.url);}else{alert("Bit.ly error:"+bitly.status_txt);}};var s=document.createElement('script');s.type='text/javascript';s.src=('http://api.bit.ly/v3/shorten'+'?longURL='+encodeURIComponent(window.location.href)+'&domain=j.mp'+'&format=json'+'&callback=shortUrlBookmarkletCallback'+'&login=BITLY_USERNAME'+'&apiKey=BITLY_API_KEY');document.querySelector('head').appendChild(s);}})(); | |
(function() { | |
var l = (document.querySelector('[rev~="canonical"]') | |
|| document.querySelector('[rel~="alternate"][rel~="short"]') | |
|| document.querySelecto |
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/sh | |
APP_PATH=/Applications | |
APP_NAME=${APP_PATH}/Chromium.app | |
TMP_PATH=/tmp/update-chromium-$$ | |
TMP_NAME=${TMP_PATH}/chrome-mac.zip | |
BASE_URL=http://build.chromium.org/buildbot/snapshots/chromium-rel-mac | |
REVISION=$(curl -s ${BASE_URL}/LATEST) |
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
# I tested these instructions on Ubuntu 9.04 Server 64-bit running on | |
# VMware Fusion 2.0.4. | |
# I'm assuming you're doing this all from $HOME. | |
$ sudo apt-get update | |
$ sudo apt-get dist-upgrade | |
$ sudo apt-get install build-essential curl | |
# Either (Ubuntu 9.04 Server) |