This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bufio" | |
"log" | |
"fmt" | |
"os" | |
"regexp" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Before pulling the latest changes from the go repository, first | |
// run this tool: | |
// cd go-tour | |
// go build -o conv conv.go | |
// ./conv < static/index.html | |
// It will create tour.article and a prog directory full of .go files. | |
// Read over tour.article and check that it makes sense. | |
// You will probably want to: | |
// hg pull -u | |
// go get -u code.google.com/p/go.talks/pkg/present |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input type="button" value="Stop" id="stop"> | |
<div id="log"></div> | |
<script src="go/doc/jquery.js"></script> | |
<script> | |
var script = [ | |
{"Delay": 0, "Message": "Hello, "}, | |
{"Delay": 1000000000, "Message": "World!\n"}, | |
{"Delay": 2000000000, "Message": "That's it!"} | |
]; | |
function playback(root, script) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
"exp/html" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"os" | |
"regexp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% ping 8.8.8.8 | |
PING 8.8.8.8 (8.8.8.8): 56 data bytes | |
Request timeout for icmp_seq 0 | |
Request timeout for icmp_seq 1 | |
Request timeout for icmp_seq 2 | |
64 bytes from 8.8.8.8: icmp_seq=0 ttl=54 time=3980.438 ms | |
64 bytes from 8.8.8.8: icmp_seq=1 ttl=54 time=2979.361 ms | |
64 bytes from 8.8.8.8: icmp_seq=2 ttl=54 time=1978.766 ms | |
64 bytes from 8.8.8.8: icmp_seq=3 ttl=54 time=978.429 ms | |
64 bytes from 8.8.8.8: icmp_seq=4 ttl=54 time=114.190 ms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% ping 8.8.8.8 | |
PING 8.8.8.8 (8.8.8.8): 56 data bytes | |
Request timeout for icmp_seq 0 | |
Request timeout for icmp_seq 1 | |
Request timeout for icmp_seq 2 | |
64 bytes from 8.8.8.8: icmp_seq=0 ttl=54 time=3980.438 ms | |
64 bytes from 8.8.8.8: icmp_seq=1 ttl=54 time=2979.361 ms | |
64 bytes from 8.8.8.8: icmp_seq=2 ttl=54 time=1978.766 ms | |
64 bytes from 8.8.8.8: icmp_seq=3 ttl=54 time=978.429 ms | |
64 bytes from 8.8.8.8: icmp_seq=4 ttl=54 time=114.190 ms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var cluster = require('cluster'); | |
var http = require('http'); | |
var numCPUs = require('os').cpus().length; | |
if (cluster.isMaster) { | |
// Fork workers. | |
for (var i = 0; i < numCPUs; i++) { | |
cluster.fork(); | |
} | |
cluster.on('exit', function(worker, code, signal) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Where's adg?</title> | |
<style> | |
th { | |
text-align: left; | |
} | |
td, th { | |
padding-right: 10px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13:23 <@adg> :) | |
13:28 < skelterjohn> always good to see a smiling face in here | |
13:35 < AndrewBC> Always? What if it's JUST a smiling face? | |
13:36 < skelterjohn> you mean as in this case? | |
13:37 < skelterjohn> it'll do | |
13:38 < AndrewBC> D'oh. I meant more like horror movie gore, but you win this | |
round | |
13:39 < skelterjohn> lol | |
13:39 <@adg> :) | |
13:39 < skelterjohn> OH GOD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"KeyName": "icecloud-key", | |
"Server": [ | |
{ | |
"Kind": "master", | |
"Location": "Tokyo", | |
"Username": "ubuntu", | |
"ImageID": "ami-40b40041", | |
"Size": "m1.small", | |
"NumClients": 100, "NumSources": 5 |