Skip to content

Instantly share code, notes, and snippets.

View CreeJee's full-sized avatar
💤
졸류

CreeJee

💤
졸류
View GitHub Profile
@CreeJee
CreeJee / FixedType.js
Last active June 11, 2019 10:22
FixedType.js
const FixedType = (()=>{
"use-strict";
/********************
* basic variables *
*********************/
const parentSymbol = Symbol("@@Parent");
const TypeListSymbol = Symbol("@@TypeList");
const TypeTable = class TypeTable extends Map{
constructor(...args){
super(...args);
0x0e81007942d6C65F71aF74fEC9Ad9F9bda2369C9
@CreeJee
CreeJee / WeakEnum
Last active April 24, 2018 04:07
weakMap + Enum (maybe it will not useful)
const WeakEnumSymbol = Symbol("__Types");
class WeakEnum{
static symbol(){
return WeakEnumSymbol;
}
static __primitiveToObj__(obj) {
if (obj instanceof Object) {
return obj;
}
else if(obj === undefined || obj === null || typeof obj === "symbol"){
var a = (function(){
var Tree = function(obj){
if (obj instanceof Object) {
//public variable
this.root = obj.root || this;
this.name = obj.name || "";
this.childs = obj.childs || [];
this.left = obj.left || null;
this.right = obj.right || null;
this.parent = obj.parent || null;
<?php
error_reporting(E_ALL);
function isListArr($array){
if(is_array($array)){
return array_values($array) === $array;
}
else{
return false;
}
};
@CreeJee
CreeJee / question
Last active January 22, 2017 12:35
when I'm not using eval than anything have solution?
var fn = {};
fn.listPlugins = function(cb){
if (!Array.isArray(this.plugins)) {
$.getJSON('/plugins/list.json',(json, textStatus) => {
if (textStatus == "success") {
this.plugins = json;
if (typeof cb == "function") {
cb(json);
}
else{