This file contains 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
#!/usr/bin/env python3 | |
# | |
# Extract files contained in HAR (http archive file) | |
# Programmed by kcrt <kcrt atmark kcrt.net> | |
# | |
import argparse | |
import json | |
import os |
This file contains 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
function erf(x){ | |
// erf(x) = 2/sqrt(pi) * integrate(from=0, to=x, e^-(t^2) ) dt | |
// with using Taylor expansion, | |
// = 2/sqrt(pi) * sigma(n=0 to +inf, ((-1)^n * x^(2n+1))/(n! * (2n+1))) | |
// calculationg n=0 to 50 bellow (note that inside sigma equals x when n = 0, and 50 may be enough) | |
var m = 1.00; | |
var s = 1.00; | |
var sum = x * 1.0; | |
for(var i = 1; i < 50; i++){ | |
m *= i; |
This file contains 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
# | |
# .zshrc | |
# Written by kcrt <http://profile.kcrt.net> | |
# Nanoseconds Hunter "http://www.kcrt.net" | |
# | |
# 参考: | |
# http://nijino.homelinux.net/diary/200206.shtml#200206140 | |
# http://d.hatena.ne.jp/umezo/20100508/1273332857 | |
# http://www.clear-code.com/blog/2011/9/5.html |
This file contains 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
" -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | |
" | |
" .gvimrc | |
" kcrt http://profile.kcrt.net | |
" | |
" -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | |
scriptencoding utf-8 | |
" ===== 設定 ===================================== |
This file contains 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
" -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | |
" | |
" .vimrc | |
" kcrt http://profile.kcrt.net | |
" | |
" -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | |
scriptencoding utf-8 | |
set nocompatible " 拡張機能を有効にする |