This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"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) | |
* | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible " be iMproved, required | |
filetype off " required | |
set background=dark | |
set ts=8 | |
set sts=4 | |
set sw=4 | |
set nu | |
set smartindent |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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() |
OlderNewer