Skip to content

Instantly share code, notes, and snippets.

View osamingo's full-sized avatar
🧑‍💻

Osamu TONOMORI osamingo

🧑‍💻
View GitHub Profile
@osamingo
osamingo / eqmac_custom_equalizer.json
Last active January 29, 2025 22:15
Perfect and Eargasm Explosion equalizer settings for eqMac
[
{
"gains" : {
"global" : 0,
"bands" : [
3,
6,
9,
7,
6,
[
{
"name": "Arithmetic.Multiply",
"function": "main.Multiply",
"params": {
"$ref": "#/definitions/MultiplyParams",
"definitions": {
"MultiplyParams": {
"type": "object",
"properties": {
package main
import (
"bytes"
"context"
"encoding/json"
"log"
"net/http"
"github.com/osamingo/jsonrpc"
package main
import (
"bytes"
"log"
"net/http"
"github.com/gorilla/rpc/v2"
"github.com/gorilla/rpc/v2/json2"
)
package main
import (
"io"
"log"
"net"
"net/http"
"net/rpc"
"net/rpc/jsonrpc"
)
@osamingo
osamingo / file0.go
Created January 16, 2016 07:41
Web Application周りのテスト方法 ref: http://qiita.com/osamingo/items/9ee3f8059e33a3f69ab1
package main
import (
"net/http"
"github.com/facebookgo/grace/gracehttp"
"github.com/sebest/xff"
"goji.io"
"goji.io/pat"
"golang.org/x/net/context"
@osamingo
osamingo / file0.txt
Created October 5, 2015 09:12
*_test.goが含まれているPackage一覧を取得する ref: http://qiita.com/osamingo/items/4151b78bcfb9d0cf9559
$ go list -f="{{if .TestGoFiles}}{{.ImportPath}}{{end}}" ./...
machine:
environment:
GOROOT: ${HOME}/go
PATH: ${GOROOT}/bin:${PATH}
post:
- wget https://storage.googleapis.com/golang/go1.5.linux-amd64.tar.gz
- tar zxvf go1.5.linux-amd64.tar.gz
@osamingo
osamingo / file0.txt
Last active October 5, 2015 11:22
Use the one liner, get coverage of multiple packages ! ref: http://qiita.com/osamingo/items/aa74e119635227c7fff4
echo "mode: count" > coverage.txt;for pkg in `find . -maxdepth 3 -path '*_test.go' -type f | xargs -I{} dirname {} | uniq`;do go test -covermode=count -coverprofile=temp.cov $pkg && tail -n +2 temp.cov >> coverage.txt || exit 1;rm temp.cov;done
@osamingo
osamingo / main.gs
Created September 11, 2014 11:09
GoogleSpreadSheetのユーザーストーリーリストをGoogleAppsScript経由でJIRAに落としこむ ref: http://qiita.com/osamingo/items/58b23b4461be55400f79
function onOpen() {
SpreadsheetApp.getActiveSpreadsheet().addMenu('JIRA', [
{
name: 'Create issues',
functionName: 'createIssuesForJira'
}
]);
}
function createIssuesForJira() {