Skip to content

Instantly share code, notes, and snippets.

View justinm's full-sized avatar

Justin McCormick justinm

View GitHub Profile
@justinm
justinm / cloudformation-template.yaml
Last active October 22, 2023 08:08 — forked from matt2005/lambda_function.py
Alexa Smart Home Skill Adapter for Home Assistant
# To use this template, see the example CLI command below or use the AWS CloudFormation console at https://console.aws.amazon.com/cloudformation/home.
# aws cloudformation create-stack --stack-name homeassistant-skill --template-body file://lambda.yaml
# --parameters ParameterKey=BaseUrl,ParameterValue=[XXX] ParameterKey=SkillId,ParameterValue=[XXX] --capabilities CAPABILITY_IAM
AWSTemplateFormatVersion: '2010-09-09'
Metadata:
Copyright: Justin McCormick <me@justinmccormick.com>
License: Apache-2.0
Description: |
This template creates a Lambda function that acts as a proxy between Alexa and Home Assistant.
The Lambda was sourced from https://gist.github.com/matt2005/744b5ef548cc13d88d0569eea65f5e5b.
it "filters out projects based on search terms" do
get :index, { q: {category_cont: "clothing"}}
assigns(:projects).should_not include(project)
end
@justinm
justinm / ad_dialogs.tpl.php
Created September 8, 2011 06:01 — forked from justinpeterman/ad_dialogs.tpl.php
global scope variable
<?php
if(!empty($social_dialog)): //Step 4: Ok, was anything generated during that pages/element loop?
echo $social_dialog; //print out the html string generated if so...
endif;
?>