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 sh | |
DEPS_MISSING=0 | |
check_gem() { | |
if ! gem list -i $1 >/dev/null; then | |
echo "Please install $1 with 'gem install $1'" | |
DEPS_MISSING=1 | |
fi | |
} |
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 ruby | |
# Raffle script. Uses Launchbar and Applescript | |
# CSV file of attendees was downloaded from EventWax (http://www.eventwax.com/). It needs 2 returns to continue the raffle | |
# - one to bring focus back to the terminal. | |
require 'rubygems' | |
require 'appscript' | |
require 'yaml' | |
require 'fastercsv' |
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
*.pbxproj -crlf -diff -merge |
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
module Sass::Script | |
module Functions | |
# substitue text in a string | |
# @params | |
# str the string to substitute text from | |
# reg the regexp given to sub | |
# rep the replacement text | |
def sub(str, reg, rep = '') | |
Sass::Script::String.new(str.to_s.sub(/#{reg.to_s}/, rep.to_s)) | |
end |