I hereby claim:
- I am hoodwink73 on github.
- I am arijit (https://keybase.io/arijit) on keybase.
- I have a public key whose fingerprint is 9113 5960 CE4C A0F0 0F8D 0461 3C99 424A F753 520E
To claim this, I am signing this object:
| function getFile (file) { | |
| var text, fn; | |
| fakeAjax(file, function oldSchoolCb (response) { | |
| if (fn) { | |
| fn(response) | |
| } else { | |
| text = response | |
| } | |
| }) | |
| // original method | |
| function canBeEnhancedLater (x) { | |
| return x | |
| } | |
| // enhancement modules | |
| function double (next) { | |
| return function (x) { | |
| return next(2 * x) |
| csp.go(function* () { | |
| // this routine acts | |
| // like the referee | |
| var table = csp.chan(); | |
| // two routines represents two players | |
| // they have access to the same channel | |
| csp.go(player, ["ping", table]) | |
| csp.go(player, ["pong", table]) |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
I hereby claim:
To claim this, I am signing this object:
| // try-catch blocks cannot handle async errors | |
| function foo() { | |
| setTimeout( function(){ | |
| baz.bar(); | |
| }, 100 ); | |
| } | |
| try { | |
| foo(); | |
| // later throws global error from `baz.bar()` |
| import Ember from 'ember'; | |
| export default Ember.Component.extend({ | |
| }); |
| function addAsync (getX, getY) { | |
| var x, y, consumer; | |
| getX(function (xVal) { | |
| if (y !== undefined && consumer !== undefined) { | |
| consumer (xVal + y) | |
| }.else { | |
| x = xVal | |
| } |
| import Ember from 'ember'; | |
| export default Ember.Component.extend({ | |
| didRender () { | |
| this._super(...arguments); | |
| console.log(this.$('.antiscroll-wrap')) | |
| this.$('.antiscroll-wrap').antiscroll({ | |
| autoHide: false | |
| }); | |
| } |