layout | title | date | author |
---|---|---|---|
post |
My New Post |
2014-01-16 23:05 |
david |
This is my great post with the correct poster.
blueprint: | |
name: Motion-activated Light with illuminance | |
description: Turn on a light when motion is detected and illuminance is below a set Lux level. | |
domain: automation | |
input: | |
motion_entity: | |
name: Motion Sensor | |
selector: | |
entity: | |
domain: binary_sensor |
# Script to sync Pythonista files to Dropbox | |
# Author: David Hutchison | |
# www: http://www.devwithimagination.com/ | |
# Now in the repository | |
# https://github.com/dhutchison/PythonistaScripts |
# Script for downloading a URL to Dropbox | |
import sys | |
import urllib2 | |
import urllib | |
import dropbox | |
import os | |
import console | |
# Configuration | |
DOWNLOAD_FOLDER = 'downloads' |
.mySelector { | |
.remSize(font-size, 1.2); | |
} | |
.remSize(@property; @sizeValue) { | |
@remValue: @sizeValue; | |
@pxValue: round((@sizeValue * unit(@fontSizeStandard))); | |
@{property}: ~"@{pxValue}px"; | |
@{property}: ~"@{remValue}rem"; |
layout | title | date | author |
---|---|---|---|
post |
My New Post |
2014-01-16 23:05 |
david |
This is my great post with the correct poster.
### Based on: https://gist.github.com/b0644f5ed1d94bd32805 | |
### This version strips unicode characters from the downloaded script | |
### to work around the currently limited unicode support of the editor | |
### module. | |
# This script downloads and opens a Gist from a URL in the clipboard. | |
# It's meant to be put in the editor's actions menu. | |
# | |
# It works with "raw" and "web" gist URLs, but not with gists that | |
# contain multiple files or non-Python files. |
#!/bin/bash | |
# Script to autoupdate Calibre (http://calibre-ebook.com/) | |
# Author: David Hutchison | |
# www: http://www.devwithimagination.com/ | |
################################# | |
######### CONFIGURATION ######### | |
# These default values should work for everyone. Only change if using a non-standard install location, | |
# or if the download URL changes in the future. | |
################################# |