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
* { | |
margin: 0; | |
padding: 0; | |
border: 0; | |
font: inherit; | |
-webkit-box-sizing: border-box; | |
-moz-box-sizing: border-box; | |
box-sizing: border-box; | |
position: relative; | |
} |
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
unless typeof Object.extend is 'function' | |
Object.defineProperty Object, 'extend', | |
value: (orig, ext) -> | |
props = {} | |
for name in Object.getOwnPropertyNames(ext) when name not in orig | |
props[name] = Object.getOwnPropertyDescriptor ext, name | |
Object.create orig, props | |
configurable: true | |
writable: true |
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
info it worked if it ends with ok | |
verbose cli [ 'node', '/usr/bin/npm', 'install', 'express' ] | |
info using [email protected] | |
info using [email protected] | |
verbose config file /home/jacob/.npmrc | |
verbose config file /home/jacob/.nvm/v0.4.12/etc/npmrc | |
verbose config file /usr/lib/nodejs/npm/npmrc | |
verbose into /home/jacob/git/npmtest [ 'express' ] | |
verbose cache add express | |
verbose cache add [ 'express', null ] |
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
*.png diff=xpm |
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
/* | |
Fadeout and marquee | |
*/ | |
.fadeout-text { | |
overflow: hidden; | |
width: 130px; | |
/* Fallback solution for browsers that | |
doesn't support the next set of rules. */ | |
text-overflow: ellipsis; | |
white-space: nowrap; |
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
%test { | |
foo: bar; | |
} |
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
// DOM sugar | |
// ================================================================== | |
// Modified version of Neil Jenkins' "Sugared DOM" <https://gist.github.com/3524145> | |
// | |
// Usage | |
// ------------------------------------------------------------------ | |
// var make = domsugar(document); | |
// | |
// make( 'p.foo#bar', { hidden: true }, [ make( 'span' ) ] ); | |
// => <p class="foo" id="bar" hidden><span></span></p> |
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
// Proof of concept DOM utility library | |
// | |
// Usage | |
// ------------------------------------------------------------------ | |
// var html = window.domchain; | |
// html().p('.foo#bar').span().text("Hello World").render(); | |
// => <p class="foo" id="bar"><span>Hello World</span></p> | |
// | |
// Inspired by [htmlutils](https://github.com/jensl/critic/blob/master/htmlutils.py), | |
// [domo](https://github.com/jed/domo) and [Sugared DOM](https://gist.github.com/1532562); |
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 test (name, fn) { | |
console.group(name); | |
var args = [ console.assert.bind(console) ]; | |
// Async | |
if (fn.length > 1) { | |
var timeout = setTimeout(function(){ console.error(name+' timed out'); }, 2000); | |
args.push(clearTimeout.bind(null, timeout)); | |
} | |
fn.apply(null, args); | |
console.groupEnd(); |
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
#!/bin/bash | |
function install { | |
# Stop and clean up existing containers | |
docker ps -a | grep critic | awk '{print $1}' | xargs docker rm -f | |
# Run a postgres container based on the standard Docker postgres image | |
docker run --name critic-postgres -d postgres | |
# Build a Critic image based on Debian |
OlderNewer