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
| var _ = require('underscore')._; | |
| var casper = require('casper').create({ | |
| clientScripts: [ | |
| 'bower_components/jquery/dist/jquery.min.js', | |
| 'bower_components/underscore/underscore.js' | |
| ], | |
| verbose: true, | |
| logLevel: 'debug' | |
| }); |
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
| var fs = require('fs'); | |
| var _ = require('underscore')._; | |
| var artists = [{ | |
| name: 'Raphaeel Saadiq', | |
| album: [ | |
| 'Instant Vintage' | |
| ] | |
| }, { |
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
| /*! Js Pub/Sub | |
| * http://anasnakawa.com/ | |
| * Copyright (c) Anas Nakawa | |
| * inspired by Ben Alman's one <https://gist.github.com/cowboy/661855> | |
| * MIT License | |
| */ | |
| (function( p ) { | |
| var e = p.e = {}; |
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
| # whats up | |
| alias whats="vagrant" |
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
| $ ~/workspace/sandbox/__(-_-)__ |
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
| addresses = _.sortBy(addresses, function(address) { | |
| addressEntity = address.address; | |
| var reducedKey; | |
| reducedKey = ['name', 'city', 'zipCode'].reduce(function(previous, current) { | |
| if (previous && addressEntity.hasOwnProperty(previous) && addressEntity[previous]) { | |
| return previous; | |
| } else if (current) { | |
| return current; | |
| } | |
| }); |
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
| # http://editorconfig.org | |
| root = true | |
| [*] | |
| indent_style = space | |
| indent_size = 4 | |
| end_of_line = lf | |
| charset = utf-8 | |
| trim_trailing_whitespace = true | |
| insert_final_newline = true |
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
| function Person(name) { | |
| this.name = name; | |
| this.someArray = []; | |
| } | |
| Person.prototype.someArray2 = []; | |
| var adnan = new Person('adnan'); | |
| adnan.someArray.push('something1'); | |
| adnan.someArray2.push('something2'); |
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
| # http://editorconfig.org | |
| root = true | |
| [*] | |
| indent_style = space | |
| indent_size = 2 | |
| end_of_line = lf | |
| charset = utf-8 | |
| trim_trailing_whitespace = true | |
| insert_final_newline = true |
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
| module.exports = function (grunt) { | |
| grunt.initConfig({ | |
| browserify: { | |
| dist: { | |
| options: { | |
| transform: [ | |
| ["babelify", { | |
| loose: "all", | |
| stage: 0 | |
| }], |