This file contains 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 Quacker interface { | |
Quack() | |
} | |
type Duck struct{} |
This file contains 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 Vehicle struct{} | |
func (v Vehicle) Move() { | |
fmt.Println("vehicle moving") | |
} |
This file contains 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 Vehicle struct{} | |
func (v Vehicle) Move() { | |
fmt.Println("vehicle moving") | |
} |
This file contains 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
#!/usr/bin/env bash | |
# ~/bin/home | |
# toggles source control on my home directory | |
# idea from [http://rhodesmill.org/brandon/2012/home-directory-vc/] | |
# colorized output | |
function cinfo() { | |
echo -e "\x1b[32m$1\x1b[0m" # green | |
} | |
function cwarn() { |
This file contains 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
Environment: | |
Request Method: GET | |
Request URL: http://127.0.0.1:8000/list/item/add/ | |
Django Version: 1.4.2 | |
Python Version: 2.6.5 | |
Installed Applications: | |
('django.contrib.auth', |
NewerOlder