This file contains hidden or 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
root@dev:/opt/opew/projects/vock/app# vock set key-file rsa.key | |
/// Vock - VoIP on node.js /// | |
root@dev:/opt/opew/projects/vock/app# vock create | |
/// Vock - VoIP on node.js /// | |
Enter your private key password: | |
Room created! | |
Run this on other side: | |
vock connect 74d4ce2f7d355d9e98077cac8b0c434c8d7c6e42 | |
Waiting for opponent... | |
.node.bin: ../src/audio/platform/linux.cc:99: void vock::audio::PlatformUnit::StartLoop(): Assertion `p a_state_ == 1' failed. |
This file contains hidden or 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
/** | |
* Simple UTF8 String bytes counter | |
* @author Tomas Aparicio | |
* @license MIT | |
* @param {String} str String to count | |
* @return {Number} Bytes | |
* @method bytesCounter | |
*/ | |
function bytesCounter(str){ | |
var code, i, bytes = 0; |
This file contains hidden or 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
<html> | |
<head> | |
<title>setInterval/clearInterval Wrapper</title> | |
<script type="text/javascript"> | |
/** | |
* Simple experimental wrapper for setInterval/clearInterval native JavaScript Functions | |
* @version 0.1 Alpha | |
* @author Tomas Aparicio | |
* @license WTFPL | |
*/ |
This file contains hidden or 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
/** | |
* A simple RequireJS addon to automatically load minified script sources | |
* | |
* @method applyMinification | |
* @param {Object} context RequireJS current context Object. Required | |
* @param {Array/String} deps Dependencies to process. Required | |
* @return {Array/String} Minified dependencies | |
* @private | |
* | |
* @cfg {Boolean} minification True to enable it |
This file contains hidden or 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
/** | |
* Simple function to create secure inmutable (recursive deep copy) JavaScript Objects | |
* @license WTFPL | |
* @param {Object/Array} obj Target Object. Required | |
* @param {Number} depth Depth level. Defaults to 1 | |
* @return {Object/Array) Inmutable new Object | |
* @method deepClone | |
*/ | |
function deepClone(obj, depth) { | |
var clone, key, |
This file contains hidden or 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
/** | |
* Simple underscore function to create secure inmutable (recursive deep copy) JavaScript Objects | |
* @param {Object/Array} obj Target Object. Required | |
* @param {Number} depth Depth level. Defaults to 1 | |
* @return {Object/Array) Super inmutable new Object | |
* @method deepClone | |
*/ | |
_.deepClone = function deepClone(obj, depth) { | |
var clone, key; | |
depth = depth || 1; |
This file contains hidden or 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
/** | |
* Simple Node.js recursivily copy/rename files with specific pattern | |
* @license WTFPL | |
* @usage $ node copyFiles.js | |
*/ | |
var fs = require('fs'), | |
config; | |
// config options | |
config = { |
This file contains hidden or 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
// for ES5 compliant engines (tested in Chrome, FF and IE9+) | |
// Under WTFPL license ;) | |
function getObjectInheritance(obj) { | |
var hierarchy = []; | |
if (['boolean', 'number', 'string', 'undefined'].indexOf(typeof obj) !== -1 || obj === null) { // support for primitives types | |
obj = Object(obj); | |
} else if (typeof obj === 'function') { | |
hierarchy.push(obj.name || (obj.toString().match(/function (\w*)/) || obj.toString().match(/\[object (\w*)\]/))[1] || 'Anonymous Function'); | |
obj = obj.prototype; | |
} else if (obj.toString() !== '[object Object]' && obj.prototype) { // fix Objects instances and IE |
This file contains hidden or 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
// for ES5 compliant engines (tested in Chrome, FF and IE9+) | |
// Under WTFPL license ;) | |
function getObjectInheritedMembers(obj) { | |
var members = {}; | |
if (['boolean', 'number', 'string', 'undefined'].indexOf(typeof obj) !== -1 || obj === null) { // support for primitives types | |
obj = Object(obj); | |
} else if (typeof obj === 'function') { | |
members[obj.name || (obj.toString().match(/function (\w*)/) || obj.toString().match(/\[object (\w*)\]/))[1] || 'Anonymous Function'] = Object.getOwnPropertyNames(obj); | |
obj = obj.prototype; | |
} else if (obj.toString() !== '[object Object]' && obj.prototype) { // fix Objects instances and IE |
This file contains hidden or 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
(function(){function require(p){var path=require.resolve(p),mod=require.modules[path];if(!mod)throw new Error('failed to require "'+p+'"');return mod.exports||(mod.exports={},mod.call(mod.exports,mod,mod.exports,require.relative(path))),mod.exports}require.modules={},require.resolve=function(path){var orig=path,reg=path+".js",index=path+"/index.js";return require.modules[reg]&®||require.modules[index]&&index||orig},require.register=function(path,fn){require.modules[path]=fn},require.relative=function(parent){return function(p){if("."!=p.charAt(0))return require(p);var path=parent.split("/"),segs=p.split("/");path.pop();for(var i=0;i<segs.length;i++){var seg=segs[i];".."==seg?path.pop():"."!=seg&&path.push(seg)}return require(path.join("/"))}},require.register("compiler.js",function(module,exports,require){function isConstant(val){if(/^ *("([^"\\]*(\\.[^"\\]*)*)"|'([^'\\]*(\\.[^'\\]*)*)'|true|false|null|undefined) *$/i.test(val))return!0;if(!isNaN(Number(val)))return!0;var matches;return(matches=/^ *\[(.*)\ |
OlderNewer