Skip to content

Instantly share code, notes, and snippets.

View cannalee90's full-sized avatar
🎯
Focusing

이강호 cannalee90

🎯
Focusing
View GitHub Profile
@cannalee90
cannalee90 / 3.js
Created January 29, 2020 11:08 — forked from hikaMaeng/3.js
const type = (target, type)=>{
if(typeof type == "string"){
if(typeof target != type) throw `invaild type ${target} : ${type}`;
}else if(!(target instanceof type)) throw `invaild type ${target} : ${type}`;
return target;
};
const ViewModelListener = class{
viewmodelUpdated(updated){throw "override";}
};
const ViewModelValue = class{

Keybase proof

I hereby claim:

  • I am cannalee90 on github.
  • I am kangho (https://keybase.io/kangho) on keybase.
  • I have a public key ASAJAATuMBX8Wt7yiqAc7oF98OIstG7mMuUsLdPWnCio5wo

To claim this, I am signing this object:

// $ node keyreplace.js MISSION:320010
const fs = require('fs');
const path = require('path');
const args = process.argv.slice(2);
const targetKey = args[0];
if (!targetKey) {
console.log('Please ADD Key for Data');
FROM ubuntu:18.04
MAINTAINER cannalee90@gmail.com
RUN apt-get -y update
RUN apt-get -y install g++
RUN apt-get -y install build-essential
RUN apt-get -y install vim
RUN useradd -ms /bin/bash ubuntu
RUN apt-get -y install gdb
WORKDIR /home/ubuntu
4794 3611
5939 6818
1264 551
351 342
7556 894
4606 6786
3684 1366
5341 8007
8416 211
7434 4479
class CircleLinked{
ListNode head;
CircleLinked() {
head = new ListNode();
}
void add(String data) {
ListNode newNode = new ListNode(data);
ListNode curNode = head;
if(head.get()== null) {
@cannalee90
cannalee90 / tiny Promise.js
Created April 15, 2018 06:59 — forked from unscriptable/tiny Promise.js
A minimalist implementation of a javascript promise
// (c) copyright unscriptable.com / John Hann
// License MIT
// For more robust promises, see https://github.com/briancavalier/when.js.
function Promise () {
this._thens = [];
}
Promise.prototype = {
export const isEmptyObj = (obj) => {
if (!Object.getOwnPropertyNames(obj).length) {
return true;
}
return false;
}
const appReducer = combineReducers({
/* your app’s top-level reducers */
})
const rootReducer = (state, action) => {
if (action.type === 'USER_LOGOUT') {
state = undefined
}
return appReducer(state, action)
@cannalee90
cannalee90 / reset_reducer.js
Created April 11, 2018 11:27
how to reset
const appReducer = combineReducers({
/* your app’s top-level reducers */
})
const rootReducer = (state, action) => {
if (action.type === 'USER_LOGOUT') {
state = undefined
}
return appReducer(state, action)