Instantly share code, notes, and snippets.

View gist:8c35afe7be83f59954fe
function test1( numeric foo ){
return 0 && isNull( foo ) ? true : foo > 0;
}
function test2( numeric foo ){
return 0 && ( isNull( foo ) ? true : foo > 0 );
}
writeOutput( "Return val is: " & test1() );
writeOutput('<br>');
View gist:40131798ee84df6259b4
SELECT 1 AS ID
INTO #left
UNION
SELECT 2
UNION
SELECT 3
UNION
SELECT 4;
View gist:6766911
{
"settings": {
"_default_" : {},
"analysis": {
"filter": {
"sample":{
"type":"pattern_capture",
"pattern":"(([a-z]+)(\\d*))"
}
View gist:5577747
curl -XPOST 192.168.1.2:9200/test -d'{
"settings": {
"number_of_shards": 1,
"number_of_replicas": 0,
"analysis": {
"filter":{
"shingler":{
"type":"shingle",
"max_shingle_size":3,
"min_shingle_sizes":2