$ brew update
$ brew upgrade rbenv
$ cd ~/.rbenv/plugins/ruby-build
$ git pull
require 'rubygems' | |
require 'sinatra' | |
set :public_folder, File.dirname(__FILE__) + '/' | |
get('/') { open('index.html').read } | |
run Sinatra::Application |
/* 6 selectors */ | |
.a, .a .b, .a .b .c { | |
color: red; | |
} | |
.a, .a .b, .a .b .c { | |
font-size: 10px; | |
} |
:sass | |
a | |
display: block | |
margin: 0 auto | |
max-width: 500px | |
object | |
pointer-events: none | |
width: 100% | |
%a(href='http://ruedap.com') | |
%object(data='ruedap.svg') |
companies = [{"id":1,"ticker":"AAPL","name":"Apple Inc"}, | |
{"id":2,"ticker":"ABC","name":"Amerisourcebergen Corp"}, | |
{"id":3,"ticker":"ABT","name":"Abbott Labs"}, | |
{"id":4,"ticker":"ACE","name":"Ace Ltd"}, | |
{"id":5,"ticker":"ADBE","name":"Adobe Sys Inc"}] | |
_.templateSettings = interpolate :/\{\{(.+?)\}\}/g | |
$ -> |
source "https://rubygems.org" | |
gem 'css_parser' |
"compass": u("\uf"), | |
"collapse": u("\uf"), | |
"collapse-top": u("\uf"), | |
"expand": u("\uf"), | |
"eur": u("\uf"), | |
"euro": u("\uf"), | |
"gbp": u("\uf"), | |
"usd": u("\uf"), | |
"dollar": u("\uf"), | |
"inr": u("\uf"), |
// Sass 3.2.9 | |
=hoge($c1: #111, $c2: #222, $c3: #333, $c4:#444) | |
border-top: $c1 | |
border-left: $c2 | |
border-right: $c3 | |
border-bottom: $c4 | |
.hoge | |
+hoge($c1: #000, $c2: #000, $c4: #000) |