Skip to content

Instantly share code, notes, and snippets.

View levibrown's full-sized avatar
:octocat:

Levi Brown levibrown

:octocat:
  • Bend, Oregon
  • 12:23 (UTC -07:00)
View GitHub Profile
@levibrown
levibrown / rbenv-install-system-wide.sh
Created January 7, 2012 20:24
rbenv install and system wide install on Ubuntu 10.04 LTS.
# Update, upgrade and install development tools:
apt-get update
apt-get -y upgrade
apt-get -y install build-essential
apt-get -y install git-core
# Install rbenv
git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv
# Add rbenv to the path:
@levibrown
levibrown / CSS3 Media Queries Template
Created January 26, 2012 19:09
CSS3 Media Queries template
/*
* Author: http://stuffandnonsense.co.uk/blog/about/hardboiled_css3_media_queries/
*/
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* Styles */
}
@levibrown
levibrown / config.json
Created January 2, 2013 03:23
bar chart demo
{"description":"bar chart demo","endpoint":"","display":"svg","public":true,"require":[],"fileconfigs":{"inlet.js":{"default":true,"vim":false,"emacs":false,"fontSize":12},"config.json":{"default":true,"vim":false,"emacs":false,"fontSize":12}},"tab":"edit","display_percent":0.7,"play":false,"loop":false,"restart":false,"autoinit":true,"pause":true,"loop_type":"period","bv":false,"nclones":15,"clone_opacity":0.4,"duration":3000,"ease":"linear","dt":0.01,"hidepanel":false}
@levibrown
levibrown / _.md
Created January 5, 2013 19:46
line graph

An inlet to tributary

@levibrown
levibrown / _.md
Created January 11, 2013 04:45
us map

An inlet to tributary

def pay_online(name, link, css_class)
if @store && @store.remote_store_url
link_to("#{name}<span></span>".html_safe, @store.remote_store_url, :class => "#{css_class} pay_online", :target => '_blank')
elsif @client.stores.first.pay_online_corp
link_to("#{name}<span></span>".html_safe, content_url(:page => 'pay_online', :host => determine_host_name), :class => "#{css_class} pay_online", :target => '_blank')
else
end
end
def lead_link(name, link, css_class)
<!doctype html>
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head >
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes" />
@levibrown
levibrown / metro-park.json
Created June 19, 2013 22:37
skyline preset history
{
"primary-color":"red",
"secondary-color":"blue"
}
<!doctype html>
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head >
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes" />
_