Skip to content

Instantly share code, notes, and snippets.

View jwhitley's full-sized avatar
🏝️
balearic

John Whitley jwhitley

🏝️
balearic
View GitHub Profile
@jwhitley
jwhitley / pow
Created October 7, 2011 03:09
A helper script for pow.cx users
#!/usr/bin/env ruby
require 'fileutils'
require 'optparse'
class String
def unindent
gsub /^#{self[/\A\s*/]}/, ''
end
end
#!/bin/zsh
# VOLume Toggle => volt
#
# Usage: volt <volume>
# This script toggles the mountedness of the specified OS X disk
# volume using diskutil. The volume may be specified as the first
# parameter, or as the name of a symlink to this script.
volume=${1:=${0:t}}
var markGroup = dataGroup.selectAll(".mark")
.data(flatData).enter()
.append("svg:g")
.attr("class","mark");
markGroup.append("svg:rect").
attr("x", function (d,i) { return x(i); }).
attr("y", 0).
attr("class", targetStyle(this.kind)).
attr("width", widthFunc(this)).
==> Downloading http://ftp.gnu.org/pub/gnu/emacs/emacs-23.3.tar.bz2
File already downloaded and cached to /Users/whitley/Library/Caches/Homebrew
/usr/bin/tar xf /Users/whitley/Library/Caches/Homebrew/emacs-23.3.tar.bz2
==> Downloading patches
/usr/bin/curl -f#LA Homebrew 0.8 (Ruby 1.8.7-174; Mac OS X 10.6.7) https://github.com/downloads/typester/emacs/feature-fullscreen.patch -o 001-homebrew.diff
######################################################################## 100.0% ######################################################################## 100.0% ######################################################################## 100.0% 0.0% ###### 9.3% #################### 28.0% ################################# 46.8% ###############################################