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
Show hidden characters
| [ | |
| { | |
| "keys": ["alt+space"], | |
| "command": "insert_snippet", | |
| "args": { | |
| "contents": " " | |
| } | |
| } | |
| ] |
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
| .btn | |
| border 0 | |
| margin 0 | |
| cursor pointer | |
| padding 1em 2em | |
| background #478BEF | |
| color #fff | |
| font inherit | |
| font-size 1.3em | |
| font-weight 100 |
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
| "browserify-shim": { | |
| "restangular": { | |
| "depends": [ | |
| "lodash:_" | |
| ] | |
| }, | |
| "angular-moment": { | |
| "depends": [ | |
| "moment:moment" | |
| ] |
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
| bundles = | |
| app: | |
| src: './client/js/main.coffee' | |
| dest: './public/js/' | |
| filename: 'main.js' | |
| admin: | |
| src: './client/js/admin.coffee' | |
| dest: './public/js/' | |
| filename: 'admin.js' |
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
| handleError = (err) -> | |
| gutil.log err | |
| gutil.beep() | |
| this.emit 'end' | |
| throw err if production |
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
| $.get('foobar.php').then(function() { | |
| console.log('success'); | |
| }, function() { | |
| console.log('fail'); | |
| }); |
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
| .config(function(MessageFormatterProvider) { | |
| // Initial formatters and example usage | |
| // Removes all tags | |
| MessageFormatterProvider.addFormatter(function(message) { | |
| return message.replace(/<[^>]+>/gm, ''); | |
| }); | |
| // Replace line breaks with br - tag |
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
| $rootScope | |
| .$on '$stateChangeStart', (event, toState, toParams) -> | |
| if not Auth.isAuthed() and toState.name isnt Auth.loginState and not (toState.name in Auth.ignoredRoutes) | |
| event.preventDefault() | |
| Auth.checkAuth().then -> | |
| $state.transitionTo toState, toParams | |
| , -> | |
| $state.transitionTo Auth.loginState, toParams |
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
| node_modules |
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
| .DS_Store |