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
[class^="icon-"],[class*=" icon-"] { | |
background-image:url("../images/glyphicons-halflings.png"); | |
} | |
.icon-white, | |
.nav-pills>.active>a>[class^="icon-"], | |
.nav-pills>.active>a>[class*=" icon-"], | |
.nav-list>.active>a>[class^="icon-"], | |
.nav-list>.active>a>[class*=" icon-"], | |
.navbar-inverse .nav>.active>a>[class^="icon-"], |
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
var cors_proxy = require("corsproxy"); | |
var http_proxy = require("http-proxy"); | |
cors_proxy.options = { | |
// this is not working | |
target: "user:pw@https://mirco.cloudant.com/pouchdb" | |
}; | |
http_proxy.createServer(cors_proxy).listen(1234, function() { | |
console.log('cors proxy server listening on port 1234') | |
}); |
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
{{ define "title" }} | |
a | |
{{ end }} | |
{{ define "body" }} | |
<p> | |
some content in file a | |
</p> | |
{{ end }} |
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
func get(w http.ResponseWriter, r *http.Request) *HTTPError { | |
// get some logged in user | |
user := GetUserFromContext(r) | |
// create error and result channel | |
errchan := make(chan error, 2) | |
friendsChan := make(chan []Friend) | |
CarsChan := make(chan []Cars) | |
// get friends | |
go func() { | |
friends, err := db.GetFriends(user.Name) |
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
region | fruit | count | |
---|---|---|---|
East | Apples | 53245 | |
West | Apples | 28479 | |
South | Apples | 19697 | |
North | Apples | 24037 | |
Central | Apples | 40245 | |
East | Oranges | 200 | |
South | Oranges | 200 | |
Central | Oranges | 200 |
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
type CacheInterface interface { | |
Get(key string) ([]byte, error) | |
Set(key string, value interface{}) error | |
} | |
// Cache implements CacheInterface. | |
type Cache struct { | |
// wrap redis pool connection | |
// or whatever you need | |
} |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="x-ua-compatible" content="ie=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<style> | |
.line { |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="x-ua-compatible" content="ie=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<style> | |
.line { |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="x-ua-compatible" content="ie=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
</head> | |
<body> |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="x-ua-compatible" content="ie=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
</head> | |
<body> |
OlderNewer