Skip to content

Instantly share code, notes, and snippets.

View thepleb's full-sized avatar

Rook Anderson thepleb

View GitHub Profile
@thepleb
thepleb / aa.zsh-theme
Created March 9, 2012 04:47
My oh.my.zsh theme file
PROMPT='$fg[green][%m]%{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg[red]%}$(rvm_ruby_prompt)
%{$fg_bold[red]%}➜ %{$reset_color%}'
RPROMPT='%{$reset_color%} %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} %{$reset_color%}'
ZSH_THEME_GIT_PROMPT_PREFIX="git:(%{$fg[yellow]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[magenta]%}✗%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
@thepleb
thepleb / barfu.rb
Created November 2, 2012 13:13
highcharts stacked bar graph
## use lazy_high_charts to make a horizontal stacked bar chart
# in the controller
@h = LazyHighCharts::HighChart.new('graph') do |f|
f.options[:chart][:defaultSeriesType] = "bar"
f.options[:title][:text] = "Sample Title Text"
f.legend(:reversed => 'true')
f.xAxis(:categories=>['Cat1',
'Cat2',
'Cat3',
@thepleb
thepleb / Lines.rb
Created November 2, 2012 18:37
Line Chart for lazy_high_charts
# In the controller
@lineChart = LazyHighCharts::HighChart.new('graph') do |f|
f.options[:chart][:defaultSeriesType] = "line"
f.options[:title][:text] = "Chart Title"
f.xAxis(:categories=>['Jan', 'Feb', 'March', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'])
f.series(name: 'This Series', :data=> [1,2,3,4,5,6,7,8,9,10,9,8])
f.series(name: 'That Series', :data=> [10,9,8,7,5,6,7,8,9,10,9,8])
end