TODO
Features:
- 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?)
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) { |
package main | |
import "github.com/campoy/cooltool/server" | |
func main() { | |
server.Run() | |
} |
<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; |
package main | |
import "fmt" | |
func main() { | |
fmt.Println("this is a test for Medium") | |
} |
// 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" |
var foo = 1; | |
func bar() { | |
if (!foo) { | |
var foo = 10; | |
} | |
console.log(foo); | |
} | |
bar(); |
package main | |
type Command interface { | |
Run() error | |
} | |
func RunAll(cmds []Command) error { | |
for _, cmd := range cmds { | |
err := cmd.Run() | |
if err != nil { |
package main | |
import ( | |
"fmt" | |
"math" | |
"code.google.com/p/go.tools/present" | |
) | |
var doc present.Doc |
// Copyright 2016 Google Inc. All rights reserved. | |
// Use of this source code is governed by the Apache 2.0 | |
// license that can be found in the LICENSE file. | |
// Sample endpoints demonstrates a Cloud Endpoints API. | |
package main | |
import ( | |
"encoding/json" | |
"fmt" |