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
const getDayOfWeek = dayNumber => | |
dayNumber === 0 | |
? "Sunday" | |
: dayNumber === 1 | |
? "Monday" | |
: dayNumber === 2 | |
? "Tuesday" | |
: dayNumber === 3 | |
? "Wednesday" | |
: dayNumber === 4 |
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
ouro@ouroboros:~/src/EventStoreDocs$ curl -i http://127.0.0.1:2113/streams/newstream/event/1?format=json | |
HTTP/1.1 200 OK | |
Access-Control-Allow-Methods: GET | |
Content-Type: application/json | |
Server: Mono-HTTPAPI/1.0 | |
Date: Thu, 13 Sep 2012 10:57:26 GMT | |
Content-Length: 208 | |
Keep-Alive: timeout=15,max=100 | |
{ |
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
ouro@ouroboros$ curl -i http://127.0.0.1:2113/streams/newstream/event/1 -H "Accept: text/xml" | |
HTTP/1.1 200 OK | |
Access-Control-Allow-Methods: GET | |
Content-Type: text/xml | |
Server: Mono-HTTPAPI/1.0 | |
Date: Thu, 13 Sep 2012 10:55:13 GMT | |
Content-Length: 312 | |
Keep-Alive: timeout=15,max=100 | |
<?xml version="1.0" encoding="UTF-8"?> |
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
/// Requirements: ------------------------------------------------------------- | |
/// npm install node-expat temp | |
var child_process = require("child_process"); | |
var expat = require("node-expat"); | |
var fs = require("fs"); | |
var path = require("path"); | |
var temp = require("temp"); |
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
{ | |
"index": { | |
"mappings": { | |
"item": { | |
"properties": { | |
"name": { | |
"type": "string", | |
"analyzer": "text_lt" | |
} | |
} |