Skip to content

Instantly share code, notes, and snippets.

Takayuki Sugita sugilog

Block or report user

Report or block sugilog

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
View tmux1.9.patch
Common subdirectories: tmux-1.9a.orig/compat and tmux-1.9a/compat
Common subdirectories: tmux-1.9a.orig/etc and tmux-1.9a/etc
Common subdirectories: tmux-1.9a.orig/examples and tmux-1.9a/examples
diff -u tmux-1.9a.orig/options-table.c tmux-1.9a/options-table.c
--- tmux-1.9a.orig/options-table.c 2014-04-11 17:43:19.000000000 +0900
+++ tmux-1.9a/options-table.c 2014-04-11 17:44:22.000000000 +0900
@@ -300,6 +300,11 @@
.default_str = "default"
},
@sugilog
sugilog / sample.go
Created Dec 28, 2014
パッケージ:サンプル1
View sample.go
package main
import "fmt"
func main() {
fmt.Println( 12, 34 );
}
@sugilog
sugilog / sample.go
Created Dec 28, 2014
パッケージ:サンプル2(main関数なし)
View sample.go
package main
import "fmt"
func hoge() {
fmt.Println( 12, 34 );
}
@sugilog
sugilog / sample.go
Created Dec 28, 2014
自作パッケージ:main
View sample.go
package main
import (
"fmt"
"mypackage"
)
func main() {
fmt.Println( mypackage.One() );
fmt.Println( mypackage.Two() );
@sugilog
sugilog / src_mypackage_one.go
Created Dec 28, 2014
自作パッケージ:mypackage1
View src_mypackage_one.go
package mypackage
func One() string {
return "ONE"
}
@sugilog
sugilog / sample.go
Last active Aug 29, 2015
パッケージ:サンプル3(mainパッケージでない)
View sample.go
package sample
import "fmt"
func main() {
fmt.Println( 12, 34 );
}
@sugilog
sugilog / src_mypackage_two.go
Created Dec 28, 2014
自作パッケージ:mypackage2
View src_mypackage_two.go
package mypackage
func Two() string {
return "TWO"
}
@sugilog
sugilog / sample.go
Created Dec 28, 2014
パッケージ:time
View sample.go
package main
import (
"fmt"
"time"
)
func main() {
fmt.Println( time.Now() );
time.Sleep( 1000 * time.Millisecond );
View sample.go
package main
import (
"fmt"
)
type Space struct {
X int
Y int
Z int
@sugilog
sugilog / sample.go
Last active Aug 29, 2015
パッケージ:alias
View sample.go
package main
import (
"fmt"
m "mypackage"
)
func main() {
fmt.Println( m.One() )
fmt.Println( m.Two() )
You can’t perform that action at this time.