This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Checker = require('./lib/checker'); | |
var fs = require('fs'); | |
var str = fs.readFileSync('./build.min.js','UTF8'); | |
var checker = new Checker(); | |
checker.registerDefaultRules(); | |
checker.configure({ | |
requireCurlyBraces: ['while', 'do', 'try', 'catch','if', 'else'], | |
requireSpaceAfterKeywords: ['if', 'else', 'for', 'while', 'do', 'switch', 'return', 'try', 'catch'], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var renderer = new THREE.WebGLRenderer({canvas:canvas}); | |
var scene = new THREE.Scene(); | |
var camera = new THREE.PerspectiveCamera(); | |
scene.add(camera); | |
renderer.render(scene, camera); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* @author zz85 / http://twitter.com/blurspline / http://www.lab4games.net/zz85/blog | |
* | |
* Subdivision Geometry Modifier | |
* using Loop Subdivision Scheme | |
* | |
* References: | |
* http://graphics.stanford.edu/~mdfisher/subdivision.html | |
* http://www.holmes3d.net/graphics/subdivision/ | |
* http://www.cs.rutgers.edu/~decarlo/readings/subdiv-sg00c.pdf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @author WestLangley / http://github.com/WestLangley | |
*/ | |
THREE.EdgesGeometry = function ( geometry, thresholdAngle ) { | |
THREE.BufferGeometry.call( this ); | |
thresholdAngle = ( thresholdAngle !== undefined ) ? thresholdAngle : 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require("fs"); | |
function getMethods(obj) { | |
var allPages = {}; | |
for (var category in obj) { | |
var pages = obj[category]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Define TwoNumbers { | |
Number a; | |
Number b; | |
} | |
Number a; | |
Number b; |
OlderNewer