ember 1.10.0-beta-4 htmlbars http://jsbin.com/vunere/1/edit?html,js,output
ember 1.9.1 handlebars 2.0 http://jsbin.com/mahixo/1/edit?html,js,output
ember 1.9.0 handlebars 2.0
ember 1.10.0-beta-4 htmlbars http://jsbin.com/vunere/1/edit?html,js,output
ember 1.9.1 handlebars 2.0 http://jsbin.com/mahixo/1/edit?html,js,output
ember 1.9.0 handlebars 2.0
alias commit='git commit -a -m \"$(curl -s http://whatthecommit.com|xpath "//p[1]/text()" 2>/dev/null)\"' |
@function strip-units($number) { | |
@return $number / ($number * 0 + 1); | |
} | |
@function rem($x, $fallback:false){ | |
@if type-of($x) != "number" or $x == 0 { | |
@return $x; | |
} @else { |
// Download rollbar.js and rollbar.min.js from: | |
// http://d37gvrvc0wt4s1.cloudfront.net/js/1/rollbar.js | |
// http://d37gvrvc0wt4s1.cloudfront.net/js/1/rollbar.min.js | |
// | |
// Place them into vendor/ and this code into lib/rollbar.js, or something | |
(function(w, d) { | |
w._rollbarParams = { | |
"server.environment": "production", | |
"notifier.snippet_version": "2" |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>2-column fluid masonry layout without JS plugins</title> | |
<!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]--> | |
<style> | |
body { | |
text-align: center; | |
padding: 3% 8%; |
if [ -f "${rvm_path}/scripts/rvm" ]; then | |
source "${rvm_path}/scripts/rvm" | |
if [ -f ".rvmrc" ]; then | |
source ".rvmrc" | |
elif [ -f ".ruby-version" ] && [ -f ".ruby-gemset" ]; then | |
rvm use `cat .ruby-version`@`cat .ruby-gemset` | |
elif [ -f ".ruby-version" ]; then | |
rvm use `cat .ruby-version` |
platform :ios, '5.0' | |
# Awesome networking | |
pod 'AFNetworking' | |
# Backported UICollectionView | |
pod 'PSTCollectionView' | |
# Rich text | |
pod 'TTTAttributedLabel' |
mymodule { | |
@at-root { | |
.#{&}-header { ... } | |
.#{&}-footer { ... } | |
.#{&}-body { | |
a { ... } | |
span { ... } | |
p { ... } | |
} | |
} |
//addEventListener polyfill 1.0 / Eirik Backer / MIT Licence | |
(function(win, doc){ | |
if(win.addEventListener)return; //No need to polyfill | |
function docHijack(p){var old = doc[p];doc[p] = function(v){return addListen(old(v))}} | |
function addEvent(on, fn, self){ | |
return (self = this).attachEvent('on' + on, function(e){ | |
var e = e || win.event; | |
e.preventDefault = e.preventDefault || function(){e.returnValue = false} | |
e.stopPropagation = e.stopPropagation || function(){e.cancelBubble = true} |