I hereby claim:
- I am nidev on github.
- I am nidev (https://keybase.io/nidev) on keybase.
- I have a public key whose fingerprint is ED83 C1B8 6873 B6C3 8D29 D74D 7F61 49DC 95D8 798D
To claim this, I am signing this object:
# -*- 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() |
/* | |
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" |
set nocompatible " be iMproved, required | |
filetype off " required | |
set background=dark | |
set ts=8 | |
set sts=4 | |
set sw=4 | |
set nu | |
set smartindent |
"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) | |
* | |
*/ |
"All user-dependent configurations are omitted intentionally. | |
"This gist only includes configurations for omnisharp. | |
"Original vimrc is available on: | |
"https://github.com/OmniSharp/omnisharp-vim#example-vimrc | |
"========================================================= | |
" **Preparation steps | |
"1. Install pathogen.vim or preferred plugin manager | |
"(Will explain procedures with assumption that a user is using pathogen.vim) | |
" **Main steps |
I hereby claim:
To claim this, I am signing this object:
/** | |
* Truncate a Java string so that its UTF-8 representation will not | |
* exceed the specified number of bytes. | |
* | |
* For discussion of why you might want to do this, see | |
* http://lpar.ath0.com/2011/06/07/unicode-alchemy-with-db2/ | |
*/ | |
public static String utf8truncate(String input, int length) { | |
StringBuffer result = new StringBuffer(length); | |
int resultlen = 0; |
use std::mem; | |
use std::ptr; | |
type Link<T> = *mut DoubleLinkNode<T>; | |
struct DoubleLinkNode<T> { | |
prev: Link<T>, | |
next: Link<T>, | |
value: T | |
} |
// encoding: utf-8 | |
import "dart:io"; | |
enum ExportDirection { | |
Integer, | |
Double | |
} | |
class HybridIndex { | |
final int integer; |
// This is also included in https://github.com/nidev/smallservlet | |
import "dart:io"; | |
class PlatformUtil { | |
static final _NEWLINE_CRLF = "\r\n"; | |
static final _NEWLINE_LF = "\n"; | |
static String get newLine { | |
if (Platform.isWindows) { |