- let your code swoop in and swoop out like a bat. Like a Batman.
- concept: template markers so absurdly safe they can be injected & extracted without tokenization
- use: temporary injections of code for debugging purposes
- only a single template operator / matching tag-set provided.
- One operator is all you need, when your operator is the batsignal.
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
//Comprehensive check for whether or not a Javascript variable has actual content | |
var hasContent = function(input) { | |
if (typeof input === 'number') { | |
if (isNaN(input)) { | |
return false; | |
}; | |
} else { | |
if (input === 0) { | |
return false; | |
} |
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
/** | |
* Custom Lodash functions for transforming http GET requests | |
*/ | |
_.mixin({ | |
//Shifts an item in an array from one location in an array to another | |
move: function (array, fromIndex, toIndex) { | |
array.splice(toIndex, 0, array.splice(fromIndex, 1)[0] ); | |
return array; | |
}, |
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
#find version of globally installed package | |
alias npmpv="npm list -g | grep" | |
#add new alias to bashrc, also make immediately available | |
function newalias { | |
echo "" >> ~/.bashrc | |
echo "" >> ~/.bashrc | |
echo 'alias' ${1}='"'${2}'"' >> ~/.bashrc | |
$(echo 'alias' ${1}'='${2}) | |
} |
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
require('colors'); | |
gulp.task('get-tasks', () => | |
(process.nextTick(() => { | |
console.log('\n_________ALL REGISTERED GULP TASKS_________'); | |
Object.keys(gulp.tasks).forEach((t) => | |
((t === 'install' || t === 'uninstall') ? null : | |
console.log('-- ' + t.bgBlack.green))) | |
console.log('___________________________________________\n'); | |
}))); |
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
which node | |
#-->node: /usr/bin/node /usr/bin/X11/node /usr/local/bin/node /usr/share/man/man1/node.1.gz | |
which node | cut -d':' -f1 | |
#-->node | |
which node | cut -d':' -f2 | |
#--> /usr/bin/node /usr/bin/X11/node /usr/local/bin/node /usr/share/man/man1/node.1.gz | |
which node | cut -d':' -f3 |
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
################################################################################ | |
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PROJECT INFO ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
################################################################################ | |
#display name of current git branch [TOADD] | |
alias curbranch="git branch | grep '\*'" | |
#output a divider to the cli [TOADD] | |
alias clidivider="echo '======================================'" | |
#provides the current directory name - without the full path [TOADD] |
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
# Private action used by function slicesenerr below - do not use | |
alias __slicesenerr_slicer="sed 's/ at/\n at/g' | \ | |
sed 's/trace=/\n\ntrace=/g'| \ | |
sed 's/\/home\/andfaulkner\/Projects\/testbed\/testbed-seneca--4//g' | \ | |
sed 's/, argv=/,\n argv=/g' | \ | |
sed 's/, rss=/,\n rss=/g' | \ | |
sed 's/, heapTotal=/,\n heapTotal=/g' | \ | |
sed 's/, loadavg=/,\n loadargv=/g' | \ | |
sed 's/ date=/\n date=/g' | \ | |
sed 's/ native=\(true\|false\), / /g' | \ |
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
alert('HIJACKED!'); |
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
Linux - create "Default (Linux).sublime-mousemap" in ~/.config/sublime-text-3/Packages/User | |
Mac - create "Default (OSX).sublime-mousemap" in ~/Library/Application Support/Sublime Text 3/Packages/User | |
Win - create "Default (Windows).sublime-mousemap" in %appdata%\Sublime Text 3\Packages\User | |
[ | |
{ | |
"button": "button1", | |
"count": 1, | |
"modifiers": ["ctrl"], | |
"press_command": "drag_select", |
OlderNewer