段落は、空行を挟むこと
リスト(メインセクション)
package main | |
import ( | |
"fmt" | |
"math" | |
) | |
type ErrNegativeSqrt float64 | |
/* |
package main | |
import ( | |
"fmt" | |
"math/cmplx" | |
) | |
func Cbrt(x complex128) complex128 { | |
z := complex128(1.0) | |
for i := 0; i < 10000; i++ { |
package main | |
import "fmt" | |
// fibonacci is a function that returns | |
// a function that returns an int. | |
func fibonacci() func() int { | |
n := 0 | |
a, b := 0, 1 |
package main | |
import ( | |
"code.google.com/p/go-tour/wc" | |
"strings" | |
) | |
func WordCount(s string) map[string]int { | |
wc := make(map[string]int) | |
words := strings.Fields(s) |
package main | |
import ( | |
"code.google.com/p/go-tour/pic" | |
) | |
func Pic(dx, dy int) [][]uint8 { | |
t := make([][]uint8, dy) | |
for i := range t { |
1.3351578377717581 | |
1.4142135623730951 | |
loop:4980, diff:0.01000, z:1.419186346344104 | |
1.419186346344104 | |
Program exited. |
<?php | |
$fp = fopen("php://stdin", "r"); | |
$in = ''; | |
while($in != "quit") { | |
echo "php> "; | |
$in=trim(fgets($fp)); | |
eval ($in); | |
echo "\n"; | |
} |
#!/bin/sh | |
if [ ! -d "$HOME/bin" ]; then mkdir "$HOME/bin"; fi | |
cd ~/bin | |
curl -O https://raw.githubusercontent.com/spawngrid/kerl/master/kerl | |
chmod a+x kerl | |
# http://qiita.com/tatsuya6502/items/f15da8ea6e793c5038a2 | |
# https://gist.github.com/voluntas/8911384#%E3%82%BD%E3%83%BC%E3%82%B9%E3%82%B3%E3%83%BC%E3%83%89%E3%81%8B%E3%82%89%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB | |
# 上記2つの共通点 |