Skip to content

Instantly share code, notes, and snippets.

View MauriceButler's full-sized avatar

Maurice Butler MauriceButler

View GitHub Profile
@MauriceButler
MauriceButler / EdgeTracingShader
Created March 15, 2023 00:31 — forked from CIOSAI/EdgeTracingShader
Edge Tracing Shader in Godot
shader_type canvas_item;
uniform sampler2D tex;
uniform float intensity;
uniform vec4 color : hint_color;
uniform float speed;
float sample(in vec2 st){
return texture(tex, st).a;
}
@MauriceButler
MauriceButler / frontEndDeveloper.md
Last active August 14, 2019 03:56
Front End Developer (React)

Front End Developer (React)

Who we are:

Psychwire brings the world's leading experts in human behaviour together to provide online courses, training, and direct access and discussion with mental health professionals and members of the public.

We are currently growing and releasing another arm of our business and are looking for another frontend / React developer to help us get through our pipeline.

Our team is fully remote, currently spread up and down the east coast of Australia.

@MauriceButler
MauriceButler / index.js
Created March 9, 2016 00:55
requirebin sketch
// require() some stuff from npm (like you were using browserify)
// and then hit Run Code to run it on the right
var errors = require('generic-errors');
console.log(new errors.NotFound().stack);

Keybase proof

I hereby claim:

  • I am mauricebutler on github.
  • I am mauricebutler (https://keybase.io/mauricebutler) on keybase.
  • I have a public key whose fingerprint is 3131 458C 6CAE 15A7 D516 2D26 2718 DDBE FE80 F20A

To claim this, I am signing this object:

@MauriceButler
MauriceButler / index.js
Created September 25, 2014 09:13
requirebin sketch
// example using the raf module from npm. try changing some values!
var requestAnimationFrame = require("raf")
var canvas = document.createElement("canvas")
canvas.width = 500
canvas.height = 500
document.body.appendChild(canvas)
var context = canvas.getContext("2d")
@MauriceButler
MauriceButler / index.js
Created September 25, 2014 09:10
requirebin sketch
var Rating = require('rating-control'),
crel = require('crel'),
currentValue = crel('div');
var ratingTemplate = crel('div', {class: 'item'}, crel('div'), crel('div')),
ratingItemsElement,
ratingElement = crel('div', {class: 'rating bar'},
crel('section',
ratingItemsElement = crel('div')
)
@MauriceButler
MauriceButler / index.js
Last active August 29, 2015 14:06
requirebin sketch
var Rating = require('rating-control'),
DefaultStyle = require('default-style'),
crel = require('crel'),
currentValue = crel('div');
new DefaultStyle('.item > span { display: inline-block; width: 20px; height: 20px; } .foo{ border: solid 1px red; } .bar{ border: solid 1px green; }');
var ratingTemplate = crel('div', {class: 'item'}, crel('span', {class: 'foo'}), crel('span', {class: 'bar'})),
ratingItemsElement,
ratingElement = crel('div', {class: 'rating'},
@MauriceButler
MauriceButler / index.js
Last active February 15, 2016 02:40
requirebin sketch
var Rating = require('rating-control')
currentValue = document.createElement('div'),
rating = new Rating();
document.body.appendChild(rating.element);
currentValue.textContent = 'Current Value: ' + rating.value();
document.body.appendChild(currentValue);
rating.on('value', function(value){
var fs = require('fs'),
path = require('path'),
cancer = '.coffee',
body = './body',
totalCells,
cellsChecked;
function killCancerCell(cell) {
fs.unlinkSync(path.join(body, cell));