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
user { 'katie': | |
ensure => 'present', | |
comment => 'katie', | |
home => '/home/katie', | |
shell => '/bin/zsh', | |
managehome => 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
//this is a generic function which should be moved to a Baseclass of Backbone or a Backbone extension | |
autoBind = | |
{ | |
autoBind: function () { | |
var self = this; | |
var funcs = _.functions(this.constructor.prototype); | |
var protoFuncs = ['autoBind', 'constructor'].concat( | |
_.functions(Backbone.Collection.prototype), | |
_.functions(Backbone.Model.prototype)); | |
_.functions(Backbone.View.prototype)); |
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
git clone git://github.com/isaacs/npm.git ./npm | |
cd npm | |
git checkout origin/0.2 | |
make dev | |
#then make | |
npm rebuild |
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
.vcenter{ | |
body{ | |
display: table; | |
.ie6,ie7,ie8,ie9{ //thanks to our conditional comments (see comments below) | |
position: relative; //for ie | |
#container{ | |
position:absolute; //for ie | |
top:50%; //for ie | |
#page{ | |
position:relative; //for ie |
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
console.log("test") | |
Sat, 04 Dec 2010 11:16:04 GMT ["test"] 1291461364287 | |
undefined | |
console.log("test2") | |
Sat, 04 Dec 2010 11:16:07 GMT ["test2"] 1291461367231 | |
undefined | |
log.history | |
Object | |
1291461364287: Object | |
arguments: Array[1] |
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
// usage as usual: console.log('inside coolFunc',this,arguments); | |
if (typeof console !== "undefined") { | |
console.logJack = console.log; | |
window.log={} | |
window.log.history = window.log.history || {}; // store logs to a global history for reference | |
console.log=function(){ | |
var timestamp= (new Date); //create a timestamp of the log | |
var millis=timestamp.getTime(); | |
var readableString=timestamp.toUTCString(); |
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
// usage: log('inside coolFunc',this,arguments); | |
// paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/ | |
window.log = function(){ | |
log.history = log.history || []; // store logs to an array for reference | |
log.history.push(arguments); | |
if(this.console){ | |
console.log( Array.prototype.slice.call(arguments) ); | |
} | |
}; |
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
fsd |
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
sda |
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
fsd |
NewerOlder