Skip to content

Instantly share code, notes, and snippets.

Justin Treher jtreher

  • WEBstaurantstore.com
Block or report user

Report or block jtreher

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
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*))"
}
@jtreher
jtreher / gist:5577747
Last active Dec 17, 2015
Demonstrate suggest issue
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
You can’t perform that action at this time.