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
#include <string.h> | |
#include <stdio.h> | |
#include <iostream> | |
#include <fstream> | |
#include <vector> | |
#include "rapidxml-1.13/rapidxml.hpp" | |
using namespace rapidxml; | |
using namespace std; |
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
curl -XPUT 'http://localhost:9200/_bulk?pretty' -d ' | |
{ "index" : { "_index" : "test", "_type" : "publication", "_id" : "1" } } | |
{ "title" : "The NoSQL database glut", "journal" : "2", "author": [{"title": "August S"}, {"title": "Weiss P L"}] } | |
{ "index" : { "_index" : "test", "_type" : "publication", "_id" : "2" } } | |
{ "title" : "Graph Databases Seen Connecting the Dots", "journal" : "1", "author": [{"title": "Weiss S"}] } | |
' | |
curl -XGET 'http://localhost:9200/test/_search?pretty' -d '{"query": {"match": {"author.title": {"query": "weiss s", "operator": "and"}}}}' |
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
# curl -XDELETE 'http://localhost:9200/test' | |
curl -XPUT 'http://localhost:9200/test' -d ' | |
{ | |
"analysis": { | |
"char_filter": { | |
"my_charfilter": { | |
"type": "mapping", | |
"mappings": ["Ё=>Е", "ё=>е"] | |
} |
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
/* | |
Youtube playback rate hotkeys: | |
Ctrl + UP | |
Ctrl + DONW | |
*/ | |
function createPlaybackRateDisplay() { | |
var elem = document.createElement('span'); | |
elem.style = 'position: fixed; left: 0; top: 0; z-index: 10000; background: #000; color: #fff; font-size: 32px;' | |
elem.setAttribute('id', 'paylbackRateDisplay') |
OlderNewer