- Page navigation with Right/left instead of Page Up/down (@mattetti)
- Allow navigation from the editor (egon)
- Responsive design
- Keep the sliders on place after changing page/module (cookies?)
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
// Short example showing how to get an oauth2 token using a .pem key and how the token should be added | |
// to the http requests. | |
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
"code.google.com/p/goauth2/oauth/jwt" |
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" | |
"fmt" | |
"os" | |
"time" | |
) | |
const numWorkers = 3 |
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 foo = 1; | |
func bar() { | |
if (!foo) { | |
var foo = 10; | |
} | |
console.log(foo); | |
} | |
bar(); |
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 | |
type Command interface { | |
Run() error | |
} | |
func RunAll(cmds []Command) error { | |
for _, cmd := range cmds { | |
err := cmd.Run() | |
if err != nil { |
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 ( | |
"fmt" | |
"math" | |
"code.google.com/p/go.tools/present" | |
) | |
var doc present.Doc |
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
func fillImg(m *img) { | |
// init a WaitGroup with the number of pixels of the image | |
var wg sync.WaitGroup | |
wg.Add(m.h * m.w) | |
for i, row := range m.m { | |
for j := range row { | |
// Every pixel is computed in a different goroutine | |
// and the counter is decreased once it's done. | |
go func(i, j int) { |
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 "github.com/campoy/cooltool/server" | |
func main() { | |
server.Run() | |
} |
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 lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>404 - not found</title> | |
<style> | |
* { | |
padding: 0; | |
margin: 0; |
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 "fmt" | |
func main() { | |
fmt.Println("this is a test for Medium") | |
} |
OlderNewer