Skip to content

Instantly share code, notes, and snippets.

Ronan Sandford wighawag

Block or report user

Report or block wighawag

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
wighawag / ERC165Query.sol
Created May 30, 2019
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at
View ERC165Query.sol
pragma solidity ^0.4.20;
contract ERC165Query {
bytes4 constant InvalidID = 0xffffffff;
bytes4 constant ERC165ID = 0x01ffc9a7;
function doesContractImplementInterface(address _contract, bytes4 _interfaceId) external view returns (bool) {
uint256 success;
uint256 result;
View gist:0e8ebe43229f80a1d4343b10c83a5be8
0x00 0 STOP
0x01 3 ADD
0x02 5 MUL
0x03 3 SUB
0x04 5 DIV
0x05 5 SDIV
0x06 5 MOD
0x07 5 SMOD
0x08 8 ADDMOD
0x09 8 MULMOD
View account1

Keybase proof

I hereby claim:

  • I am wighawag on github.
  • I am wighawag ( on keybase.
  • I have a public key whose fingerprint is 79DF EDC5 56D2 B807 AD47 0D82 5F10 21BE 15ED 8F8E

To claim this, I am signing this object:

wighawag / Main.hx
Last active Mar 21, 2017
Kha White Noise
View Main.hx
import kha.System;
import kha.Scheduler;
class Main{
public static function main(){
title: "dsp",
width: 800,
height: 600,
}, initialized);
wighawag / TestAll.hx
Created Feb 11, 2016
Haxe telemetry in a unit test
View TestAll.hx
public function testAllocation(){
var instanceUnderTest = new Testing();
//start telemetry
var threadNum = untyped __global__.__hxcpp_hxt_start_telemetry(true, true);
View easings.js
A full list of simple easing equations inspired by GIST from greweb -
Equations source -
linear: function(t) {
return t
inQuad: function(t) {
wighawag / Main.hx
Created Jul 24, 2012
Generics Type parameter used as Type Constraint for method Generic Type parameter
View Main.hx
package ;
class Main
static public function main()
var entity = new Entity();
var component0 = entity.get(EntityComponent); // shoudl pass
var component1 = entity.get(TestEntityComponent); // should pass
//var component2 = entity.get(TestModelComponent); // should fail
wighawag / FlambeTest.hx
Created Jun 25, 2012
A test of flambe renderring engine
View FlambeTest.hx
package ;
import flambe.platform.flash.Stage3DRenderer;
import flash.Lib;
import flash.display.Sprite;
import flash.display.Shape;
import flash.display.BitmapData;
You can’t perform that action at this time.