A non-exhaustive list of WebGL and WebGPU frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are wip/outdated/not maintained anymore.
Name | Stars | Last Commit | Description |
---|---|---|---|
three.js | ![GitHub |
A non-exhaustive list of WebGL and WebGPU frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are wip/outdated/not maintained anymore.
Name | Stars | Last Commit | Description |
---|---|---|---|
three.js | ![GitHub |
Example and reasonings when using Reflux stores and actions for a Master/Detail app with React – with an eye to server-side rendering. Some concepts apply to reflux#166 and reflux#180.
This hypotetical app would use a router to display a list of items (e.g. at the url example.org/items
, the master view) and a single item (e.g. example.org/items/:id
, the detail view).
'use strict'; | |
var React = require('react'), | |
classSet = require('react/lib/cx'), | |
_ = require('underscore'); | |
var ClassNameMixin = { | |
propTypes: { | |
className: React.PropTypes.string, | |
context: React.PropTypes.string |
When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:
const Article = require('../../../../app/models/article');
Those suck for maintenance and they're ugly.
// function counter(initValue, seed) {} | |
// testcase | |
var incrementByOneFromOne = counter(1, 1); | |
incrementByOneFromOne.should.include.keys('value'); | |
incrementByOneFromOne.should.include.keys('increment'); | |
incrementByOneFromOne.should.include.keys('decrement'); | |
// testcase | |
var incrementByOneFromOne = counter(1, 1); |
This is a small collection of scripts showing how to use require.js. It's only one of several ways of setting up a require.js project, but it's enough to get started.
At its core, require.js is about three things:
The following files show how these are achieved.
var http = require('http'), | |
phantom=require('node-phantom'), // https://github.com/alexscheelmeyer/node-phantom | |
urlparse = require('url'); | |
function proxy_url(url, res) { | |
phantom.create(function(err,ph) { | |
return ph.createPage(function(err,page) { | |