Skip to content

Instantly share code, notes, and snippets.

View lgfa29's full-sized avatar

Luiz Aoqui lgfa29

  • Toronto, ON, Canada
View GitHub Profile
$ cf push
Using manifest file /Users/Zinho/Projects/ibm/kiwi/cant-get-up/manifest.yml
Updating app luiz-test in org laoqui@ca.ibm.com / space dev as laoqui@ca.ibm.com...
OK
Uploading luiz-test...
Uploading from: /Users/Zinho/Projects/ibm/kiwi/cant-get-up
13K, 10 files
OK
2014-04-01T22:03:42.24-0400 [API] OUT Updated app with guid d038b112-2126-4e3a-a2e7-fdcec0258f0d
2014-04-01T22:03:55.68-0400 [API] OUT Updated app with guid d038b112-2126-4e3a-a2e7-fdcec0258f0d
2014-04-01T22:03:57.64-0400 [DEA] OUT Got staging request for app with id d038b112-2126-4e3a-a2e7-fdcec0258f0d
2014-04-01T22:03:59.08-0400 [STG] OUT -----> Downloaded app package (8.0K)
2014-04-01T22:03:59.30-0400 [STG] OUT -----> Downloaded app buildpack cache (4.0K)
2014-04-01T22:03:59.49-0400 [API] OUT Updated app with guid d038b112-2126-4e3a-a2e7-fdcec0258f0d
2014-04-01T22:04:41.04-0400 [STG] OUT WARNING: No version of Node.js specified in package.json, see:
2014-04-01T22:04:41.04-0400 [STG] OUT https://devcenter.heroku.com/articles/nodejs-versions
2014-04-01T22:04:41.04-0400 [STG] OUT Using Node.js version: 0.10.21
2014-04-01T22:04:41.04-0400 [STG] OUT Using npm version: 1.2.30
0 - Additional Products
707 - 600 GB iSCSI SAN Snapshot Space
4426 - Citrix NetScaler VPX 10.1 200Mbps Platinum
4513 - Dedicated Load Balancer with High Availability and SSL - 150,000 Connections
4612 - 6500 GB iSCSI SAN Replication
4184 - 750GB EVault Disk to Disk Enterprise Backup
4427 - Citrix NetScaler VPX 10.1 200Mbps Standard
902 - CDN Pay as You Go Storage
4028 - .com - 9 year
703 - 350 GB iSCSI SAN Snapshot Space
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Say voice="alice" language="ru-RU">Help me, I have fallen and I can't get up.</Say>
</Response>
package com.example.mylist;
import android.content.Context;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
void DataCollector::onPose(myo::Myo* myo, uint64_t timestamp, myo::Pose pose) {
currentPose = pose;
char doc[1000];
const char *docFormat = "{ \"pose\": \"%s\", \"ts\": \"%" PRIu64 "\" }";
snprintf(doc, sizeof(doc), docFormat, (char *)pose.toString().c_str(), timestamp);
std::cout << doc;
}
[{"id":"ec716b40.138e98","type":"template","name":"","template":"<form method='POST' action='/say_hello'>\n\t<label>Name:</label>\n\t<input type='text' name='name'>\n\t<input type='submit'>\n</form>","x":423,"y":176,"z":"815e33fc.7ea1d","wires":[["21f01e13.de0fe2"]]}]
[{"id":"303a3236.cfc5ce","type":"http in","name":"","url":"/say_hello","method":"post","x":256,"y":124,"z":"815e33fc.7ea1d","wires":[["800c1579.7ff3e8"]]},{"id":"800c1579.7ff3e8","type":"template","name":"","template":"Hello {{payload.name}}!","x":425,"y":124,"z":"815e33fc.7ea1d","wires":[["e5fefaf4.1a0108"]]},{"id":"e5fefaf4.1a0108","type":"http response","name":"","x":562,"y":124,"z":"815e33fc.7ea1d","wires":[]},{"id":"baf13a30.450ec8","type":"http in","name":"","url":"/form","method":"get","x":275,"y":176,"z":"815e33fc.7ea1d","wires":[["ec716b40.138e98"]]},{"id":"ec716b40.138e98","type":"template","name":"","template":"<form method='POST' action='/say_hello'>\n\t<label>Name:</label>\n\t<input type='text' name='name'>\n\t<input type='submit'>\n</form>","x":423,"y":176,"z":"815e33fc.7ea1d","wires":[["21f01e13.de0fe2"]]},{"id":"21f01e13.de0fe2","type":"http response","name":"","x":564,"y":176,"z":"815e33fc.7ea1d","wires":[]}]
doc = db.document('MyPlan')
resp = doc.get()
my_plan = {
'_id': 'MyPlan',
'key': 'value2'
}
if (resp.status_code == 200):
my_plan['_rev'] = resp.json().get('_rev')
@lgfa29
lgfa29 / result
Last active August 29, 2015 14:16
$ node
> .load test.js
...
> connection opened!
[ { ... } ]
done
> .load test.js
...
> { [Error: [IBM][CLI Driver] SQL1776N The command cannot be issued on an HADR database. Reason code = "1".
]