Skip to content

Instantly share code, notes, and snippets.

View levibrown's full-sized avatar
:octocat:

Levi Brown levibrown

:octocat:
  • Bend, Oregon
  • 21:08 (UTC -07:00)
View GitHub Profile
require "bundler/capistrano"
$:.unshift(File.expand_path('./lib', ENV['rvm_path']))
require "rvm/capistrano"
set :rvm_ruby_string, '1.9.2@sinatroxy'
set :rvm_type, :system
set :bundle_flags, "--deployment"
set :application, "sinatroxy"
set :repository, "xxx@yyy:sinatroxy"
_
<!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" />
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)
@levibrown
levibrown / _.md
Created January 11, 2013 04:45
us map

An inlet to tributary

@levibrown
levibrown / _.md
Created January 5, 2013 19:46
line graph

An inlet to tributary

@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 / 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 */
}