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 express = require('express'); | |
var oauth = require('oauth'); | |
var app = express.createServer(); | |
var key = "[api-key]"; | |
var secret = "[api-secret]"; | |
var request = new oauth.OAuth(null, null, key, secret, '1.0', null, 'HMAC-SHA1'); | |
app.get('/api-request', function(req, res){ | |
request.get( | |
"http://127.0.0.1:8000/api/1.0/data.json", |
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 qiao / https://github.com/qiao | |
* @author mrdoob / http://mrdoob.com | |
* @author alteredq / http://alteredqualia.com/ | |
* @author WestLangley / http://github.com/WestLangley | |
* | |
* customized for momentum (zoom and phi/delta) by paulkaplan | |
*/ | |
THREE.OrbitControls = function ( object, domElement ) { |