Skip to content

Instantly share code, notes, and snippets.

{"uuid":"6174c38a-fdac-11ee-8a4c-ab4e5d6fca92","page":{"id":264450033,"data":{"appState":"[\"~#iR\",[\"^ \",\"n\",\"appTemplate\",\"v\",[\"^ \",\"isFetching\",false,\"plugins\",[\"~#iOM\",[\"add_player_button\",[\"^0\",[\"^ \",\"n\",\"pluginTemplate\",\"v\",[\"^ \",\"id\",\"add_player_button\",\"uuid\",\"71e92930-943b-4b6b-94c9-f9b74f3f4ae5\",\"type\",\"widget\",\"subtype\",\"ButtonWidget2\",\"namespace\",null,\"resourceName\",null,\"resourceDisplayName\",null,\"template\",[\"^3\",[\"heightType\",\"fixed\",\"horizontalAlign\",\"stretch\",\"clickable\",false,\"iconAfter\",\"\",\"submitTargetId\",null,\"hidden\",false,\"text\",\"Outside Module\",\"margin\",\"4px 8px\",\"showInEditor\",false,\"tooltipText\",\"\",\"styleVariant\",\"solid\",\"submit\",false,\"iconBefore\",\"\",\"events\",[\"~#iL\",[[\"^3\",[\"event\",\"click\",\"type\",\"datasource\",\"method\",\"trigger\",\"pluginId\",\"query1\",\"targetId\",null,\"params\",[\"^3\",[\"options\",[\"^ \",\"onSuccess\",null,\"onFailure\",null,\"additionalScope\",nul
I want to conditionally have a WHERE clause depending on a choice a user makes in the UI.
When the boolean value is true, I want the where condition:
SELECT *
FROM table
WHERE boolean_value = 1
When the boolean value is false, I want no where condition:
'use strict';
var Alexa = require('alexa-sdk');
var AWS = require('aws-sdk');
var https = require('https');
var util = require('util');
const SNS = new AWS.SNS();
console.log("SNS INITIALIZED: " + JSON.stringify(SNS));
var APP_ID = "amzn1.ask.skill.adc621ec-b41c-40ba-bc05-489b10ba392f"; // TODO replace with your app ID (OPTIONAL).
@jeffblankenburg
jeffblankenburg / gist:0f2c1ae5a438086f1c5e9aa58413a7e1
Created December 11, 2020 15:55
List of Polly Voices in a usable format
Aditi
Amy
Astrid
Bianca
Brian
Camila
Carla
Carmen
Celine
Chantal
@jeffblankenburg
jeffblankenburg / gist:3743242d0b00ca99add5951b7af5ee52
Created November 24, 2020 16:43
2020 Topps Update Have List
[Card Number] [Player(s)] [Team] [Available Quantity]
U-3 Trea Turner, Wilmer Difo Washington Nationals 1
U-4 Mike Trout Los Angeles Angels 3
U-5 Starlin Castro Washington Nationals 3
U-9 Ken Griffey Jr. Seattle Mariners 1
U-10 Anthony Alford Toronto Blue Jays 2
U-11 Chris Owings Colorado Rockies 1
U-12 Aaron Bummer Chicago White Sox 1
U-13 Jose Martinez Tampa Bay Rays 1
@jeffblankenburg
jeffblankenburg / gist:d5329e42ace91f7cc079dcccc2784991
Created November 24, 2020 16:41
2020 Topps Update Need List
U-1 Bo Bichette Toronto Blue Jays
U-22 Cody Stashak Minnesota Twins
U-31 Curt Casali Cincinnati Reds
U-36 Robinson Cano New York Yankees
U-52 Kyle Higashioka New York Yankees
U-62 David Ortiz Boston Red Sox
U-64 Alex Bregman Houston Astros
U-69 Derek Holland Pittsburgh Pirates
U-71 Jesus Aguilar Miami Marlins
U-76 Edwin Encarnacion Chicago White Sox
@jeffblankenburg
jeffblankenburg / gist:47f4433f601447fe588f0e3a88b3fb58
Last active November 24, 2020 16:38
2020 Topps Fire Base Set Have List
[Card Number] [Player Name] [Player Team] [Quantity]
1 Lorenzo Cain Milwaukee Brewers 2
4 Luis Severino New York Yankees 2
7 Brandon Crawford San Francisco Giants 2
9 Blake Snell Tampa Bay Rays 2
15 D.J. LeMahieu New York Yankees 2
16 Jorge Alfaro Miami Marlins 1
20 Javier Baez Chicago Cubs 2
22 Trey Mancini Baltimore Orioles 2
@jeffblankenburg
jeffblankenburg / gist:99517d9851ee0f9ac1cb6bdf2f5f193b
Created November 10, 2020 20:46
2020 Allen & Ginter Base Set Duplicates List
[Card Number] [Player Name] [Player Team] [Quantity]
4 Larry Doby Cleveland Indians 4
7 Tim Lincecum San Francisco Giants 2
9 Rhys Hoskins Philadelphia Phillies 3
13 Aaron Judge New York Yankees 5
15 Kris Bryant Chicago Cubs 3
16 Bryce Harper Washington Nationals 2
17 Ken Griffey Jr. Seattle Mariners 2
22 Eddie Mathews Milwaukee Braves 2
@jeffblankenburg
jeffblankenburg / gist:7c17533fd7b34f1c83c0e6f3bdd20d15
Created November 10, 2020 20:43
2020 Allen & Ginter Base Set Needs List
1 Tom Glavine Atlanta Braves
2 Randy Johnson Arizona Diamondbacks
8 Jeff Bagwell Houston Astros
10 Rod Carew California Angels
12 George Springer Houston Astros
18 George Brett Kansas City Royals
25 Carl Yastrzemski Boston Red Sox
28 Juan Soto Washington Nationals
29 Willie Mays San Francisco Giants
35 Rickey Henderson Oakland Athletics
@jeffblankenburg
jeffblankenburg / gist:2a483e707330b5efed94b128c221ed5a
Last active November 21, 2020 13:57
2020 Topps Fire Base Set Needs List
11 Tim Lincecum San Francisco Giants
12 Eric Hosmer San Diego Padres
19 Kyle Freeland Colorado Rockies
26 Michael Kopech Chicago White Sox
27 Clayton Kershaw Los Angeles Dodgers
32 Carlos Correa Houston Astros
33 Aaron Judge New York Yankees
34 Trevor Story Colorado Rockies
38 Gerrit Cole New York Yankees
43 Matt Kemp Miami Marlins