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
function output( text, context ) { | |
var response = { | |
outputSpeech: { | |
type: "PlainText", | |
text: text | |
}, | |
card: { | |
type: "Simple", | |
title: "Thornton Windchill", |
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
<ion-view title="Skeeter" id="page1" style="background-color:#036D70;"> | |
<ion-content padding="true" class="has-header"> | |
<div> | |
<img src="img/HUInigOUSSylDwF0M3qq_mrt.jpg" style="display: block; width: 100%; height: auto; margin-left: auto; margin-right: auto;"> | |
</div> | |
<div> | |
<iframe width="0" height="0" border="0" name="dummyframe" id="dummyframe"></iframe> | |
<form action="https://api.particle.io/v1/devices/yourdevicehere/tone?access_token=yourtokengoeshere" method="POST" target="dummyframe"> | |
<button class="button button-balanced button-block" name="17khz" value="17">Turn on the 17kHz Tone</button> |
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
#define TRACE_DELAY 15000 // trace delay in uS. making this longer will | |
// result in a straighter drawing, but slower | |
// refresh rate. making it too short will result | |
// in an angular blob. | |
#define NUM_POINTS 19 // our tree is defined by 19 x/y coord. pairs | |
#define X D0 // attach scope channel 1 (X) | |
#define Y D1 // attach scope channel 2 (y) |
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
import PyPDF2 | |
def getAttachments(reader): | |
""" | |
Retrieves the file attachments of the PDF as a dictionary of file names | |
and the file data as a bytestring. | |
:return: dictionary of filenames and bytestrings | |
""" | |
catalog = reader.trailer["/Root"] |
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
// Correct Horse Battery Staple | |
// An implementation of the XKCD password algorithm https://xkcd.com/936/ | |
// The idea behind this generator is that randomized passwords are easy to guess | |
// and difficult to remember, while a password composed of four english words is | |
// both easy to remember and difficult to guess. This capsule adds the ability | |
// to generate such passwords to Bixby. | |
// Main entry point | |
function generate(numWords) { |
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
endpoints { | |
authorization { | |
none | |
} | |
action-endpoints { | |
action-endpoint (generate) { | |
accepted-inputs (numWords) | |
local-endpoint ("generator.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
action (generate) { | |
collect{ | |
input (numWords) { | |
type (NumWords) | |
min (Required) | |
max (One) | |
// add a default value of four words, like the comic | |
default-init { | |
intent { | |
goal {NumWords} |
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
integer (NumWords) { | |
description (The number of number of words to use in the password.) | |
} |
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
structure (PasswordResult) { | |
description (The resulting password from the generate action.) | |
property (Password) { | |
description (The resulting password string from the generator.) | |
type (Password) | |
min (Required) | |
max (One) | |
} | |
property (length) { | |
description (The number of words used.) |
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
dialog (Concept) { | |
match { | |
// Look for this type | |
NumWords | |
} | |
// Use the following template text with this type | |
template("Number of Words") | |
} |
OlderNewer