Skip to content

Instantly share code, notes, and snippets.

View co3moz's full-sized avatar
🍗
increasing the entropy

Doğan Derya co3moz

🍗
increasing the entropy
View GitHub Profile
@co3moz
co3moz / check.js
Last active March 24, 2016 14:48
Small size object type checker for js
var check = function(o) {
return (o == null) ? null : o.constructor == Function ? o.name == "" ? "Callback" : "Class_" + o.name : o.constructor.name;
};
// how can be different check and typeof
// checkfor check result typeof result
check(null); //null "object"
check(undefined); //null "undefined"
check(1); //"Number" "number"
check([]); //"Array" "object"
@co3moz
co3moz / chio.cpp
Last active August 29, 2015 14:10
Making a determinant with Chio Way..
#include <iostream>
#include <math.h>
using namespace std;
class Matris {
private:
double* objects;
int k;
int iterator = 0;