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
<?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> |
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 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; |
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
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; | |
} |
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
[{"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"]]}] |
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
[{"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":[]}] |
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
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') |
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
$ 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". | |
] |
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 argparse, urllib2, urllib, base64, json, os.path | |
def store_documents(result, output_dir, pretty=False): | |
# create directory if it doesn't exist | |
if not os.path.exists(output_dir): | |
os.makedirs(output_dir) | |
if 'total_rows' in result and result['total_rows'] > 0: | |
for doc in result['rows']: |
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
<div class="main"> | |
<div class="navbar"> | |
Navbar | |
</div> | |
<div class="content"> | |
<div class="grid"> | |
<div class="item">1</div> | |
<div class="item">2</div> | |
<div class="item">3</div> | |
<div class="item">4</div> |
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
<div class="main"> | |
<div class="navbar"> | |
<ul> | |
<li>Menu 1</li> | |
<li>Menu 2</li> | |
<li>Menu 3</li> | |
</ul> | |
</div> | |
<div class="content"> | |
<div class="grid"> |