Skip to content

Instantly share code, notes, and snippets.

View jwulf's full-sized avatar
:octocat:
Coding on Halmak

Josh Wulf jwulf

:octocat:
Coding on Halmak
View GitHub Profile

Keybase proof

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:

@jwulf
jwulf / __MAGIKCRAFT__.jwulf.jwulf.md
Last active June 21, 2017 17:00
Magikcraft API: jwulf files, by jwulf.
@jwulf
jwulf / __MAGIKCRAFT__.jwulf.promise.md
Last active June 25, 2017 00:27
Magikcraft API: promise files, by jwulf.
@jwulf
jwulf / __MAGIKCRAFT__.jwulf.magikcraft_spells.md
Last active June 28, 2017 04:26
Magikcraft Spells, by jwulf.
@jwulf
jwulf / magikcraft.intellisense.d.ts
Created June 20, 2017 15:47
Editor Intellisense for the Magikcraft.io API
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.
@jwulf
jwulf / README.md
Last active June 24, 2017 23:46
Magikcraft API: myapi files, by jwulf.

README for myapi

@jwulf
jwulf / README.md
Created June 20, 2017 15:14
Magikcraft API: myapi files, by jwulf.

README for myapi

@jwulf
jwulf / Insulin.js
Last active June 28, 2017 03:24
Magikcraft API: mct1 files, by jwulf.
/**
* 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;