Skip to content

Instantly share code, notes, and snippets.

View nkryptic's full-sized avatar

Jacob Radford nkryptic

  • New York, NY, USA
View GitHub Profile
# Activate tab
# $ osascript set_tab.scpt 1, 2
on run argv
set window_index to item 1 in argv
set target_index to item 2 in argv
tell application "Google Chrome" to set active tab index of first window to target_index
tell application "Google Chrome" to activate
end run
@nkryptic
nkryptic / mocha.rb
Created March 20, 2009 04:13 — forked from drnic/mocha.rb
# For mocha integration, add this file into features/support folder
require "mocha"
World { |world| world.extend Mocha::Standalone }
Before do
mocha_setup
end
@nkryptic
nkryptic / gist:39799
Created December 24, 2008 22:27 — forked from peterc/gist:33337
# SUPER DARING APP TEMPLATE 1.0
# By Peter Cooper
# Link to local copy of edge rails
inside('vendor') { run 'ln -s ~/dev/rails/rails rails' }
# Delete unnecessary files
run "rm README"
run "rm public/index.html"
run "rm public/favicon.ico"