Skip to content

Instantly share code, notes, and snippets.

View ryanfb's full-sized avatar

Ryan Baumann ryanfb

View GitHub Profile
@ryanfb
ryanfb / gist:550235
Created August 25, 2010 20:33 — forked from leedo/gist:550187
$(BUILD)/alice-%.css: $(CSS_SOURCE)/color/%.scss
cat $< $(ALICE_SCSS) | sass --scss -s $@
COLORFILES := $(foreach dir,$(CSS_SOURCE)/color,$(wildcard $(dir)/*.scss))
CSSFILES := $(addprefix $(BUILD)/alice-,$(notdir $(COLORFILES:.scss=.css)))
stylesheets: $(CSSFILES)
@ryanfb
ryanfb / environment.rb
Created February 6, 2009 14:21 — forked from mislav/_note.md
SQLite & rake-based Git & Rails database branching, see http://tinyurl.com/a7e6jo
# Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(__FILE__), 'boot')
require 'git_conf'
Rails::Initializer.run(:process, GitConf.new) do |config|
# ...
end
@ryanfb
ryanfb / gist:13898
Created September 30, 2008 18:07 — forked from bkerley/gist:13858
proc stockgetchr html {
if {[llength [regexp -all -inline {<link rel="stylesheet".*mutualfund_styles.css">} $html]] > 0} {
set chrt [regexp -all -line -inline {<span class.?=.?"ch[rg]">\n(.*?)\n(.*?)\n} $html]
lset chrt 1 [regsub -all {&nbsp;} [lindex $chrt 1] ""]
lappend chr [lindex $chrt 1] [lindex $chrt 2]
} else {
set chrt [regexp -all -inline {<span class="ch[rg]".*?>(.*?)<} $html]
lappend chr [lindex $chrt 1] [lindex $chrt 3]
}
return $chr