This file contains hidden or 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
| import Html exposing (..) | |
| import Html.App as Html | |
| import Html.Events exposing (..) | |
| import Html.Attributes exposing (..) | |
| import Http | |
| import Task | |
| import Json.Decode as Json | |
| import String exposing (length) | |
| import Time exposing (Time, second) |
This file contains hidden or 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
| { | |
| "Name": "external", | |
| "Tasks": [{ | |
| "Name": "kafka", | |
| "Command": "docker run -p 2181:2181 -p 9092:9092 --env ADVERTISED_HOST=`docker-machine ip \\`docker-machine active\\`` --env ADVERTISED_PORT=9092 spotify/kafka", | |
| "Executor": ["/bin/sh", "-c"], | |
| "Service": true | |
| }, { | |
| "Name": "kafka-manager", | |
| "Command": "docker run -p 9000:9000 -e ZK_HOSTS=\"192.168.99.100:2181\" -e APPLICATION_SECRET=letmein sheepkiller/kafka-manager", |
This file contains hidden or 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 com.github.iankent.sshd; | |
| import com.google.common.jimfs.Configuration; | |
| import com.google.common.jimfs.Jimfs; | |
| import org.apache.sshd.common.file.FileSystemFactory; | |
| import org.apache.sshd.common.scp.ScpTransferEventListener; | |
| import org.apache.sshd.common.session.Session; | |
| import org.apache.sshd.server.SshServer; | |
| import org.apache.sshd.server.auth.pubkey.PublickeyAuthenticator; | |
| import org.apache.sshd.server.command.ScpCommandFactory; |
This file contains hidden or 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 (i *inMemory) Get(key string) (interface{}, bool) { | |
| // This doesn't work ("not enough arguments to return") | |
| return i.data[key] | |
| // But this does | |
| v, ok := i.data[key] | |
| return v, ok | |
| } |
This file contains hidden or 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 config | |
| import "flag" | |
| var BindAddress string | |
| var SMTPHost string | |
| var SMTPPort int | |
| func Configure() { | |
| flag.StringVar(&BindAddress, "bind", ":9650", "Bind address") |
This file contains hidden or 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" | |
| "log" | |
| "github.com/crowdmob/goamz/aws" | |
| "github.com/crowdmob/goamz/elasticache" | |
| ) | |
This file contains hidden or 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" | |
| "log" | |
| "github.com/crowdmob/goamz/aws" | |
| "github.com/crowdmob/goamz/elasticache" | |
| ) |
This file contains hidden or 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( | |
| "log" | |
| "net/http" | |
| "github.com/gorilla/pat" | |
| ) | |
| func main() { | |
| p := pat.New() |
This file contains hidden or 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" | |
| "log" | |
| "github.com/crowdmob/goamz/aws" | |
| "github.com/crowdmob/goamz/elasticache" | |
| ) |
This file contains hidden or 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
| diff --git a/dynamodb/scan.go b/dynamodb/scan.go | |
| index 8e08eb9..3c46933 100644 | |
| --- a/dynamodb/scan.go | |
| +++ b/dynamodb/scan.go | |
| @@ -109,6 +109,48 @@ func (t *Table) Scan(attributeComparisons []AttributeComparison) ([]map[string]* | |
| return t.FetchResults(q) | |
| } | |
| +func (t *Table) CountScan() (int64, error) { | |
| + var lastEvaluatedKey *Key |