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
| exec = require('child_process').exec | |
| config = | |
| sassDir : "scss" # SCSS/SASS Folder | |
| cssDir : "css" # CSS Folder | |
| coffeeDir : "src" # CoffeeScript Folder | |
| jsDir : "js" # JavaScript Folder | |
| task "watch", "Watches Assets for changes and compiles them", -> | |
| exec "sass --watch #{config.sassDir}:#{config.cssDir}", (err, stdout, stderr) -> |
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
| git branch | grep "*" | awk '{ print $2 }' | pbcopy |
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
| class Node | |
| cargo : null | |
| left : null | |
| right : null | |
| constructor : (@cargo) -> | |
| class Tree |
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
| <?php | |
| /** | |
| * ModelDecorator Class | |
| * Decorate Models to seperate out common logic | |
| * | |
| * @author Lucas Nolte <[email protected]> | |
| */ | |
| class Modeldecorator { |
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
| addComma = (number) -> | |
| number = new String number | |
| chars = number.split('').reverse() | |
| i = 0 | |
| formatted = [] | |
| for char in chars | |
| if (i%3) is 0 and i isnt 0 | |
| formatted.push('.') |
NewerOlder