intel cpu i7 6700K
http://ark.intel.com/ja/products/88195/Intel-Core-i7-6700K-Processor-8M-Cache-up-to-4_20-GHz
Z170A GAMING M7
自分のPCのホームディレクトリに .gitconfig おいてる | |
``` | |
[user] | |
name = yanap | |
email = yanap1214@gmail.com | |
[core] | |
editor = vim -c \"set fenc=utf-8\" | |
precomposeunicode = true | |
quotepath = false |
intel cpu i7 6700K
http://ark.intel.com/ja/products/88195/Intel-Core-i7-6700K-Processor-8M-Cache-up-to-4_20-GHz
Z170A GAMING M7
<input type="button" value="Say hello" onClick="showAndroidToast('Hello Android!')" /> | |
<script type="text/javascript"> | |
function showAndroidToast(toast) { | |
Android.showToast(toast); | |
} | |
</script> |
package main | |
import ( | |
"fmt" | |
"runtime" | |
) | |
func main() { | |
runtime.Breakpoint() | |
fmt.Println("Hello world!!") |
brew install go |
package main | |
import ( | |
"fmt" | |
"math" | |
) | |
type ErrNegativeSqrt float64 | |
func (e ErrNegativeSqrt) Error() string { |
package main | |
import "fmt" | |
// fibonacci is a function that returns | |
// a function that returns an int. | |
func fibonacci() func() int { | |
a := 0 | |
b := 1 | |
return func() int { |
package main | |
import ( | |
"code.google.com/p/go-tour/wc" | |
"strings" | |
) | |
func WordCount(s string) map[string]int { | |
ss := strings.Fields(s); | |
num := len(ss) |
package main | |
import "code.google.com/p/go-tour/pic" | |
func Pic(dx, dy int) [][]uint8 { | |
ret := make([][]uint8, dy); | |
for y := 0; y < dy; y++ { | |
ret[y] = make([]uint8, dx); | |
for x := 0; x < dx; x++ { | |
//ret[y][x] = uint8(x^y); |
package main | |
import ( | |
"fmt" | |
"math" | |
) | |
func Sqrt(x float64) float64 { | |
z := float64(2.) | |
s := float64(0) |