View gist:ebb22dea21486cf9ad38529233a7db4d
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
index.searchForFacetValues({ | |
query: "twilio", | |
facetName: "Title", | |
facetQuery: "director" | |
}) |
View Simple Search Record
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
{ | |
"Name": "Jeff Lawson", | |
"Title": "CEO", | |
"Company": "Twilio Inc", | |
"Location": "San Francisco" | |
} |
View Search for Facet Values
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
index.searchForFacetValues({ | |
query: "twilio", | |
facetName: "Title", | |
facetQuery: "director" | |
}) |
View query_example.js
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
index.searchForFacetValues({ | |
query: "twilio", | |
facetName: "Title", | |
facetQuery: "director" | |
}) |
View computing the sum of all elements
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
int sum = 0 | |
for i in my_array { | |
sum += i | |
} | |
//sum contains the sum of all elements |
View alexa_sdk_exports.js
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
exports.handler = function(event, context, callback) { | |
var alexa = Alexa.handler(event, context); | |
alexa.appId = appId; | |
alexa.dynamoDBTableName = dynamoDBTableName; | |
alexa.registerHandlers(newSessionHandlers, getRulesHandlers); | |
alexa.execute(); | |
} |
View PerformantAnimations1.css
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
.box { | |
left: 10px; | |
position: absolute; | |
transition: .2s; | |
&.active { | |
left: 0px; | |
} | |
} |
View PerformantAnimations2.css
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
.box { | |
transform: translateX(10px); | |
position: absolute; | |
transition: .2s; | |
&.active { | |
transform: translateX(0px); | |
} | |
} |
View PerformantAnimations3.css
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
.menu { | |
opacity: 1; | |
transition: .2s; | |
} | |
.menu.closed { | |
opacity: 0; | |
pointer-events: none; | |
} |
View PerformantAnimations4.css
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
.box { | |
box-shadow: 1px 1px 1px rgba(0,0,0,.5); | |
transition: .2s; | |
} | |
.active { | |
box-shadow: 1px 1px 1px rgba(0,0,0,1); | |
} |
OlderNewer