Make a new directory and put the run.js script into it.
Run npm in that same directory to install the slack web-api module:
npm install @slack/web-api
If I create a table:
CREATE TABLE test.Test (
id int not null primary key auto_increment,
a TINYINT(1) not null,
b TINYINT(1),
c TINYINT(2) not null,
d TINYINT(2)
);| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "time" | |
| "github.com/micro/go-micro" | |
| "github.com/micro/protobuf/ptypes/wrappers" | |
| ) |
| --- core/vm/interpreter.go (revision 744428cb03ea8de8f219708f57d2e197acb6689b) | |
| +++ core/vm/interpreter.go (date 1524449729000) | |
| @@ -102,7 +102,7 @@ | |
| // | |
| // It's important to note that any errors returned by the interpreter should be | |
| // considered a revert-and-consume-all-gas operation except for | |
| -// errExecutionReverted which means revert-and-keep-gas-left. | |
| +// ErrExecutionReverted which means revert-and-keep-gas-left. | |
| func (in *Interpreter) Run(contract *Contract, input []byte) (ret []byte, err error) { | |
| // Increment the call depth which is restricted to 1024 |
| core@ piano~$ curl - L http: //10.36.5.64:4001/v2/stats/leader | |
| { | |
| "leader": "visual", | |
| "followers": { | |
| "front": { | |
| "latency": { | |
| "current": 0.460931, | |
| "average": 0.5663465316657799, | |
| "standardDeviation": 0.547781903505012, | |
| "minimum": 0.18624, |
| // Weather update client | |
| // Connects SUB socket to tcp://localhost:5556 | |
| #include "zhelpers.h" | |
| int main (int argc, char *argv []) | |
| { | |
| // Socket to talk to server | |
| printf ("Collecting updates from weather server…\n"); | |
| void *context = zmq_ctx_new (); |
| <?php | |
| /* | |
| * Weather update client | |
| * Connects SUB socket to tcp://localhost:5556 | |
| * Collects weather updates and finds avg temp in zipcode | |
| * @author Ian Barber <ian(dot)barber(at)gmail(dot)com> | |
| */ | |
| $context = new ZMQContext(); |
| <?php | |
| $retry = 0; | |
| $m = false; | |
| // Repeat while no connection and haven't tried 3 times | |
| while (!$m and $retry < 3) { | |
| try { | |
| // Connect to replica set | |
| $m = new MongoClient("mongodb://10.0.1.100,10.0.1.101,10.0.5.1", [ |
| !function() { | |
| var storage = {}; | |
| // Install a ghost listener so we can spy on the client headers. | |
| function install_spy() { | |
| // Surplant the current request and upgrade listeners. | |
| _.each(['request', 'upgrade'], function (event) { | |
| var app = __meteor_bootstrap__.app; | |
| var old_listeners = app.listeners(event).slice(0); | |
| app.removeAllListeners(event); |
| --- spiderable.js.orig 2012-11-18 01:14:08.000000000 +1000 | |
| +++ spiderable.js 2012-11-18 01:16:08.000000000 +1000 | |
| @@ -14,10 +14,11 @@ | |
| var preQuery = req.url.substr(0, idx); | |
| var queryStr = req.url.substr(idx + 1); | |
| var parsed = querystring.parse(queryStr); | |
| + var fragment = '#!' + parsed['_escaped_fragment_']; | |
| delete parsed['_escaped_fragment_']; | |
| var newQuery = querystring.stringify(parsed); | |
| var newPath = preQuery + (newQuery ? "?" + newQuery : ""); |