This file contains hidden or 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 hidden or 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
// Tokenahead.less | |
// --------------- | |
.tokenahead { | |
cursor: text; | |
overflow: hidden; | |
height: auto; | |
padding-bottom: 0; | |
border-color: @inputBorder; | |
} |
This file contains hidden or 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
# help text | |
$ hulk | |
# help text build all template files | |
$ hulk /templates/* | |
# build all templates which end in a mustache extension | |
$ hulk /templates/*.mustache | |
# build just the layout template |
This file contains hidden or 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 hidden or 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 hidden or 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) { | |
This file contains hidden or 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
<div class="timeline"> | |
<!-- load more button --> | |
<button>{{message}}</button> | |
<!-- tweet object --> | |
{{#tweets}} | |
{{> tweet}} | |
{{/tweets}} |
This file contains hidden or 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(d, s, id) { | |
var js, fjs = d.getElementsByTagName(s)[0]; | |
if (!d.getElementById(id)) { | |
js = d.createElement(s); js.id = id; | |
js.src = "//script.js"; | |
fjs.parentNode.insertBefore(js, fjs); | |
} | |
}(document, "script", "uniqueID") |
This file contains hidden or 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-tabs.js v1.3.0 | |
* http://twitter.github.com/bootstrap/javascript.html#tabs | |
* ======================================================== | |
* 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 hidden or 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 ALEX = ['foo', 'bar']; | |
//n00bs write: | |
if (ALEX.indexOf('foo') > -1) { | |
//ALEX contains foo | |
} | |
//pros write: | |
if (~ALEX.indexOf('foo')) { | |
//ALEX contains foo |