Used to provide structural templates.
Pattern
t-template-name
t-template-name--modifier-name
t-template-name__subcomponent-name--subcomponent-modifier-name
| // This small script will marshal a tickscript into JSON. | |
| // The script can be run using the following commands (Go must be installed): | |
| // | |
| // go get -u github.com/influxdata/chronograf | |
| // go run jsontickscript.go | |
| package main | |
| import ( | |
| "fmt" |
| package main | |
| import ( | |
| "fmt" | |
| "net/url" | |
| websocket "github.com/gorilla/websocket" | |
| influxdb "github.com/influxdb/influxdb/client/v2" | |
| exchange "github.com/preichenberger/go-coinbase-exchange" | |
| ) |
| HTTP/1.1 500 Internal Server Error | |
| Request-Id: d269aaa2-2bf9-11e5-8009-000000000000 | |
| X-Influxdb-Version: 0.9.1 | |
| Date: Thu, 16 Jul 2015 20:32:53 GMT | |
| Content-Length: 8 | |
| Content-Type: text/plain; charset=utf-8 | |
| timeout | |
| HTTP/1.1 100 Continue |
| Verifying that +gunnar is my openname (Bitcoin username). https://onename.io/gunnar |
| /** | |
| * Looks up an address' probable ZIP code using the Google | |
| * geocoder. | |
| * | |
| * @param {string} address An address string. | |
| * @return The ZIP of first matched address. | |
| * @customfunction | |
| */ | |
| function getZip(address) { | |
| if (address == '') { |
| # Download all of an organization's repos | |
| curl -s https://api.github.com/orgs/twitter/repos?per_page=200 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["ssh_url"]} ]}' | |
| # Track all remote branches with a local branch, fetch them, and pull to update. | |
| for remote in `git branch -r`; do git branch --track $remote; done | |
| git fetch --all | |
| git pull --all |
| fmt.Println("Serving files from" + filepath.Abs(string(directory))) |
| package main | |
| import ( | |
| "encoding/csv" | |
| "fmt" | |
| "io" | |
| "os" | |
| "strings" | |
| ) |