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
blueprint: | |
name: Timer Light | |
description: Turn off a light when after a specified amount of time has passed | |
domain: automation | |
source_url: https://gist.github.com/PProvost/35ded78f74c31a74419f2aa900bfb7ad | |
input: | |
light_target: | |
name: Light | |
selector: | |
target: |
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
[{"id":"9e47273a.f12738", "type":"tab", "label":"DHT22-IoTC", "disabled":false, "info":""}, {"id":"b3d8f5b6.a243b8", "type":"debug", "z":"9e47273a.f12738", "name":"Hub Response", "active":true, "tosidebar":true, "console":false, "tostatus":false, "complete":"true", "x":740, "y":340, "wires":[]}, {"id":"117b0c09.6b3a04", "type":"azureiothub", "z":"9e47273a.f12738", "name":"Azure IoT Hub", "protocol":"mqtt", "x":520, "y":340, "wires":[["b3d8f5b6.a243b8"]]}, {"id":"ee333823.1d33a8", "type":"inject", "z":"9e47273a.f12738", "name":"", "topic":"", "payload":"", "payloadType":"date", "repeat":"60", "crontab":"", "once":false, "onceDelay":"", "x":210, "y":120, "wires":[["38f14b0d.96eb14"]]}, {"id":"38f14b0d.96eb14", "type":"rpi-dht22", "z":"9e47273a.f12738", "name":"", "topic":"rpi-dht22", "dht":22, "pintype":"0", "pin":4, "x":400, "y":120, "wires":[["f0bfed44.e988b"]]}, {"id":"f0bfed44.e988b", "type":"change", "z":"9e47273a.f12738", "name":"", "rules":[{"t":"set", "p":"payload", "pt":"msg", "to":"{\t \"devi |
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
;FLAVOR:RepRap | |
;TIME:978 | |
;Generated with Cura_SteamEngine 2.3.1 | |
M190 S35 | |
M104 S218 | |
M109 S218 | |
G32 ; Bed level compensation | |
G1 Z5 F1000 ; Up a bit |
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
; Configuration file for Duet WiFi (firmware version 1.17) | |
; executed by the firmware on start-up | |
; | |
; generated by RepRapFirmware Configuration Tool on Thu Dec 29 2016 23:38:47 GMT-0800 (Pacific Standard Time) | |
; General preferences | |
M111 S0 ; Debugging off | |
G21 ; Work in millimetres | |
G90 ; Send absolute coordinates... | |
M83 ; ...but relative extruder moves |
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
// PrintrBot Play ToolBelt | |
// 12/6/2016 Dataman, [email protected] | |
// Rev 1.7 | |
$fn=32; | |
union() { | |
radius = 5; |
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
#!/bin/bash | |
# Source: http://sickbeard.com/forums/viewtopic.php?f=8&t=3945#p19232 | |
SICKBEARD_CONFIG=/var/pvr/sickbeard/config.ini | |
ECHO=/bin/echo | |
GREP=/bin/grep | |
AWK=/usr/bin/awk | |
MKTEMP=/bin/mktemp |
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
public class SystemUnderTest | |
{ | |
public Task<string> LongRunningOperation() | |
{ | |
return Task.Run(() => | |
{ | |
Thread.Sleep(2000); // Simulate the long operation | |
return "Hello there"; | |
}); | |
} |
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
param( | |
[string] $rootFolder = ".", | |
[string] $filter = "*.*" | |
) | |
$path = resolve-path $rootFolder -errorAction Stop | |
write-host "Monitoring $path for changes" | |
$fsw = new-object System.IO.FileSystemWatcher $path, $filter | |
$fsw.IncludeSubdirectories = $true |
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
$str = "some long assed string you want to convert" | |
$str.ToCharArray() | % { "&#{0};" -f [Convert]::ToInt32($_) } | Join-String | clip |
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
<# | |
.SYNOPSIS | |
Generate-VsSettings creates a .vssetting file using the Solarized | |
color pallette created by Ethan Schoonover. | |
.DESCRIPTION | |
The Solarized palette was designed by Ethan Schoonover for maximum readability | |
and contrast. The color choices were chosen based on the highlighting colors | |
listed in the canonical Vim implementation. For more information see | |
http://ethanschoonover.com/solarized |
NewerOlder