Skip to content

Instantly share code, notes, and snippets.

View nidev's full-sized avatar

Changbeom Yun (Nidev) nidev

View GitHub Profile
@nidev
nidev / s3recursiveupload.js
Created February 25, 2018 07:26
Recursively upload all content from given path(s)
"use strict";
/*
* AWS S3 Bucket automatic deployment script
* 1. Run 'npm install' first to install aws-sdk
* 2. Run 'hexo generate'
* 3. Run this script (Please configure AWS credentials first)
*
*/
@nidev
nidev / .vimrc
Created March 13, 2018 13:02
My recent vimrc (Vundle, omnisharp-roslyn, language-server, supertab, syntastic, vim-erlang, powerline)
set nocompatible " be iMproved, required
filetype off " required
set background=dark
set ts=8
set sts=4
set sw=4
set nu
set smartindent
@nidev
nidev / index.js
Created August 29, 2018 05:37
Mimicking behavior of document.cookie created by nidev - https://repl.it/@nidev/Mimicking-behavior-of-documentcookie
/*
document.cookie 의 구현을 흉내내보자
var wordJar = new WordJar();
wordJar.cookie = "apple";
// console.log(wordJar.cookie) -> "apple"
wordJar.cookie = "banana";
// console.log(wordJar.cookie) -> "apple, banana"
wordJar.cookie = "kiwi";
// console.log(wordJar.cookie) -> "apple, banana, kiwi"
@nidev
nidev / curse_of_taebo.py
Created January 9, 2019 14:25
태보는 지금 전세계적으로 선풍적인 인기를 끌고 있는데요
# -*- coding: utf-8 -*-
class Sport:
def runtime_minutes(self):
raise NotImplementedError('Please implement this method')
class Taekwondo(Sport):
def __add__(self, other):
if instanceof(other, Boxing):
return Taebo()