I hereby claim:
- I am jwulf on github.
- I am sitapati (https://keybase.io/sitapati) on keybase.
- I have a public key ASDFRpBPO2qTiY_f3gJrat5LKouuD2d9WUuG7skM70juZQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| declare namespace magikcraft { | |
| } | |
| declare namespace http { | |
| function get(url: string): Object; | |
| function post(url: string, data: Object): Object; | |
| function post(url: string, data: any, contentType: string): Object; | |
| } | |
| /** | |
| * The eventbus is a global pub/sub system. It is useful for your own code, and it also the mechanism that allows your code to communicate with code that others are running on the server. |
| /** | |
| * This is the Insulin class | |
| * Create a new instance of this class for basal and fast-acting insulins. | |
| * | |
| * param {number} onsetDelay - the number of seconds before the insulin effect kicks instance. | |
| * param {number} duration - the number of seconds of the total effective duration of this insulin. | |
| * param {number} peak - the number of seconds to the peak action of the insulin. Set to 0 for a flat (consistent) effect. Is modelled as a bell curve centered on the peak. | |
| * param {number} power - the effect of the insulin. This is the peak power for insulins wiht a peak response. | |
| */ | |
| const magik = magikcraft.io; |
| var magik = magikcraft.io; | |
| magik.dixit('Initiating Game Loop'); | |
| if (gameloop) { | |
| magik.clearInterval(gameloop); | |
| } | |
| var gameloop = magik.setInterval(doLoop, 1000); | |
| function doLoop() { |
| declare function require(moduleName: string): any; | |
| declare const module: any; |