Skip to content

Instantly share code, notes, and snippets.

Avatar
🚀

Taylor Beseda tbeseda

🚀
View GitHub Profile
View gist:71ecc7cc86dea12508080b279f0d69d7
BEGIN MESSAGE.
WeFUkTWPAZhsjin wU2caGSa28CMuiV 8QSAozTzd6qds7Q IkI7hFsQUkddZVA
jCFMT2fiwBR9902 msckGKe2q17TCKq 6Xr2MZHgg4NizN6 ArXZTHJ1Jm91lsq
OT0FUZD6dBx2oCj AYMCxCKf7mgoV7v B8bJ3yYcDhuUvwo mKo7W5PR5KoscdY
gCB227ijRIdAlmX cOiaWiDyCmxtLST YM5b82IP.
END MESSAGE.
@tbeseda
tbeseda / issue.md
Created Oct 9, 2015
Trouble with JAWS Quick Start Deploy, AccessDeniedException during endpoint deploy
View issue.md

Following the Quick Start in the Readme, an AccessDeniedException error is reported during the endpoint deployment.

$ jaws dash

JAWS: Dashboard for project "jaws-test2"
 -------------------------------------------
 Project Summary
 -------------------------------------------
    Stages: 
@tbeseda
tbeseda / IntentSchema.json
Created Jun 28, 2015
Ask Alexa about Secrets in Hearthstone
View IntentSchema.json
{
"intents": [
{
"intent": "PlayerClassSecrets",
"slots": [
{
"name": "PlayerClass",
"type": "LITERAL"
}
]
View keybase.md

Keybase proof

I hereby claim:

  • I am tbeseda on github.
  • I am tbeseda (https://keybase.io/tbeseda) on keybase.
  • I have a public key whose fingerprint is 880A 07B8 0FB5 375B 00B3 9C87 D1F7 E2C3 3C5E C513

To claim this, I am signing this object:

View _SmartThings-Dweet-Freeboard.md

Visualize data from a SmartThings sensor with Dweet and Freeboard

My SmartThings multisensor is a great little piece of technology. It reports, in real time, motion, temperature, and open/close state of my back door. The iOS app is slick, too, but I wanted a way to view it from my computer and have access to historical data.
Enter Dweet and Freeboard from Buglabs.

The SmartThings SmartApp and Dweet

There's actually no setup required on Dweet (but be sure to check out their nifty demo). It just starts eating data and making it available for use via HTTP/JSON!

@tbeseda
tbeseda / commit-msg
Created Mar 24, 2014
Append current Rdio track to commit message
View commit-msg
#!/usr/bin/ruby
message_file = ARGV[0]
def app_is_running?(app_name)
`ps aux` =~ /#{app_name}/ ? true : false
end
while true
if app_is_running?('Rdio.app')
@tbeseda
tbeseda / spreadsheet_coordinates.coffee
Created Oct 3, 2013
Given a number of rows and columns generate spreadsheet style coordinates. i.e. [A1, B1, C1...BJ9, BK9, BL9]
View spreadsheet_coordinates.coffee
generate_coordinates = (rows, columns) ->
generated_coordinates = []
alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'.split('')
for i in [1..rows]
for n in [0..(columns-1)]
a = if n < 26 then alphabet[n] else alphabet[Math.floor(n/26)-1] + alphabet[n%26]
generated_coordinates.push(a + i)
coordinates = generate_coordinates(8, 63)
@tbeseda
tbeseda / Logger.js
Last active Dec 19, 2015
The utility I use to insert data into a Google Spreadsheet with Google Apps Script
View Logger.js
SheetLogger = function() {}
SheetLogger.prototype = {
set_cell: function(sheet_name, range, value) {
var sheet = SpreadsheetApp.getActive().getSheetByName(sheet_name);
sheet.getRange(range).setValue(value);
},
append_row_to_sheet: function(sheet_name, value) {
var sheet = SpreadsheetApp.getActive().getSheetByName(sheet_name);
@tbeseda
tbeseda / Github.js
Created Jun 27, 2013
Grab some data from Github with Google Apps Scripts
View Github.js
Github = function(token) {
this.token = token;
this.api_url = 'https://api.github.com/'
}
Github.prototype = {
parseISO8601: function(str) {
// http://anentropic.wordpress.com/2009/06/25/javascript-iso8601-parser-and-pretty-dates/
// we assume str is a UTC date ending in 'Z'
@tbeseda
tbeseda / Ducksboard.js
Last active Dec 19, 2015
Update Ducksboard slots from a Google Apps Script.
View Ducksboard.js
Ducksboard = function(token) {
this.token = token;
this.api_url = 'https://push.ducksboard.com/v/'
}
Ducksboard.prototype = {
send: function(endpoint, payload) {
var options = {
method: 'post',
headers: {