Skip to content

Instantly share code, notes, and snippets.

@pa7
pa7 / gist:8821494
Created February 5, 2014 11:18
Kod.io Linz
(function(e){ return String.fromCharCode.apply(String, e.reverse()); })([9829, 32, 9829, 32, 9829, 32, 111, 115, 108, 97, 32, 33, 98, 101, 119, 32, 110, 114, 101, 100, 111, 109, 32, 101, 104, 116, 32, 116, 117, 111, 98, 97, 32, 115, 107, 108, 97, 116, 32, 101, 109, 111, 115, 101, 119, 97, 32, 101, 104, 116, 32, 108, 108, 97, 32, 102, 111, 32, 101, 115, 117, 97, 99, 101, 98, 32, 111, 105, 46, 100, 111, 107, 32, 111, 116, 32, 111, 103, 32, 111, 116, 32, 101, 118, 111, 108, 32, 100, 39, 73]);
@pa7
pa7 / globalcomptests.js
Created April 6, 2012 03:25
Playing around with globalCompositeOperation for an upcoming heatmap.js fix
var composites = [
'source-over','source-in','source-out','source-atop',
'destination-over','destination-in','destination-out','destination-atop',
'lighter','darker','copy','xor'
];
for(var i = 0; i < composites.length; i++){
(function(comp){
var canvas = document.createElement('canvas'),
ctx = canvas.getContext('2d');