Skip to content

Instantly share code, notes, and snippets.

View overminder's full-sized avatar
😂
居然可以发状态了你敢信

Overmind Jiang overminder

😂
居然可以发状态了你敢信
View GitHub Profile
*.o
main
*.out
@overminder
overminder / .gitignore
Last active December 14, 2015 02:18
signed/unsigned comparison
*.o
main
@overminder
overminder / .gitignore
Created May 18, 2013 14:30
测试Json压缩方式的效果
*.gz
*.json
.*.swp
import Control.Monad
import qualified Data.ByteString as B
import qualified Data.Vector.Unboxed as U
import Data.Word
import System.Environment
import System.IO
iterHelper :: B.ByteString -> Word8 ->
U.Vector Int -> Int ->
@overminder
overminder / README.md
Last active August 29, 2015 13:56
Behavior of c++ virtual calls inside constructor.

Description

Behavior of c++ virtual calls inside constructor.

http://www.zhihu.com/question/25037476/answer/30100671
见 http://h.acfun.tv/t/4240594?r=4256785
@overminder
overminder / README
Last active August 29, 2015 14:06
Branch predication
See main.c. Requires gcc or llvm-clang to compile.
$ time ./a.out --fast 40
fibo(40) = 102334155
real 0m0.571s
user 0m0.567s
sys 0m0.002s
$ time ./a.out --slow 40
fibo(40) = 102334155
@overminder
overminder / README.md
Last active August 29, 2015 14:08
std::function implementation
@overminder
overminder / README.md
Created December 22, 2015 02:38
TCP Graceful Shutdown

SYNOPSIS

Examine with TCP graceful shutdown behaviors in different libraries.