-
install docker ... really, you need to look at containers !!!
-
docker pull golang
-
pretend we have go installed
echo 'alias go="docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang go "' >> ~/.bash_profile source ~/.bash_profile
# Automatically instal the latest nginx | |
wget -O - http://nginx.org/keys/nginx_signing.key | sudo apt-key add - | |
#Make a backup copy of your current sources.list file | |
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak | |
#Now copy the following repositories to the end of ` /etc/apt/sources.list` | |
echo "deb http://nginx.org/packages/mainline/ubuntu/ trusty nginx" | sudo tee -a /etc/apt/sources.list | |
echo "deb-src http://nginx.org/packages/mainline/ubuntu/ trusty nginx" | sudo tee -a /etc/apt/sources.list |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
package main | |
import "io" | |
import "os" | |
import "strings" | |
import "bytes" | |
func main() { | |
r1 := strings.NewReader("Hello") | |
r2 := bytes.NewReader([]byte(" World!")) |
package main | |
type member struct { | |
name string | |
race string | |
} | |
func (m member) intro() { | |
println("Hi, I'm " + m.name) | |
} |
package main | |
import "fmt" | |
func main() { | |
type member struct { | |
name string | |
race string | |
} | |
package main | |
func main() { | |
t3s := map[string]string{ | |
"Krillin": "Human", | |
"Gohan": "Saiyan", | |
"Dende": "Namekian", | |
} | |
for name, race := range t3s { |
package main | |
import "fmt" | |
func main() { | |
t3s := map[string]string{ | |
"Krillin": "Human", | |
"Gohan": "Saiyan", | |
"Dende": "Namekian", | |
} |
Packages: | |
- advanced-open-file | |
- git-projects | |
- project-manager | |
- highlight-selected | |
- sort-lines | |
Theme: | |
- atom-material-ui with OneDark syntax theme |
import re | |
from django.utils.encoding import force_text | |
from django.core.exceptions import ValidationError | |
class DomainNameValidator(object): | |
""" | |
Domain name validator adapted from Django's EmailValidator. | |
""" |