This file contains hidden or 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 ( | |
| "log" | |
| "math/rand" | |
| "time" | |
| ) | |
| func init() { | |
| rand.Seed(time.Now().UTC().UnixNano()) |
This file contains hidden or 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" | |
| type Foo struct { | |
| verbosity int | |
| } | |
| func (f *Foo) DoSomeDebugging() { | |
| fmt.Println(f.verbosity) |
This file contains hidden or 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> | |
| <style type="text/css"> | |
| .container { | |
| width: 500px; | |
| clear: both; | |
| } | |
| .container input { | |
| width: 100%; |
This file contains hidden or 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
| import "github.com/gopherjs/gopherjs/js" | |
| type WebLogger struct{} | |
| func (w *WebLogger) Write(p []byte) (n int, err error) { | |
| js.Global.Get("document").Call("write", "<pre>"+string(p)+"</pre>") | |
| return len(p), nil | |
| } |
This file contains hidden or 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
| // Work for iOS 6+ Safari, WP 8.x IE 11 and Android 4.4.2+ | |
| config := &tls.Config{ | |
| MinVersion: tls.VersionTLS12, // tls.VersionTLS10 | |
| PreferServerCipherSuites: true, | |
| CipherSuites: []uint16{tls.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, | |
| tls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, | |
| tls.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, | |
| tls.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, | |
| tls.TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, | |
| tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <style>img{ height: 100px; float: left; }</style> | |
| <script src="http://code.jquery.com/jquery-latest.js"></script> | |
| <script> | |
| $.getJSON("https://ajax.googleapis.com/ajax/services/search/images?v=1.0&q=death%20valley&callback=?", |
NewerOlder