This file contains hidden or 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
| # -*- coding: utf-8 -*- | |
| from paver.easy import * | |
| import os | |
| import os.path | |
| import subprocess | |
| def run_git(dirname): | |
| print "git update %s" % dirname | |
| sh("git pull ") |
This file contains hidden or 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
| オリジナルは力武さんの投稿 http://erlang-users.jp/ml/erlang/index.cgi?0::166 | |
| アキュムレータ accumulator | |
| アノテーション annotation | |
| アリティ arity | |
| ー致条件 match specification | |
| 入れ子リスト deep list | |
| インターフェイス interface | |
| エクスポート export |
This file contains hidden or 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
| package main | |
| import "fmt" | |
| func main() { | |
| queue := make(chan string) | |
| out := make(chan int) | |
| foo := []string{"foo","bar","baz","spam","egg","ham"} | |
| var bar = map[string]int{ | |
| "foo": 1, |
This file contains hidden or 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
| import random | |
| participants = ["ymotongpoo", | |
| "shiumachi", | |
| "mopemope", | |
| "tk0miya", | |
| "shimizukawa", | |
| "kuenishi", | |
| "ransui", | |
| "turky", |
This file contains hidden or 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 python | |
| # -* - coding: utf-8 -*- | |
| import argparse | |
| import inspect | |
| import eyed3 | |
| import eyed3.id3 | |
| def convertID3Encoding(audiofile, backup = False): | |
| tag = audiofile.tag | |
| if not tag: |
This file contains hidden or 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
| package main | |
| import ( | |
| "fmt" | |
| "net/http" | |
| ) | |
| func main() { | |
| http.HandleFunc("/", hello) | |
| http.ListenAndServe(":8000", nil) |
This file contains hidden or 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
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "net/http" | |
| "net/url" | |
| "strings" | |
| ) |
This file contains hidden or 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
| package main | |
| import ( | |
| "encoding/json" | |
| "errors" | |
| "flag" | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| "net" |
This file contains hidden or 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
| package main | |
| import ( | |
| "fmt" | |
| "math/rand" | |
| "runtime" | |
| "strconv" | |
| "sync" | |
| "time" | |
| ) |
This file contains hidden or 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
| package main | |
| import ( | |
| "log" | |
| "net/http" | |
| "time" | |
| ) | |
| const ( | |
| TargetURL = `http://www.cloudera.co.jp/shiumachi` |