Code originally from node-blocked and browser-process-hrtime.
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 WebSocket = require('ws') | |
var url = "ws://" + "localhost:3000" + "/signalk/stream/v1?stream=delta"; | |
var count = 0; | |
var connection = new WebSocket(url); | |
connection.onopen = function(msg) { | |
console.log("open") | |
var sub = '{"context":"vessels.self","subscribe":[{"path":"*"}]}'; | |
connection.send(sub); |
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 BaconValue = React.createClass({ | |
getInitialState: function() { | |
return {value: '-'}; | |
}, | |
render: function() { | |
return ( | |
<div>{this.state.value}</div> | |
) | |
}, | |
componentDidMount: function() { |
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
//java, the main part of my processor. | |
/* | |
* { | |
"timestamp": "2013-10-08-15:47:28.264", | |
"prio": "2", | |
"src": "2", | |
"dst": "255", | |
"pgn": "129025", | |
"description": "Position, Rapid Update", |
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
{ | |
"vessel": { | |
"name": "your boat name", | |
"uuid": "000000000" | |
}, | |
"pipedProviders": [{ | |
"id": "actisense", | |
"pipeElements": [{ | |
"type": "providers/execute", | |
"options": { |
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
{ | |
"vessel": { | |
"name": "your boat name", | |
"uuid": "000000000" | |
}, | |
"pipedProviders": [{ | |
"id": "actisense", | |
"pipeElements": [{ | |
"type": "providers/execute", |
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
"elasticsearch[Stem Cell][generic][T#8]" daemon prio=10 tid=0x00007f590800b000 nid=0x5ce0 waiting for monitor entry [0x00007f59610ba000] | |
java.lang.Thread.State: BLOCKED (on object monitor) | |
at java.lang.Throwable.fillInStackTrace(Native Method) | |
at java.lang.Throwable.fillInStackTrace(Throwable.java:783) | |
- locked <0x00000000e07f1548> (a org.elasticsearch.transport.NodeNotConnectedException) | |
at java.lang.Throwable.<init>(Throwable.java:287) | |
at java.lang.Exception.<init>(Exception.java:84) | |
at java.lang.RuntimeException.<init>(RuntimeException.java:80) | |
at org.elasticsearch.ElasticSearchException.<init>(ElasticSearchException.java:46) | |
at org.elasticsearch.transport.TransportException.<init>(TransportException.java:34) |
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
cat | sed 's/\<\([a-z]*\)/append("\1")/' | sed 's/ \([a-z]*\)="/.attr("\1","/g' | sed 's/"\.att/"\)\.att/g' |
NewerOlder