Skip to content

Instantly share code, notes, and snippets.

☕️
3 cups required

Gaëtan Renaudeau gre

☕️
3 cups required
Block or report user

Report or block gre

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View 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:
{
View client_js_index.js
if (process.env.NODE_ENV !== "production")
document.write('<script src="//localhost:9241"></script>');
@gre
gre / reactjs_componentapi_cheatsheet.md
Last active Aug 29, 2015 — forked from spoike/reactjs_componentapi_cheatsheet.md
fork & simplified version of spoike's cheatsheet & without JSX syntax
View reactjs_componentapi_cheatsheet.md

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 Aug 29, 2015 — forked from glslioadmin/TEMPLATE.glsl
/!\ **DEV ONLY** - GLSL.io Transition (v1) used for the development
View recent.glsl
// 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;
View 2014-05-19-What_is_GLSL.io.md

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 Jun 18, 2014 — forked from glslioadmin/TEMPLATE.glsl
/!\ **DEV ONLY** - GLSL.io Transition (v1) used for the development
View foo.glsl
// 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 Aug 29, 2015 — forked from glslioadmin/TEMPLATE.glsl
GLSL.io Transition (v1)
View simple luma.glsl
// 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 Aug 29, 2015 — forked from glslioadmin/TEMPLATE.glsl
/!\ **DEV ONLY** - GLSL.io Transition (v1) used for the development
View test.glsl
// 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 Jun 12, 2014 — forked from glslioadmin/TEMPLATE.glsl
GLSL.io Transition (v1)
View cube.glsl
#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 — forked from glslioadmin/TEMPLATE.glsl
GLSL.io Transition (v1)
View squareswipe.glsl
#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;
You can’t perform that action at this time.