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
<div class="span2"> | |
<div class="well sidebar-nav"> | |
<ul class="nav nav-list"> | |
<li class="nav-header">Sidebar</li> | |
<li class="active"><a href="#">Link</a></li> | |
<li><a href="#">Link</a></li> | |
<li><a href="#">Link</a></li> | |
<li><a href="#">Link</a></li> | |
<li class="nav-header">Sidebar</li> | |
<li><a href="#">Link</a></li> |
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 NavBar struct { | |
SpanDefault int | |
Content []Category | |
} | |
type Category struct { | |
Name string |
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 ( | |
template "github.com/gorilla/template/v0" | |
"fmt" | |
"os" | |
) | |
func main() { |
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 ( | |
"template" | |
"os" | |
) | |
const levelsT = `levels: [ | |
{{range $h := .}} {{"{"}}bitrate:{{$h.bitrate}}, file:"{{$h.file}}", width:{{$h.width}}, height:{{$h.height}}{{"}"}} | |
{{end}}] |
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> | |
<head> <meta charset="utf-8"> | |
<title></title> | |
<link rel="sytlesheet" href="css/sytle.css"> | |
<script type="text/javascript" src="http://worleyworks.com.s3.amazonaws.com/jwscript.js"></script> | |
</head> | |
<body> | |
<div id="container">Loading the player...</div> | |
<script type="text/javascript"> | |
jwplayer("container").setup({ |
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
// X11 viewer for a MJPEG stream, such as the one obtained from the | |
// Android app https://market.android.com/details?id=com.pas.webcam | |
package main | |
import ( | |
"exp/gui/x11" | |
"flag" | |
"http" | |
"image" |
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
//Encoding a map to a gob. Save the gob to disk. Read the gob from disk. Decode the gob into another map. | |
package main | |
import ( | |
"fmt" | |
"gob" | |
"bytes" | |
"io/ioutil" | |
) | |
func main() { |
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 ("template" ;"os") | |
const templ = `Hello {{.Name}}` | |
type Person struct {Name string} | |
func main() { | |
me := &Person{Name: "greg"} | |
var t = template.Must(template.New("first").Parse(templ)) |
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
//http://docs.amazonwebservices.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html#PrivateContent_AuthExamples | |
//Amazon CloudFront Developer's Guide (API Version 2010-11-01) Using Amazon Cloudfront>Serving Private Content > Creating a Signed URL | |
package main | |
import ( | |
"os" | |
"strconv" | |
"fmt" | |
"io/ioutil" |
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
//working example of func(*iter)Next from: http://goneat.org/pkg/launchpad.net/mgo/#Iter.Next | |
package main | |
import ( | |
"fmt" | |
"launchpad.net/mgo" | |
) | |
type Person struct { |
NewerOlder