Skip to content

Instantly share code, notes, and snippets.

@umezo
umezo / .gitignore
Last active February 26, 2016 04:43
test requiring current ramlev
node_modules/
@umezo
umezo / .gitignore
Last active February 24, 2016 06:45
test-ramlev-coffee
node_modules/
png( "sprof-sgf.png" )
data <- read.table("sprof-sgf.log")
hist(subset(data,V1<10000)[,1],main="Load time \n View controller and NicoS player",xlab="time[ms]",ylab="count")
dev.off()
@umezo
umezo / gist:8857093
Created February 7, 2014 03:43
Jenkins Theme
body{}
@umezo
umezo / makeOrder.js
Created January 23, 2014 17:11
全ての順列を生成する関数
/**
* 与えられたリストの全ての並び順を生成して返す
* ex) makeOrder( [1,2,3] ) -> [ [1,2,3],
* [1,3,2],
* [2,3,1],
* [2,1,3],
* [3,1,2],
* [3,2,1]]
*
* @param {Array}
@umezo
umezo / amida_generator
Created November 8, 2012 10:16
Generate amida, a traditional Japanese randomizer ;
function Amida( col , row ){
this.amidaModel = new AmidaModel( col , row );
}
Amida.prototype.print = function( ){
var chars = ["├" , "┤" , "│" ];
var prev = 0 ;
var grid = this.amidaModel.getArray();
@umezo
umezo / gist:3741739
Created September 18, 2012 07:14
convert path between ms shared folder and samba url
function convert_smb_url() {
local file_path=''
if [ -n "$1" ] ; then
file_path=$1
else
file_path=`print -R $(pbpaste)`
fi
if [ -n $file_path ] ; then
local prefix=`echo $1|egrep "^smb://" -o`