This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Backbone + sinon simple tests</title> | |
<script src="http://code.jquery.com/jquery-1.7.2.min.js" type="text/javascript"></script> | |
<script type="text/javascript" src='http://documentcloud.github.com/underscore/underscore-min.js'></script> | |
<script type="text/javascript" src='http://documentcloud.github.com/backbone/backbone.js'></script> | |
<script type="text/javascript" src='http://sinonjs.org/releases/sinon-1.3.4.js'></script> | |
<script src="https://raw.github.com/douglascrockford/JSON-js/master/json2.js" type="text/javascript"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.colums { | |
@include columnContainer; | |
} | |
@for $i from 1 through $columns { | |
.colum#{$i} { | |
@include grid($i); | |
} | |
.offset#{$i} { | |
@include offset($i); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var baseView = Backbone.View.extend({ | |
defaults: { | |
defaulsVal: 'this is defaults' | |
}, | |
initialize: function () { | |
_.defaults(this, this.defaults); | |
}, | |
render: function () { | |
console.log(this.defaulsVal); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin psedo-class($attr, $prop, $elem, $n:2) { | |
$elems: ''; | |
@for $i from 1 through $n { | |
$elems: #{$elems} + #{$elem}; | |
@if $i == $n { | |
.lt-ie9 &:first-child #{$elems} { | |
#{$attr}: #{$prop}; | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
images = [ | |
image1.jpg, | |
image2.jpg, | |
image3.jpg, | |
image4.jpg | |
] | |
preload: (images, callback) -> | |
count = images.length | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Your gem file Settings to take effect | |
# Use unicorn as the app server | |
gem 'unicorn' | |
# and bundle install Gem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
doctype html | |
/[if lt IE 7] | |
| <html class="ie6"> | |
/[if IE 7] | |
| <html class="ie7"> | |
/[if IE 8] | |
| <html class="ie8"> | |
/[if IE 9] | |
| <html class="ie9"> | |
| <!--[if (gte IE 9)|!(IE)]<!--> <html> <!--<![endif]--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
var name = "foo"; | |
var func = new Function( | |
"return function " + name + "(){ alert('sweet!')}" | |
)(); | |
//call it, to test it | |
func(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo mkdir -p /Library/Server/Mail/Data/spool | |
$ sudo /usr/sbin/postfix set-permissions | |
chown: /usr/share/man/man1/postalias.1.gz: No such file or directory | |
$ sudo /usr/sbin/postfix start | |
postfix/postfix-script: warning: group or other writable: /Library/Server/Mail/Data/mta | |
postfix/postfix-script: starting the Postfix mail system | |
$ sudo postfix check | |
postfix/postfix-script: warning: group or other writable: /Library/Server/Mail/Data/mta |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media all and (min-width:45em) { | |
body:after { | |
content: 'desktop'; | |
display: none; | |
} |