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 <iostream> | |
#include <sox.h> | |
#include <assert.h> | |
#include <cstring> | |
#include <vector> | |
using namespace std; | |
int main() { |
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_es_index" && echo | |
curl -XPUT "http://localhost:9200/test_es_index" -d ' { | |
"settings" : { | |
"number_of_shards": 1, | |
"number_of_replicas": 0, | |
"analysis" : { |
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
# -*- coding: utf8 -*- | |
def check_if_tag_present_strict(tag, chk_list): | |
if tag in chk_list: | |
return True | |
return False | |
def partial_match(tag1,tag2): | |
str_tag_1 = tag1.split(" ") |
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
public class QueueTest { | |
public static void main( String[] args ) | |
{ | |
ProducerThread producer = new ProducerThread(); | |
ConsumerClass consumer = new ConsumerClass( producer ); | |
Thread csThread = new Thread( consumer ); | |
csThread.setPriority(Thread.MAX_PRIORITY); | |
Thread prodThread = new Thread( producer ); |