(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:
| compile ('com.longtailvideo.jwplayer:jwplayer-core:2.6.2+12'){ | |
| } | |
| compile ('com.longtailvideo.jwplayer:jwplayer-common:2.6.2+12') { | |
| exclude module: 'appcompat-v7' | |
| } | |
| compile ('com.longtailvideo.jwplayer:jwplayer-ima:2.6.2+12') { | |
| exclude group: 'com.google.android.gms' | |
| exclude module: 'play-services-ads' | |
| } | |
| compile ('com.longtailvideo.jwplayer:jwplayer-chromecast:2.6.2+12'){ |
| package main | |
| import ( | |
| "net/http" | |
| "log" | |
| ) | |
| func redirect(w http.ResponseWriter, req *http.Request) { | |
| // remove/add not default ports from req.Host | |
| target := "https://" + req.Host + req.URL.Path | |
| if len(req.URL.RawQuery) > 0 { |
| //////////////////////////////////////////////////////////////////////////// | |
| // Porgram: CommandLineCV | |
| // Purpose: Go commandline via cobra & viper demo | |
| // Authors: Tong Sun (c) 2015, All rights reserved | |
| // based on https://github.com/chop-dbhi/origins-dispatch/blob/master/main.go | |
| //////////////////////////////////////////////////////////////////////////// | |
| //////////////////////////////////////////////////////////////////////////// | |
| // Program start |
| db.createUser({ user: "campaigns", pwd: "password", roles: [{ role: "dbOwner", db: "campaigns"},{role:"readWrite",db: "campaigns"},{role: "dbAdmin",db: "campaigns"},{role:"userAdmin",db:"campaigns"} ] }) | |
| Successfully added user: { | |
| "user" : "campaigns", | |
| "roles" : [ | |
| { | |
| "role" : "dbOwner", | |
| "db" : "campaigns" | |
| }, | |
| { | |
| "role" : "readWrite", |
| package main | |
| import ( | |
| "fmt" | |
| "time" | |
| ) | |
| // Suggestions from golang-nuts | |
| // http://play.golang.org/p/Ctg3_AQisl |
| Using MongoDB in golang with mgo |
| package main | |
| import ( | |
| "fmt" | |
| "net/http" | |
| "github.com/gorilla/mux" | |
| ) | |
| func handler(name string)func (http.ResponseWriter, *http.Request) { | |
| dummyHandler := func (w http.ResponseWriter, r *http.Request) { |
| package main | |
| import ( | |
| "fmt" | |
| "github.com/codegangsta/negroni" | |
| "github.com/gorilla/mux" | |
| "log" | |
| "net/http" | |
| ) |
| package main | |
| import ( | |
| "time" | |
| "fmt" | |
| "log" | |
| "runtime" | |
| "github.com/fatih/color" | |
| ) |