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 getOmnitureModules = (function(w,d,pub){ | |
var imgArr = []; | |
var getOmnitureImages = function() { | |
for (var o in w) { | |
if (o.substr(0,4) == 's_i_') { | |
imgArr.push(util.parseHref(w[o].getAttribute('src')).params); | |
} | |
} | |
}; |
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
########## SETTINGS | |
# On startup, lftp executes ~/.lftprc and ~/.lftp/rc. You can place aliases and 'set' commands | |
# there. Some people prefer to see full protocol debug, use 'debug' to turn the debug on. | |
# Certain commands and settings take a time interval parameter. It has the format Nx[Nx...], where N is time amount | |
# (floating point) and x is time unit: d - days, h - hours, m - minutes, s - seconds. Default unit is second. E.g. | |
# 5h30m or 5.5h. Also the interval can be 'infinity', 'inf', 'never', 'forever' - it means infinite interval. E.g. | |
# 'sleep forever' or 'set dns:cache-expire never'. |
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
// this example shows how you can enforce | |
// context with bind, even if you use .call | |
// or .apply | |
var FirstExample = function(name) { | |
this.name = name; | |
this.sayName = function() { | |
return 'Hello ' + this.name + '!'; |
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 util = (function(w,d,$,pub) { | |
var state; | |
state = { | |
current: null, | |
previous: [] | |
}; | |
// http schema/protocol | |
pub.getProtocol = function(str) { |
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 murk = (function(w, d, pub, dev) { | |
// state reference, mostly for | |
// dev/internal use and context | |
var state = { | |
model: {}, | |
dom: null, | |
elems: {} | |
}; |
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 util = (function(w,d,$,pub) { | |
var state; | |
state = { | |
current: null, | |
previous: [] | |
}; | |
// http schema/protocol | |
pub.getProtocol = function(str) { |
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
[user] | |
email = [email protected] | |
name = XXXX XXXXXXX | |
[core] | |
mergeoptions = --no-commit | |
[alias] | |
pff = pull --ff-only | |
quick = log -1 --format='%h - %an - %ad - %s' --date=local --name-status | |
squash = merge --squash | |
blog = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative |
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
@echo off | |
rem set MONGODB=D:\Mongo\bin\mongod.exe | |
set MONGODB=C:\MongoDB\Server\3.0\bin\mongod.exe | |
set DB_PATH=D:\Mongo\data\db | |
echo Starting MongoDB ... | |
start %MONGODB% --dbpath %DB_PATH% | |
echo Success! |
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
/** | |
* registers custom handlebars helper fn | |
* that gives context of `cssPrefix` option | |
* passed in from cli args | |
*/ | |
module.exports.register = function(hbs) { | |
hbs.registerHelper('cssPrefix', function(args) { | |
return args.data.root.cssPrefix; | |
}); | |
}; |
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
// This optional file is used to load the CLI options and KSS generator needed | |
// by this template. | |
// | |
// The filename should follow standard node.js require() conventions. See | |
// http://nodejs.org/api/modules.html#modules_folders_as_modules It should | |
// either be named index.js or have its name set in the "main" property of the | |
// template's package.json. | |
var KssHandlebarsGenerator; |