Skip to content

Instantly share code, notes, and snippets.

View gre's full-sized avatar
3 cups required

@greweb gre

3 cups required
View GitHub Profile
@gre
gre / getStream.js
Last active December 14, 2015 14:53 — forked from mrspeaker/getStream.js
/*
getStream(callback) : Get a stream of items.
callback will be called multiple time asynchronously, as if you were continuously getting events from a server.
callback will be called with an "item" in parameter.
Each "item" is an object with following format:
{
if (process.env.NODE_ENV !== "production")
document.write('<script src="//localhost:9241"></script>');
@gre
gre / reactjs_componentapi_cheatsheet.md
Last active August 29, 2015 14:19 — forked from spoike/reactjs_componentapi_cheatsheet.md
fork & simplified version of spoike's cheatsheet & without JSX syntax

ReactJS Component Cheatsheet

To create a ReactComponent:

ReactComponent React.createClass(object proto)

Basic example:

var TitleComponent = React.createClass({

// REQUIRED

@gre
gre / recent.glsl
Last active August 29, 2015 14:04 — forked from glslioadmin/TEMPLATE.glsl
/!\ **DEV ONLY** - GLSL.io Transition (v1) used for the development
// TEST
// This template should ONLY be used for DEVELOPMENT
#ifdef GL_ES
precision highp float;
#endif
uniform sampler2D from, to;
uniform float progress;
uniform vec2 resolution;

The GLSL.io initiative aims to build an Open Collection of GLSL Transitions. It aims to be highly community-driven and free-software.

<iframe width="853" height="480" src="//www.youtube.com/embed/BYdCNTJaGss" frameborder="0" allowfullscreen="allowfullscreen"></iframe>

No data are kept on our servers, data is all stored in Github Gists.

@gre
gre / foo.glsl
Created June 18, 2014 21:15 — forked from glslioadmin/TEMPLATE.glsl
/!\ **DEV ONLY** - GLSL.io Transition (v1) used for the development
// N.B. this file is used only for the testing version of GLSL.io
#ifdef GL_ES
precision highp float;
#endif
uniform sampler2D from, to;
uniform float progress;
uniform vec2 resolution;
uniform float persp;
@gre
gre / simple luma.glsl
Last active August 29, 2015 14:02 — forked from glslioadmin/TEMPLATE.glsl
GLSL.io Transition (v1)
// This template should ONLY be used for DEVELOPMENT
#ifdef GL_ES
precision highp float;
#endif
uniform sampler2D from, to;
uniform float progress;
uniform vec2 resolution;
uniform sampler2D luma;
@gre
gre / test.glsl
Last active August 29, 2015 14:02 — forked from glslioadmin/TEMPLATE.glsl
/!\ **DEV ONLY** - GLSL.io Transition (v1) used for the development
// This template should ONLY be used for DEVELOPMENT
#ifdef GL_ES
precision highp float;
#endif
uniform sampler2D from, to;
uniform float progress;
uniform vec2 resolution;
uniform sampler2D s;
@gre
gre / cube.glsl
Created June 12, 2014 17:13 — forked from glslioadmin/TEMPLATE.glsl
GLSL.io Transition (v1)
#ifdef GL_ES
precision highp float;
#endif
uniform sampler2D from, to;
uniform float progress;
uniform vec2 resolution;
uniform float persp;
uniform float unzoom;
uniform float reflection;
@gre
gre / squareswipe.glsl
Created May 23, 2014 12:09 — forked from glslioadmin/TEMPLATE.glsl
GLSL.io Transition (v1)
#ifdef GL_ES
precision highp float;
#endif
uniform sampler2D from, to;
uniform float progress;
uniform vec2 resolution;
uniform ivec2 squares;
uniform vec2 direction;
uniform float smoothness;