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 debounceWithResult (func, wait, immediate) { | |
| function newDeferred () { | |
| var deferred = {}; | |
| deferred.promise = new Promise(function (resolve, reject) { | |
| deferred.resolve = resolve; | |
| deferred.reject = reject; | |
| }); | |
| return deferred; | |
| } |
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
| <!-- place at ~/.config/sublime-text-3/Packages/User/$any.sublime-snippet --> | |
| <snippet> | |
| <content><![CDATA[ | |
| { | |
| \$any: { | |
| \$alias: '${1:this}', | |
| \$expr: { | |
| ${1:this}: { | |
| }, | |
| }, |
OlderNewer