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('.') |
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
| 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
| 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
| 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
| #!/usr/bin/env coffee | |
| http = require "http" | |
| domain = process.argv[2] | |
| http.get "http://trustlinker.de/api/domain.json?url=#{domain}", (res) -> | |
| res.setEncoding "utf8" | |
| res.on "data", (data) -> | |
| data = JSON.parse data |
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
| #!/usr/bin/env node | |
| /** | |
| * generateTypos | |
| * Generate Typos from keywords | |
| * | |
| * @param array keywords | |
| * @param bool wrongKeys | |
| * @param bool missedChars | |
| * @param bool transposedChars |
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 clone [email protected]:targat/frontend-setup.git . | |
| rm -rf .git | |
| mkdir css | |
| bundle install |
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
| source 'https://rubygems.org' | |
| gem 'compass' | |
| gem 'modular-scale' | |
| gem 'crispy-grid' |
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 $customKeys = get_post_custom(); | |
| foreach($customKeys as $key => $value) { | |
| if(substr($key, 0, 1) !== '_') { | |
| ?> | |
| <h3><?php echo $key; ?></h3> | |
| <p><?php echo $value[0]; ?></p> | |
| <?php | |
| } | |
| } | |
| ?> |
OlderNewer