This file contains hidden or 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
| blueprint: | |
| name: "Lutron Double Tap" | |
| description: > | |
| Implements a double tap event from Lutron RA3 keypads. Since RA3 doesn't emit double-tap events | |
| for "Scene" and "Zone" buttons, this blueprint simulates the behavior by detecting rapid button | |
| presses and preserving the light states from after the first press. | |
| domain: automation | |
| input: |
This file contains hidden or 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
| <p>This is my page</p> | |
| <iframe name="result" frameborder="0" src="http://fiddle.jshell.net/DUR3y/show/"></iframe> |
This file contains hidden or 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 os | |
| from flask import Flask, render_template, request | |
| import stripe | |
| stripe_keys = { | |
| 'secret_key': os.environ['SECRET_KEY'], | |
| 'publishable_key': os.environ['PUBLISHABLE_KEY'] | |
| } | |
| stripe.api_key = stripe_keys['secret_key'] |