Skip to content

Instantly share code, notes, and snippets.

# 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
@fat
fat / Tokenahead.less
Created April 18, 2012 04:01
Tokenahead - ghetto typeahead with facebook-like tokens 4 @couch <3
// Tokenahead.less
// ---------------
.tokenahead {
cursor: text;
overflow: hidden;
height: auto;
padding-bottom: 0;
border-color: @inputBorder;
}
@fat
fat / foo
Created June 21, 2012 07:16
Basic Coffin Implementation
<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 -->
@fat
fat / assets.html
Created June 21, 2012 07:17
Basic Coffin Implementation
<!-- 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>
@fat
fat / coffin.html
Last active October 6, 2015 08:18
coffin thing
<!-- 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 -->
@fat
fat / hush.html
Created June 25, 2012 06:38
Hush
<!-- 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>
var spawn = require('child_process').spawn
var cp = spawn('git', ['clone', "git://github.com/jquery/jquery.git"])
cp.stdout.setEncoding('utf8')
cp.stderr.setEncoding('utf8')
cp.stdout.on('data', function (data) {
console.log(arguments)
})
@fat
fat / github.js
Created July 2, 2012 03:48
simple basic-auth node github api
// Simple Use:
// ----------
// github('/user/repos', callback);
// github('/repos/:user/:repo/issues', { user: user, repo: repo }, callback);
var request = require('request');
var querystring = require('querystring');
var github = function (path, options, callback) {
var username = 'username';
@fat
fat / gist:3240888
Created August 2, 2012 21:40 — forked from dustinsenos/gist:3240838
LESS Mixin with String Interpolation, broken?
@cdn: "rons-house";
.add-bg(@url) {
background-image: @url;
}
.foo {
.add-bg(~"url(@{cdn}/bar.png)");
}
@fat
fat / gist:3744339
Created September 18, 2012 17:06
normalize jacob's iphone :P
/*! normalize-mobile.css v1.0.0 | MIT License */
/* ==========================================================================
HTML5 display definitions
========================================================================== */
/*
* Prevents modern browsers from displaying `audio` without controls.
* Remove excess height in iOS 5 devices.
*/