- merge
- quick
探索
#!/bin/bash | |
servers=( | |
server1 | |
server2 | |
server3 | |
) | |
select server in ${servers[@]} | |
do |
select | |
a.* | |
, ( | |
select | |
score | |
from test_table | |
where min <= diff | |
and max >= diff | |
) as s | |
, ( |
#!/bin//bash | |
DIR_SPEC="spec" | |
if [ -d ]; then | |
mkdir $DIR_SPEC | |
fi | |
cd spec | |
cat /proc/cpuinfo > cpuinfo.log | |
cat /proc/meminfo > meminfo.log |
package main | |
import ( | |
"fmt" | |
) | |
type Fetcher interface { | |
// Fetch returns the body of URL and | |
// a slice of URLs found on that page. | |
Fetch(url string) (body string, urls []string, err error) |
package main | |
import "code.google.com/p/go-tour/tree" | |
import ( | |
"fmt" | |
) | |
/* | |
type Tree struct { |
package main | |
import ( | |
"io" | |
"os" | |
"strings" | |
) | |
type rot13Reader struct { | |
r io.Reader |
package main | |
import ( | |
"code.google.com/p/go-tour/pic" | |
"image" | |
"image/color" | |
) | |
type Image struct { | |
// Bounds |
package main | |
import ( | |
"fmt" | |
"net/http" | |
) | |
type Hello struct{} | |
type String string |