Skip to content

Instantly share code, notes, and snippets.

Hiroaki Nakamura hnakamur

Block or report user

Report or block hnakamur

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View subcommand.go
package main
import (
"flag"
"fmt"
"os"
)
var usage = `Usage argtest [Globals] <Command> [Options]
Commands:
@hnakamur
hnakamur / diag.md
Created Oct 18, 2015 — forked from hashrock/diag.md
作図系ツール・ライブラリまとめ
View diag.md

シーケンス図とかフローチャートをしごとで描画することになった場合、 テキストから生成できたら楽なので、それ系のツールまとめ

GraphViz

http://www.graphviz.org/

  • C製
  • Doxygen, Moinmoinなどと連携可能
  • ブロック図、クラス図、ネットワーク図など
@hnakamur
hnakamur / hello.go
Created Sep 28, 2015 — forked from hatajoe/hello.go
`runtime/cgo: could not obtain pthread_keys' on darwin/amd64
View hello.go
// file: plugins/hello/hello.go
// $ go build -o libhello.so -buildmode=c-shared hello.go
package main
import "C"
import (
"log"
)
View build-cargo-freebsd.sh
#!/bin/sh
set -e
mkdir -p target
mkdir -p deps
git clone https://github.com/rust-lang/regex deps/regex
git clone https://github.com/rust-lang/semver deps/semver
git clone https://github.com/dguo/strsim-rs deps/strsim-rs
View value-domain-check.go
package main
import (
"fmt"
"github.com/typester/go-pit"
"io/ioutil"
"log"
"net"
"net/http"
)
@hnakamur
hnakamur / env_copy_test.bench
Created Sep 17, 2012 — forked from kristate/env_copy_test.bench
test on how to copy worker env for spawning
View env_copy_test.bench
hnakamur@ubuntu:~/execve_env_copy$ gcc -O3 env_copy_test.c
hnakamur@ubuntu:~/execve_env_copy$ rm env_copy_test
hnakamur@ubuntu:~/execve_env_copy$ ./a.out
type_a: 0.750000 seconds
type_b: 0.730000 seconds
type_c: 0.640000 seconds
type_d: 0.860000 seconds
type_e: 0.760000 seconds
hnakamur@ubuntu:~/execve_env_copy$ ./a.out
type_a: 0.750000 seconds
You can’t perform that action at this time.