Skip to content

Instantly share code, notes, and snippets.

View otiai10's full-sized avatar
👋

Hiromu OCHIAI otiai10

👋
View GitHub Profile
@otiai10
otiai10 / setup.md
Last active December 23, 2015 03:59
$ cat /etc/debian_version
$ apt-cache search tesseract-ocr
$ sudo apt-get update
$ sudo apt-get install -y esseract-ocr
$ sudo apt-get install -y gcc
$ sudo apt-get install -y python-dev
$ sudo apt-get install -y python-imaging
@otiai10
otiai10 / erlang.md
Last active December 23, 2015 06:49
erlang
[1:12:00] % apt-cache search erlang
erlang - Concurrent, real-time, distributed functional language
[1:13:18] % sudo apt-get install erlang
Setting up erlang-odbc (1:14.a-dfsg-3squeeze1) ...
Setting up erlang (1:14.a-dfsg-3squeeze1) ...
[1:13:42] %
[1:14:19] % erl
Erlang R14A (erts-5.8) [source] [smp:3:3] [rq:3] [async-threads:0] [kernel-poll:false]
@otiai10
otiai10 / install_go.md
Last active December 23, 2015 06:49
install Go into Debian squeeze 32bit and install revel

install mercurial (hg)

% sudo apt-get install mercurial

bind GOROOT and export GOPATH

# {{{ GO
export GOROOT=$HOME/go # goコマンドへのパス/bin (exportせずとも、PATHへのバインドさえすれば良い気もする) る)
export GOPATH=$HOME/go/.packages # go get でインストールしてくるパッケージへのパス/bin/bin
@otiai10
otiai10 / setup_server.sh
Last active December 23, 2015 10:09
setup ocrServer
#
# usage:
# sh setup_server.sh
#
## START
# cat /etc/debian_version
#=> 6.0.7
# apt-cache search tesseract-ocr
@otiai10
otiai10 / memo
Created September 21, 2013 02:53
memo
https://github.com/withoutcane/kanColleWidget/commit/a6be7ae0166e6e60dc0d108bf369f048c5af2d9e
@otiai10
otiai10 / test.html
Created September 22, 2013 12:22
overheading for HTMLDOM to jQueryObj
<html>
<head>
<meta charset="utf-8">
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script>
var samples = {
1 : 1000,
2 : 5000,
3 : 10000,
4 : 20000,
@otiai10
otiai10 / hisyotan.md
Last active December 23, 2015 19:19
秘書たんどうしたんやお前

2013/09/24

  • log
    • default
      • nothing
    • error
      • just "delete" error (TODO: avoid "delete" error)
    • stdout
  • nothing
@otiai10
otiai10 / hoge.md
Created September 27, 2013 05:43
request sequence

Nyukyo

http://125.6.188.25/kcsapi/api_req_nyukyo/start
http://125.6.188.25/kcsapi/api_get_member/ship2
http://125.6.188.25/kcsapi/api_get_member/material
http://125.6.188.25/kcsapi/api_get_member/ndock

Createship

@otiai10
otiai10 / setup_mgo.md
Created September 29, 2013 05:29
業者がホワイトボード交換していったんだけど作業した部屋の電気ことごとく点けっぱなしでン?ってなってる
go get labix.org/v2/mgo
@otiai10
otiai10 / gist:6760413
Created September 30, 2013 07:28
MongoDB on GoLang
go get labix.org/v2/mgo [master~/go/.packages/src/logServer]
#=> go: missing Bazaar command. See http://golang.org/s/gogetcmd
sudo apt-get install bzr
#=> ...
go get labix.org/v2/mgo
#=> ...