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
#async version of: http://researchhubs.com/post/computing/javascript/convert-directory-structure--to-json-with-node-js.html | |
inspect = require('util').inspect | |
chalk = require('chalk') | |
debug = require('debug')('helper:folderStructure') | |
fs = require('fs') | |
path = require('path') | |
async = require('async') |
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
angular.module 'tsd.orderByEmptyLast', [] | |
.filter 'orderByEmptyLast', ($filter) -> | |
return (list, predicate, reverse)-> | |
orderedList = $filter('orderBy')(list, if reverse then ['!' + predicate, '-' + predicate] else ['!' + predicate, predicate] ) | |
return orderedList |
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
### Keybase proof | |
I hereby claim: | |
* I am 360disrupt on github. | |
* I am 360disrupt (https://keybase.io/360disrupt) on keybase. | |
* I have a public key whose fingerprint is 5939 FC4A DDCD 2CCB D2A7 727F E821 9FCA 623C D6EA | |
To claim this, I am signing this object: |