Skip to content

Instantly share code, notes, and snippets.

🎴
in life

kurehajime kurehajime

🎴
in life
Block or report user

Report or block kurehajime

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
@kurehajime
kurehajime / makefile
Last active Dec 19, 2016
make file for Go
View makefile
out:
go get github.com/mitchellh/gox
go test
rm -rf ./_obj
gox -output "_obj/{{.OS}}_{{.Arch}}/{{.Dir}}" ./...
mv ./_obj/darwin_386 ./_obj/macos_386
mv ./_obj/darwin_amd64 ./_obj/macos_amd64
-find ./_obj \! -name "*.zip" -type d -exec zip -r -j {}.zip {} \; -exec rm -R -d {} \;
@kurehajime
kurehajime / zipall.sh
Last active Sep 3, 2015
ディレクトリは以下を個別に圧縮 //http://ameblo.jp/pclindesk/entry-10109694180.html
View zipall.sh
find . \! -name "*.zip" -type d -exec zip -r -j {}.zip {} \; -exec rm -R -d {} \;
View gist:ba2cacb30b5c446cac65
gox -output "bin/{{.OS}}_{{.Arch}}/{{.Dir}}"
@kurehajime
kurehajime / abface.html
Created Dec 19, 2013
ABテストで顔をモンタージュしてみる ref: http://qiita.com/kurehajime/items/6912e87738b06d367163
View abface.html
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<title>ABface</title>
<style>
#canv1,#canv2 {
border: solid 3px #000;
border-radius: 25px 25px 25px 25px / 25px 25px 25px 25px;
@kurehajime
kurehajime / vschart.html
Created Dec 15, 2013
犬派と猫派の勢力図をGoogleChartAPIでグラフ化して決着をつける ref: http://qiita.com/kurehajime/items/cd48febad3e802f9fb1d
View vschart.html
<html>
<head>
</head>
<body style="">
<p>&nbsp;</p>
<p>
<meta charset="UTF-8"></meta>
<title>比較くん</title>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
@kurehajime
kurehajime / markov.html
Created Dec 14, 2013
はてブのホッテントリのタイトルを要約してWebの今を見つめる ref: http://qiita.com/kurehajime/items/f1cfd74e1ec7b45fbafa
View markov.html
<html>
<head>
</head>
<body style="">
<p>&nbsp;</p>
<p>
<meta charset="UTF-8">
<title>要約くん</title>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.css" />
View file0.txt
1,000 円札:1枚
100  円玉:3枚
10   円玉:1枚
1   円玉:1枚
@kurehajime
kurehajime / file2.txt
Created Dec 10, 2013
秒速でねこ画像を集めてネコヒルズ族を目指す ref: http://qiita.com/kurehajime/items/8a700db4f462521f4d77
View file2.txt
$ sudo pip install httplib2
@kurehajime
kurehajime / file0.txt
Created Dec 8, 2013
feedparserで自動的にねこ画像を拾ってくる ref: http://qiita.com/kurehajime/items/dac4b4cca51e52af3152
View file0.txt
$ sudo pip install feedparser
You can’t perform that action at this time.