Skip to content

Instantly share code, notes, and snippets.

View caioiglesias's full-sized avatar
🦁
Focusing

Caio Iglesias caioiglesias

🦁
Focusing
View GitHub Profile
@caioiglesias
caioiglesias / gist:5dd2680e13f4e9044e58
Last active August 29, 2015 14:04
Pipeline Simple
class GrandGrandSon(base_handler.PipelineBase):
def run(self):
return 'big family'
class GrandSon(base_handler.PipelineBase):
def run(self):
yield GrandGrandSon()
class EnterTheCar(base_handler.PipelineBase):
def run(self, kid1, kid2):
return "%s %s" % (kid1, kid2)
class Child(base_handler.PipelineBase):
def run(self):
return 'Are we there yet?'
@caioiglesias
caioiglesias / tizen-famous.js
Last active August 29, 2015 14:10
Tizen famo.us fix
window.requestAnimationFrame = window.requestAnimationFrame||
window.webkitRequestAnimationFrame;

Keybase proof

I hereby claim:

  • I am caioiglesias on github.
  • I am caioiglesias (https://keybase.io/caioiglesias) on keybase.
  • I have a public key whose fingerprint is FAC9 0071 8F7C F200 6AA1 A3D4 3751 BA43 BE2E 7F15

To claim this, I am signing this object:

<!DOCTYPE html>
<meta charset="utf-8">
<canvas width="960" height="500"></canvas>
<script>
/* https://github.com/d3/d3-voronoi Copyright 2015 Mike Bostock */
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.voronoi={})}(this,function(e){"use strict";function t(e){return function(){return e}}function n(e,t,n){return(e.x-n.x)*(t.y-e.y)-(e.x-t.x)*(n.y-e.y)}function i(e,t){return t.angle-e.angle}function r(e,t){this.l=e,this.r=t,this.a=this.b=null}function s(e,t,n){var i=new r(e,null);return i.a=t,i.b=n,D.push(i),i}function u(e,t,n){this.edge=e,this.site=t,this.angle=n}function f(e,t,n){var i=e.a,r=e.b;return new u(e,t,n?Math.atan2(n.y-t.y,n.x-t.x):e.l===t?Math.atan2(r.x-i.x,i.y-r.y):Math.atan2(i.x-r.x,r.y-i.y))}function a(e,t,n,i){for(var r,u,a,l,o,c,h,y,x,v,g=B.length;g--;)if(o=B[g],o&&o.prepare())for(h=o.edges,y=h.length,c=0;y>c;)v=h[c].end(),a=v.x,l=v.y,x=h[++c%y].start(),r=x.x,u=x.y,(Math.abs(a-r)>I||Math.abs(l-u)>
@caioiglesias
caioiglesias / _.md
Created January 27, 2016 20:18
anim test
@caioiglesias
caioiglesias / README.md
Created June 10, 2016 06:25
fresh block
@caioiglesias
caioiglesias / README.md
Created June 10, 2016 07:06
fresh block
Verifying that "caioiglesias.id" is my Blockstack ID. https://onename.com/caioiglesias
Verifying my Blockstack ID is secured with the address 1NSbuGKxQhP1PYKMt2oNGFKgr7qgqQHTt1 https://explorer.blockstack.org/address/1NSbuGKxQhP1PYKMt2oNGFKgr7qgqQHTt1