var globule = require('./lib/globule');
globule.find([
'**/*.js',
'!**/*built.js',
'**/*.js',
'**/*.js',
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 comment | |
"a": "hello", | |
# this is another comment | |
"b": -1, | |
"c": [ | |
true, | |
"test", | |
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
// When a jQuery deferred is resolved with a single value, the arguments to | |
// the .then callback are the same as when .then is called directly on the | |
// deferred or on $.when(deferred) AND ALSO $.when(deferred, deferred). | |
var dfd = $.Deferred().resolve([1, 2, 3]); | |
dfd.then(function(a) { | |
console.log('[1a]', a); // [1, 2, 3] | |
}); | |
$.when(dfd).then(function(a) { | |
console.log('[2a]', a); // [1, 2, 3] | |
}); |
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
module.exports = function(grunt) { | |
grunt.initConfig({}); | |
grunt.registerTask('require-wrapper', 'whatever', function() { | |
var done = this.async(); | |
var args = this.args; | |
// simulate async config building | |
setTimeout(function() { | |
// set config | |
grunt.config('requirejs', {yay: 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
var globule = require('globule'); | |
// This actually looks for files '1' '2' etc, doesn't find them, | |
// but retains the pattern because nonull == true | |
console.log(globule.findMappingSync({ | |
src: '12345'.split(''), | |
nonull: true, | |
rename: function(n) { | |
return { | |
src: 'in/' + n + '.txt', |
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
module.exports = function(grunt) { | |
function toStringify(obj, toString) { | |
obj.toString = toString; | |
return obj; | |
} | |
grunt.initConfig({ | |
stuff: { | |
foo: ['l', 'o', 'l'], | |
bar: toStringify(['w', 'u', 't'], function() { |
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
SoundPlay *64 | |
; ============= | |
; Edit & Reload | |
; ============= | |
!^+F12:: | |
Edit | |
Reload | |
return |
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() { | |
var $=['_'].concat(Array(arguments.length-1),'return _'); | |
var _=Function.apply(null,$); | |
$.forEach.call(arguments,function($,$$){_[$$]=$}); | |
return $.map.bind.call($.map,_,_); | |
}(5,6,7,8))() |
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
# (Include this function in your .bashrc) | |
# If the first argument is "init" or begins with "init:", run grunt-init. | |
# Otherwise run grunt. | |
function grunt() { | |
if [[ "$1" =~ ^init: ]]; then | |
grunt-init "${1##init:}" "${@:2}" | |
elif [ "$1" == "init" ]; then | |
grunt-init "${@:2}" | |
else |
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
1843 cowboy@rj3.net (Ben Alman, cowboy) | |
1202 tyler@sleekcode.net (tkellen, Tyler Kellen) | |
695 kyle@dontkry.com, kyle@kyletyoung.com (Kyle Robinson Young, Kyle ☱☲☳☴☵☷ ☶ Robinson ☱☲ ☳☴☵☶☷ Young, shama) | |
402 vlad.filippov@gmail.com (Vlad Filippov, vladikoff) | |
388 sindresorhus@gmail.com (Sindre Sorhus, sindresorhus) | |
239 chris@christalkington.com, chris@talkingtontech.com (Chris Talkington, ctalkington) | |
138 joverson@onehealth.com, joverson@onerecovery.com, jsoverson@gmail.com (Jarrod Overson, jsoverson) | |
67 isaacdurazo@gmail.com (isaacdurazo) | |
44 jellyes2@gmail.com (James Smith, Jmeas, Jmeas Smith) | |
27 joern.zaefferer@gmail.com (Jörn Zaefferer, Jörn Zaefferer) |
OlderNewer