... or where JSON5 could be useful:
- package.json
- .jshintrc
- SublimeText2 settings
export EDITOR=vim | |
# export EDITOR="$HOME/bin/mate -w" | |
source ~/.bash/aliases | |
source ~/.bash/paths | |
# Bashmarks is a simple set of bash functions that allows you to bookmark | |
# folders in the command-line. | |
source ~/.bash/bookmarks |
# extract any type of compressed file | |
# credit https://coderwall.com/p/arwifq | |
function extract { | |
echo Extracting $1 ... | |
if [ -f $1 ] ; then | |
case $1 in | |
*.tar.bz2) tar xjf $1 ;; | |
*.tar.gz) tar xzf $1 ;; | |
*.bz2) bunzip2 $1 ;; | |
*.rar) rar x $1 ;; |
/***************************************************************************** | |
* GENERAL * | |
* ***************************************************************************/ | |
// Append an empty div to current element | |
$0.appendChild(document.createElement('div')) | |
// "Duplicate down" current element | |
(function() { |
/** | |
* Using experimental, unfinished version of Pre language | |
* See https://github.com/sellside/pre | |
*/ | |
html.js.js.borderradius.boxshadow.textshadow.opacity.cssgradients.boxsizing { | |
xmlns: "http://www.w3.org/1999/xhtml"; | |
xmlns-dc: "http://purl.org/dc/elements/1.1/"; | |
xmlns-ctag: "http://commontag.org/ns#"; | |
lang: "en"; |
/** | |
* See https://github.com/sellside/pre | |
*/ | |
/** | |
* References/todos: | |
* http://www.lemoda.net/javascript/dump-dom/dump-dom.html | |
* http://www.howtocreate.co.uk/tutorials/javascript/dombasics | |
* Use treewalker or nodefilter?? | |
* https://developer.mozilla.org/en-US/docs/DOM/NodeFilter |
Directory structure | |
SubModule/ | |
css/ | |
... | |
js/ | |
... | |
images/ | |
... |
// Uses ExtJS but the method names are intuitive and are present in most libraries | |
Ext.Array.map( Ext.Array.pluck(Ext.query('script'), 'src'), function(v, i) { | |
return '"' + v.slice('site.com/'.length) + '"'; | |
}).join(',\n') |