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
@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;
var magik = magikcraft.io;
function es6() {
const names = ["Josh", "the", "Legend"];
names.map((name) => magik.dixit(`Yo ${name}`));
}
const magik = magikcraft.io;
function spell(){
We need to put the babel transpiler in a webworker.
a
}
}
const magik = magikcraft.io;
function spell(){
We need to put the babel transpiler in a webworker.
a
}
}