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 / BrisJS.js
Last active October 9, 2017 10:56
Magikcraft Spells, by jwulf.
// LoL!
const magik = magikcraft.io;
const strings = require("testing");
function BrisJS() {
strings.forEach(s => magik.dixit(s));
}
@jwulf
jwulf / file1.txt
Last active August 6, 2017 16:14
the description for this gist
updated file contentsssss
@jwulf
jwulf / file1.txt
Created August 6, 2017 15:36
the description for this gist
updated file contents
@jwulf
jwulf / r.js
Last active August 5, 2017 09:39
The Legendary Exclusion Field™ by Ash Kyd and Josh Wulf - from Camp JS viii
/**
This spell throws all entities around you, like a repulsive shield of protection.
**/
const magik = magikcraft.io;
function r() {
const times = 5 * 1000 / 300; // 5 seconds, every 300ms
let n = times;
magik.setTimeout(shield, 300);
@jwulf
jwulf / sb.js
Created August 5, 2017 00:50
Snowballer spell
const magik = magikcraft.io;
function sb(repeats = 200, delay = 300) {
magik.dixit('Snowball!');
const sender = magik.getSender();
const snowball = magik.type("entity.Snowball").class;
const hurl = (thing) => () => sender.launchProjectile(thing)
const volley = () => magik.doNTimes(hurl(snowball), repeats, delay, null);
@jwulf
jwulf / cl.js
Created August 5, 2017 00:37
Chain Lightning 2.0
const magik = magikcraft.io;
function cl() {
const Material = magik.type('Material');
const world = magik.getSender().getWorld();
function p5() {
const x0 = looking.getX();
const y0 = looking.getY();
const z0 = looking.getZ();

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.