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
function __tailingFn () { | |
for (var i = arguments.length; i--;) { | |
if (typeof arguments[i] == 'function') { | |
var fn = arguments[i]; | |
arguments[i] = undefined; | |
return fn; | |
} | |
} | |
} |
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
module.exports = MyModule; | |
function MyModule (a, b) { | |
if (!(this instanceof MyModule)) return new MyModule(a, b); | |
} |
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
@cdn: "rons-house"; | |
.add-bg(@url) { | |
background-image: @url; | |
} | |
.foo { | |
.add-bg(~"url(@{cdn}/bar.png)"); | |
} |
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
<!-- CSS --> | |
<link rel="stylesheet" href="stylesheets/base.css"> | |
<link rel="stylesheet" href="stylesheets/skeleton.css"> | |
<link rel="stylesheet" href="stylesheets/layout.css"> | |
<link rel="stylesheet" href="stylesheets/hush.css"> | |
<!-- JS --> | |
<script src="javascript/hush.js"></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
<!-- Defines a coffin drawer --> | |
<div class="coffin"> | |
<div class="bar">coffin</div> | |
<ul class="nav"> | |
<li><a data-coffin="click" href="#about">About</a></li> | |
<li><a data-coffin="click" href="#contact">Contact</a></li> | |
</ul> | |
</div> | |
<!-- Defines a coffin stage --> |
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
<!-- CSS --> | |
<link rel="stylesheet" href="stylesheets/base.css"> | |
<link rel="stylesheet" href="stylesheets/skeleton.css"> | |
<link rel="stylesheet" href="stylesheets/layout.css"> | |
<link rel="stylesheet" href="stylesheets/coffin.css"> | |
<!-- JS --> | |
<script src="javascript/coffin.js"></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
<head> | |
<link rel="stylesheet" href="stylesheets/base.css"> | |
<link rel="stylesheet" href="stylesheets/skeleton.css"> | |
<link rel="stylesheet" href="stylesheets/layout.css"> | |
<link rel="stylesheet" href="stylesheets/coffin.css"> | |
</head> | |
<body> | |
<!-- Specify an element to toggle your coffin --> |
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
.spanX (@gridColumns) when (@gridColumns = 0) {} | |
.spanX (@gridColumns) when not (@gridColumns = 0) { | |
.span1 { .span(@gridColumns); } // need to find out a way to change .span1 into ".span@{gridcolumns}" | |
#grid .spanX(@gridColumns - 1); | |
} | |
.spanX(12); // this actually works |
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
// ======================================================================== | |
// bootstrap-builder v0.1.0 | |
// http://twitter.github.com/bootstrap | |
// ======================================================================== | |
// Copyright 2011 Twitter, Inc. | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// |
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
// require hogan | |
var hogan = require("hogan.js"); | |
// compile template | |
var template = hogan.compile("@{{name}}"); | |
var team = ['dhg', 'fat', 'jimio', 'nickgreen', 'sayrer']; | |
team.map(function (twitterer) { | |