Skip to content

Instantly share code, notes, and snippets.

View mediba-Kitada's full-sized avatar

[mediba] Tsubasa Kitada mediba-Kitada

View GitHub Profile

概要

複数のリポジトリのプルリクエストを見ていくのが大変なので、いっきにプルリクを出すやつ。   LabelでWIP付いてると無視、一度表示したのは二度出なくなる機能付き。

つかいかた

  1. インポートのやつをgo getする
  2. tokenとuserとreposを好きなのに変更
  3. go run
package main
import "golang.org/x/tour/tree"
import "fmt"
// Walk walks the tree t sending all values
// from the tree to the channel ch.
func Walk(t *tree.Tree, ch chan int) {
var walker func(t *tree.Tree)
walker = func(t *tree.Tree) {
@rndD
rndD / go_image_ex
Created December 28, 2014 17:08
A tour of GO: Exercise: Images
package main
import (
"code.google.com/p/go-tour/pic"
"image"
"image/color"
)
type Image struct{}
@bluerabbit
bluerabbit / gist:5053282
Last active December 14, 2015 07:49
拡張grepとしてのawk。awkを使ってログを抽出する

3番目の値と等価な行のみを抽出

%cat development.log | awk '$3=="OK"'
Completed 200 OK in 3412ms (Views: 3411.8ms | ActiveRecord: 0.0ms)
Completed 200 OK in 17ms (Views: 16.6ms | ActiveRecord: 0.0ms)
@Gab-km
Gab-km / github-flow.ja.md
Last active April 25, 2024 04:01 — forked from juno/github-flow.ja.md
GitHub Flow (Japanese translation)
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 23, 2024 18:01
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@mattsgarrison
mattsgarrison / hubot_service.sh
Created January 6, 2012 16:51
Start/Stop script to manage Hubot with Monit
#!/bin/zsh
### BEGIN INIT INFO
# Provides: hubot
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the hubot service
# Description: starts the Hubot bot for the Campfire rooms