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 / IR_Black.itermcolors
Created June 3, 2012 03:46
IR_Black color scheme for iTerm2
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.31090480089187622</real>
<key>Green Component</key>
<real>0.31097450852394104</real>
@jwhitley
jwhitley / rake.log
Created April 2, 2012 23:41
zenweb 3.0.0b1 error on example-site
** Invoke default (first_time)
** Invoke generate (first_time)
** Execute generate
unknown file type: config.ru
unknown file type: Gemfile
unknown file type: Gemfile.lock
unknown file type: rake.log
** Invoke extra_wirings (first_time)
** Execute extra_wirings
** Invoke site (first_time)
@jwhitley
jwhitley / rjs_driver.js
Created March 28, 2012 20:41
r.js driver script w/ optimize: none
//Load the requirejs optimizer
var requirejs = require('/Users/whitley/src/requirejs-rails/bin/r.js'),
//Set up basic config, include config that is
//common to all the optimize() calls.
basConfig = {
"baseUrl": "/Users/whitley/tmp/wombat/tmp/assets",
"optimize": "none",
"paths": {
"d3": "d3.v2"
}
==> Downloading http://downloads.sourceforge.net/sourceforge/streamripper/streamripper-1.64.6.tar.gz
File already downloaded in /Users/whitley/Library/Caches/Homebrew
/usr/bin/tar xf /Users/whitley/Library/Caches/Homebrew/streamripper-1.64.6.tar.gz
==> ./configure --prefix=/opt/hb/Cellar/streamripper/1.64.6 --disable-debug --disable-dependency-tracking
./configure --prefix=/opt/hb/Cellar/streamripper/1.64.6 --disable-debug --disable-dependency-tracking
checking for a BSD-compatible install... /opt/hb/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /opt/hb/bin/gmkdir -p
checking for gawk... no
checking for mawk... no
//Load the requirejs optimizer
var requirejs = require('/Users/whitley/src/requirejs-rails/bin/r.js'),
//Set up basic config, include config that is
//common to all the optimize() calls.
basConfig = {
"baseUrl": "/Users/whitley/src/foo/tmp/assets",
"modules": [
{
"name": "application"
},
// Run me as 'node nested_function.js'
var some_text = [ "a", "b", "c"];
var printit = function (text, f) {
console.log(text);
f();
}
var nested = some_text.reduceRight(function(prev, curr) {
{
baseUrl: '/path/to/rails_root/tmp/assets',
dir: '/path/to/rails_root/public/assets',
modules: [
{ name: 'application' },
{ name: 'users' }
],
fileExclusionRegExp: /.?/,
paths: {
d3: 'd3/d3',
# alias a command only if the alias name isn't a command
weak_alias () {
if [[ -z "`whence ${1[(ws:=:)1]}`" ]]; then
alias $1
fi
}
# alias a command only if the alias target exists
alias_if_exist () {
if [[ -n "`whence ${1[(ws:=:)2]}`" ]]; then
>> coffee nan.js.coffee
Error: In nan.js.coffee, Parse error on line NaN: Unexpected 'MATH'
at Object.parseError (/opt/hb/lib/node_modules/coffee-script/lib/parser.js:472:11)
at Object.parse (/opt/hb/lib/node_modules/coffee-script/lib/parser.js:548:22)
at /opt/hb/lib/node_modules/coffee-script/lib/coffee-script.js:29:22
at Object.run (/opt/hb/lib/node_modules/coffee-script/lib/coffee-script.js:57:34)
at /opt/hb/lib/node_modules/coffee-script/lib/command.js:147:29
at /opt/hb/lib/node_modules/coffee-script/lib/command.js:115:26
at [object Object].<anonymous> (fs.js:107:5)
at [object Object].emit (events.js:61:17)
@jwhitley
jwhitley / datafile.json
Created October 20, 2011 16:30 — forked from wimdows/datafile.json
a very simple pie chart
{"scores": [ {"naam":"David",
"comp":3,
"thingy": 80,
"parts": [{"test": "3", "score": 7},
{"test": "4", "score": 12},
{"test": "5", "score": 12}]
},
{"naam":"David",
"comp":2,
"thingy": 100,