nodejs with express server, leapmotion for movement control, and threejs for 3d render

This commit is contained in:
idoctnef
2016-05-30 18:14:08 +02:00
parent e2aeac1bae
commit 52b63ee33a
893 changed files with 127726 additions and 0 deletions

1
node_modules/bytes/.npmignore generated vendored Normal file
View File

@@ -0,0 +1 @@
test

10
node_modules/bytes/History.md generated vendored Normal file
View File

@@ -0,0 +1,10 @@
0.2.0 / 2012-10-28
==================
* bytes(200).should.eql('200b')
0.1.0 / 2012-07-04
==================
* add bytes to string conversion [yields]

7
node_modules/bytes/Makefile generated vendored Normal file
View File

@@ -0,0 +1,7 @@
test:
@./node_modules/.bin/mocha \
--reporter spec \
--require should
.PHONY: test

51
node_modules/bytes/Readme.md generated vendored Normal file
View File

@@ -0,0 +1,51 @@
# node-bytes
Byte string parser / formatter.
## Example:
```js
bytes('1kb')
// => 1024
bytes('2mb')
// => 2097152
bytes('1gb')
// => 1073741824
bytes(1073741824)
// => 1gb
```
## Installation
```
$ npm install bytes
$ component install visionmedia/bytes.js
```
## License
(The MIT License)
Copyright (c) 2012 TJ Holowaychuk <tj@vision-media.ca>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

7
node_modules/bytes/component.json generated vendored Normal file
View File

@@ -0,0 +1,7 @@
{
"name": "bytes",
"description": "byte size string parser / serializer",
"keywords": ["bytes", "utility"],
"version": "0.1.0",
"scripts": ["index.js"]
}

39
node_modules/bytes/index.js generated vendored Normal file
View File

@@ -0,0 +1,39 @@
/**
* Parse byte `size` string.
*
* @param {String} size
* @return {Number}
* @api public
*/
module.exports = function(size) {
if ('number' == typeof size) return convert(size);
var parts = size.match(/^(\d+(?:\.\d+)?) *(kb|mb|gb)$/)
, n = parseFloat(parts[1])
, type = parts[2];
var map = {
kb: 1 << 10
, mb: 1 << 20
, gb: 1 << 30
};
return map[type] * n;
};
/**
* convert bytes into string.
*
* @param {Number} b - bytes to convert
* @return {String}
* @api public
*/
function convert (b) {
var gb = 1 << 30, mb = 1 << 20, kb = 1 << 10;
if (b >= gb) return (Math.round(b / gb * 100) / 100) + 'gb';
if (b >= mb) return (Math.round(b / mb * 100) / 100) + 'mb';
if (b >= kb) return (Math.round(b / kb * 100) / 100) + 'kb';
return b + 'b';
}

62
node_modules/bytes/package.json generated vendored Normal file
View File

@@ -0,0 +1,62 @@
{
"_args": [
[
"bytes@0.2.0",
"C:\\Users\\esanvin\\Desktop\\multi\\NodeServer\\node_modules\\connect"
]
],
"_from": "bytes@0.2.0",
"_id": "bytes@0.2.0",
"_inCache": true,
"_installable": true,
"_location": "/bytes",
"_npmUser": {
"email": "tj@vision-media.ca",
"name": "tjholowaychuk"
},
"_npmVersion": "1.1.64",
"_phantomChildren": {},
"_requested": {
"name": "bytes",
"raw": "bytes@0.2.0",
"rawSpec": "0.2.0",
"scope": null,
"spec": "0.2.0",
"type": "version"
},
"_requiredBy": [
"/connect"
],
"_resolved": "https://registry.npmjs.org/bytes/-/bytes-0.2.0.tgz",
"_shasum": "aad33ec14e3dc2ca74e8e7d451f9ba053ad4f7a0",
"_shrinkwrap": null,
"_spec": "bytes@0.2.0",
"_where": "C:\\Users\\esanvin\\Desktop\\multi\\NodeServer\\node_modules\\connect",
"author": {
"email": "tj@vision-media.ca",
"name": "TJ Holowaychuk",
"url": "http://tjholowaychuk.com"
},
"dependencies": {},
"description": "byte size string parser / serializer",
"devDependencies": {
"mocha": "*",
"should": "*"
},
"directories": {},
"dist": {
"shasum": "aad33ec14e3dc2ca74e8e7d451f9ba053ad4f7a0",
"tarball": "http://registry.npmjs.org/bytes/-/bytes-0.2.0.tgz"
},
"main": "index.js",
"maintainers": [
{
"email": "tj@vision-media.ca",
"name": "tjholowaychuk"
}
],
"name": "bytes",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"version": "0.2.0"
}