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
fatal error: runtime: out of memory | |
runtime stack: | |
runtime.throw(0x92bbf3, 0x16) | |
/usr/go/src/runtime/panic.go:596 +0x95 | |
runtime.sysMap(0xc460770000, 0x40580000, 0x0, 0xd75b98) | |
/usr/go/src/runtime/mem_linux.go:216 +0x1d0 | |
runtime.(*mheap).sysAlloc(0xd5c720, 0x40580000, 0x7f77c7ffece0) | |
/usr/go/src/runtime/malloc.go:440 +0x374 | |
runtime.(*mheap).grow(0xd5c720, 0x202bc, 0x0) |
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
fatal error: runtime: out of memory | |
runtime stack: | |
runtime.throw(0x92bbf3, 0x16) | |
/usr/go/src/runtime/panic.go:596 +0x95 | |
runtime.sysMap(0xc460770000, 0x40580000, 0x0, 0xd75b98) | |
/usr/go/src/runtime/mem_linux.go:216 +0x1d0 | |
runtime.(*mheap).sysAlloc(0xd5c720, 0x40580000, 0x433572) | |
/usr/go/src/runtime/malloc.go:440 +0x374 | |
runtime.(*mheap).grow(0xd5c720, 0x202bc, 0x0) |
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 test; | |
import java.io.BufferedReader; | |
import java.io.FileReader; | |
import java.util.PriorityQueue; | |
public class TopN { | |
public static void GetNum(String fileName, int N) { | |
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
<script src="https://cdnjs.cloudflare.com/ajax/libs/appbase-js/0.11.1/appbase.min.js" type="text/javascript"> | |
</script> | |
<form class="search-container"> | |
<input type="text" id="search-bar"> | |
<input type="text" id="search-bar-2" placeholder="Enter City or Country" onkeyup="handleInput()"> | |
<a href="#"><img class="search-icon" src="http://www.endlessicons.com/wp-content/uploads/2012/12/search-icon.png"></a> | |
</form> | |
<ul id="suggestions"></ul> |
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
docker run -d -e TRANSPORTPIPE="Source({type: \"kinesis\", awsaccesskey: \"XXX\", awssecretkey: \"XXX\", streamname: \"test\"}) | |
.transform(\"module.exports = function(doc) { console.log('transformer: ' + JSON.stringify(doc)) return doc}\") | |
.save({type: \"appbase\", username: \"XXX\", password: \"XXX\", namespace: \"test.appbase_test\"})" | |
rishiloyola/streaming-transporter |
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
docker run -d -e TRANSPORTPIPE="Source({type: \"kinesis\", awsaccesskey: \"XXX\", awssecretkey: \"XXX\", streamname: \"appbase_test\"}).save({type: \"appbase\", username: \"XXX\", password: \"XXX\", namespace: \"test_123.appbase_test\"})" rishiloyola/streaming-transporter |
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 (a *Appbase) commitBulk(commitNow bool) { | |
if a.bulkBodySize >= a.bulkSize || a.bulkService.NumberOfActions() >= APPBASE_BUFFER_LEN || commitNow { | |
a.count += a.bulkService.NumberOfActions() | |
_, err := a.bulkService.Do() | |
if err != nil { | |
a.pipe.Err <- NewError(CRITICAL, a.path, fmt.Sprintf("appbase error (%s)", err), nil) | |
a.pipe.Stop() | |
} | |
a.bulkBodySize = 0 |
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 pipeline = Source({name:"kinesisstream"}) | |
pipeline = pipeline.transform({filename: "transformers/json_converter.js", namespace: "test.appbase_test", debug: true}) | |
pipeline.save({name:"appbaseapp", namespace:"test.appbase_test", debug:true}); |
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
import ( | |
kn "github.com/sendgridlabs/go-kinesis" | |
) | |
func putRecords(shardId string, streamName string) { | |
args := kn.NewArgs() | |
args.Add("StreamName", streamName) | |
args.Add("ShardId", shardId) | |
resp10, _ := kn.KinesisClient.GetShardIterator(args) | |
shardIterator := resp10.ShardIterator |
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
kinesisstream: | |
type: kinesis | |
awsaccesskey: XXXX | |
awssecretkey: XXXX | |
awsregionname: us-east-1 | |
streamname: appbase_test | |
sharditeratortype: TRIM_HORIZON | |
appbaseapp: | |
type: appbase | |
username: XXXX |