Skip to content

Instantly share code, notes, and snippets.

View vjeux's full-sized avatar

Christopher Chedeau vjeux

View GitHub Profile
http://github.com/Agent-H/tunesquared
http://github.com/DanialK/ReactJS-Realtime-Chat
http://github.com/DanialK/danialk.github.com
http://github.com/ENCODE-DCC/encoded
http://github.com/Khan/khan-api
http://github.com/Khan/perseus
http://github.com/LukasRychtecky/este-library
http://github.com/Pirob/react
http://github.com/alexyoung/dailyjs
http://github.com/andreypopp/react-dom-events
var material = new THREE.ParticleCanvasMaterial( {
color: 0xffffff,
program: function ( context ) {
context.beginPath();
context.arc( 0, 0, 1, 0, PI2, true );
context.fill();
}
@vjeux
vjeux / gist:5848029
Last active December 18, 2015 21:29
// JSX
<ul>
<li class="active"><strong>A</strong> b</li>
</ul>
# Coffee
{ul, li, strong} = React.DOM
(ul {}, [
(li {class: 'active'}, [(strong {}, ['A']), ' b'])
])
vjeux@vjeux:~$ jsx test.js
built Module("test")
/** @jsx React.DOM */
React.renderComponent(
React.DOM.h1(null, "Hello, world!"),
document.getElementById('example')
);
@vjeux
vjeux / 1.js
Last active December 14, 2015 03:39 — forked from padolsey/1.js
x = '/x/'
/x/==x
@vjeux
vjeux / gist:2564679
Created May 1, 2012 03:16
Fullscreen Utilities
function canFullScreen() {
return document.body.webkitRequestFullScreen ||
document.body.requestFullScreen ||
document.body.mozRequestFullScreen;
}
function isFullScreen() {
return document.fullScreenElement ||
document.mozFullScreen ||
This file has been truncated, but you can view the full file.
function Te(){}
function vg(){}
function yg(){}
function zg(){}
function pg(){}
function ei(){}
function Ai(){}
function Ii(){}
function Qi(){}
function Zi(){}
@vjeux
vjeux / soulver.txt
Created February 16, 2012 18:29
Soulver.js Note
Today's Budget:
$8.50 for the bus * 2 trips
$3.30 for the coffee + $4.40 for the muffin and it wraps over, that's too bad
$22 for lunch + 10% sales tax
function handlerMaker(obj) {
return {
getOwnPropertyDescriptor: function(name) {
var desc = Object.getOwnPropertyDescriptor(obj, name);
// a trapping proxy's properties must always be configurable
if (desc !== undefined) { desc.configurable = true; }
return desc;
},
getPropertyDescriptor: function(name) {
var desc = Object.getPropertyDescriptor(obj, name); // not in ES5