Skip to content

Instantly share code, notes, and snippets.

View Honga1's full-sized avatar
🐈
Gitting my head around things.

Jae Honga1

🐈
Gitting my head around things.
  • Amsterdam, The Netherlands
View GitHub Profile
@kirkonrails
kirkonrails / log all jQuery events
Created April 9, 2014 13:20
Log all jQuery events to console via redfine jquery trigger
var oldJQueryEventTrigger = jQuery.event.trigger;
jQuery.event.trigger = function( event, data, elem, onlyHandlers ) {
console.log( event, data, elem, onlyHandlers );
oldJQueryEventTrigger( event, data, elem, onlyHandlers );
}
@mattdw
mattdw / unlitspriteshader.js
Last active August 5, 2020 20:14
a sprite shader for THREE.js which doesn't need to clone textures, by storing its own repeat/offset
import THREE from "lib/three";
const params = `
varying vec2 vUv;
uniform vec2 offset;
uniform vec2 repeat;
uniform sampler2D texture;
uniform vec3 color;
`