Skip to content

Instantly share code, notes, and snippets.

View ymotongpoo's full-sized avatar
📈
observability matters

Yoshi Yamaguchi ymotongpoo

📈
observability matters
View GitHub Profile

Keybase proof

I hereby claim:

  • I am ymotongpoo on github.
  • I am ymotongpoo (https://keybase.io/ymotongpoo) on keybase.
  • I have a public key whose fingerprint is 0379 FF8F 24F5 27DB AFA5 34E5 2A7A 732B 6D46 69DA

To claim this, I am signing this object:

@ymotongpoo
ymotongpoo / build.sh
Last active August 29, 2015 14:27
Go1.5 c-shared test
#!/bin/bash
go build -buildmode=c-shared -o libgomain.so main.go
gcc main.c -o main ./libgomain.so
@ymotongpoo
ymotongpoo / xshiumachi
Created February 9, 2015 04:04
X-Shiumachi
package main
import (
"log"
"net/http"
"time"
)
const (
TargetURL = `http://www.cloudera.co.jp/shiumachi`
@ymotongpoo
ymotongpoo / main.go
Created October 4, 2014 05:49
ported WorkerThread.java to Go
package main
import (
"fmt"
"math/rand"
"runtime"
"strconv"
"sync"
"time"
)
@ymotongpoo
ymotongpoo / main.go
Created November 30, 2013 08:05
Retrieving own Google+ posts
package main
import (
"encoding/json"
"errors"
"flag"
"fmt"
"io/ioutil"
"log"
"net"
@ymotongpoo
ymotongpoo / main.go
Last active December 27, 2015 09:28
echo slack-bot
package main
import (
"encoding/json"
"fmt"
"net/http"
"net/url"
"strings"
)
@ymotongpoo
ymotongpoo / hello.go
Last active December 21, 2015 00:09
GoでローカルでWebサーバ上げてHello, Worldする一番簡単な例。go run hello.goして、 http://localhost:8000/ にアクセスすれば "Hello, Gopher!" と表示されるはず
package main
import (
"fmt"
"net/http"
)
func main() {
http.HandleFunc("/", hello)
http.ListenAndServe(":8000", nil)
#!/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:
@ymotongpoo
ymotongpoo / pyspa_advent.py
Created November 30, 2012 05:58
2012 PySpa advent calendar抽選
import random
participants = ["ymotongpoo",
"shiumachi",
"mopemope",
"tk0miya",
"shimizukawa",
"kuenishi",
"ransui",
"turky",
@ymotongpoo
ymotongpoo / pipeline.go
Created November 27, 2012 05:58
Channelを使ってのpipeline ref: http://qiita.com/items/0c61af9813b5039e21de
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,