Skip to content

Instantly share code, notes, and snippets.

View peatroot's full-sized avatar

Gareth Peat peatroot

  • Munich, Germany
View GitHub Profile
@peatroot
peatroot / index.html
Last active October 10, 2017 15:21
Parallel lines filter (RNA expression by organ)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="filter"></div>
<pre class="table"></pre>
@peatroot
peatroot / index.html
Created October 10, 2017 14:57
Parallel lines filter with table
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="filter"></div>
<pre class="table"></pre>
gistup
@peatroot
peatroot / index.html
Last active May 6, 2017 16:48
Voronoi Diagram
<!DOCTYPE html>
<meta charset="utf-8">
Hello, Voronoi!
Made a change!
@peatroot
peatroot / .gistup
Created May 6, 2017 16:22
Hello World
gistup
<!DOCTYPE html>
<meta charset="utf-8">
Hello, world!
@peatroot
peatroot / glfx.js
Last active September 13, 2019 13:23
Hue saturation
/*
* glfx.js
* http://evanw.github.com/glfx.js/
*
* Copyright 2011 Evan Wallace
* Released under the MIT license
*/
var fx=function(){function q(a,d,c){return Math.max(a,Math.min(d,c))}function w(b){return{_:b,loadContentsOf:function(b){a=this._.gl;this._.loadContentsOf(b)},destroy:function(){a=this._.gl;this._.destroy()}}}function A(a){return w(r.fromElement(a))}function B(b,d){var c=a.UNSIGNED_BYTE;if(a.getExtension("OES_texture_float")&&a.getExtension("OES_texture_float_linear")){var e=new r(100,100,a.RGBA,a.FLOAT);try{e.drawTo(function(){c=a.FLOAT})}catch(g){}e.destroy()}this._.texture&&this._.texture.destroy();
this._.spareTexture&&this._.spareTexture.destroy();this.width=b;this.height=d;this._.texture=new r(b,d,a.RGBA,c);this._.spareTexture=new r(b,d,a.RGBA,c);this._.extraTexture=this._.extraTexture||new r(0,0,a.RGBA,c);this._.flippedShader=this._.flippedShader||new h(null,"uniform sampler2D texture;varying vec2 texCoord;void main(){gl_FragColor=texture2D(texture,vec2(texCoord.x,1.0-texCoord.y));}
gistup
@peatroot
peatroot / .block
Last active December 17, 2022 01:51
Penrose Tiling
license:gpl-3.0