#NG-LINKS
- Passing Arugments to $on() in AngularJS from $emit() and $broadcast()
- trigger click event from angularjs directive
- Communication Between Services and Controllers
- How can i broadcast an object in angularjs
- AngularJS – Communicating Between Controllers
- 6 Common Pitfalls Using Scopes
- More AngularJS Magic to Supercharge your Webapp
- [Ev
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
| /* | |
| Theme Name: Blank theme | |
| Theme URI: | |
| Description: | |
| Author: Nicolas Canfrere | |
| Version: 1.0 | |
| License: GNU General Public License | |
| License URI: license.txt | |
| Tags: | |
| */ |
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 myfunc(){ | |
| try { | |
| console.log('into try'); | |
| return; | |
| } catch ( e ) { | |
| console.log('die'); | |
| } | |
| console.log('after try'); | |
| } |
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
| // this is the part i always use | |
| $.ajax = function(url, callback) { | |
| var xhr = new XMLHttpRequest(); | |
| xhr.open("GET", url, true); | |
| xhr.onload = callback; | |
| xhr.send(); | |
| } |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
| Ctrl+C | copy current line (if no selection) |
| Ctrl+X | cut current line (if no selection) |
| Ctrl+⇧+K | delete line |
| Ctrl+↩ | insert line after |
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
| // Ported from Stefan Gustavson's java implementation | |
| // http://staffwww.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf | |
| // Read Stefan's excellent paper for details on how this code works. | |
| // | |
| // Sean McCullough banksean@gmail.com | |
| /** | |
| * You can pass in a random number generator object if you like. | |
| * It is assumed to have a random() method. | |
| */ |
NewerOlder