I hereby claim:
- I am mnaamani on github.
- I am mokhtarnaamani (https://keybase.io/mokhtarnaamani) on keybase.
- I have a public key ASAP6no7VBWFm_0Fgr4DhurMYlTDkq61HlsKSy2dTDuw_Ao
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
/* test.pro | |
QT += core | |
QT -= gui | |
CONFIG += c++11 | |
TARGET = test | |
CONFIG += console | |
CONFIG -= app_bundle | |
TEMPLATE = app | |
SOURCES += main.cpp | |
*/ |
//pseudo-classical | |
function Car(options) { | |
//if new keyword was used to invoke the constructor | |
//`this` would be an instance of Car. | |
if (!(this instanceof Car)) { | |
//ensure constructor is called with new keyword | |
return new Car(options) | |
} | |
this.instanceMethod = function(){}; |
module.exports = { | |
makeArrayBuffer:function(){ | |
var arr = new ArrayBuffer(2); | |
arr[0]=1;arr[1]=2; | |
return arr; | |
}, | |
makeUint8Array:function(n){ | |
var arr = new ArrayBuffer(2); | |
arr[0]=3;arr[1]=4; | |
return new Uint8Array(arr); |