Skip to content

Instantly share code, notes, and snippets.

@phuesler
phuesler / erb2haml.sh
Created September 30, 2012 14:23 — forked from stigi/erb2haml.sh
erb2haml.sh
#! /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
}
#!/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'
*.pbxproj -crlf -diff -merge
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