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: ZHA - Tuya TS0041 Switch | |
| description: Automate your TS0041 Wireless Switch using ZHA events. | |
| domain: automation | |
| input: | |
| ts0041_switch: | |
| name: _TZ3000_axpdxqgu TS0041 Switch | |
| description: _TZ3000_axpdxqgu TS0041 Switch to use | |
| selector: | |
| device: |
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: ZHA - Moes Tuya Smart Knob (TS004F) controller for remote control devices | |
| description: Control remotes (e.g. volume up/down) with a Moes Tuya smart knob (the spinny ones). You can set functions for single press, rotating left, and rotating right. | |
| domain: automation | |
| source_url: https://gist.github.com/blizzrdof77/c30c388ca5f4ce7ed72752296767417d | |
| input: | |
| remote: | |
| name: Smart Knob Device | |
| description: Moes Tuya Smart Knob Device to use | |
| selector: |
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
| console.assert(/cfp\.devoxx\.us\/myagenda/.test(window.location), "This script only works for: cfp.devoxx.us/myagenda"); | |
| $ = jQuery; | |
| var schedule = $('th.timeSlot').map(function(i, x) { | |
| var $row = $(x); | |
| var time = x.innerText.trim(); | |
| var day = $row.closest('div').prev('h2').text(); | |
| return $row.siblings('td.room').map(function(i, x) { |
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
| package io.baron.android-hamcrest-matchers; | |
| import android.os.Bundle; | |
| import org.hamcrest.Description; | |
| import org.hamcrest.Matcher; | |
| import org.hamcrest.TypeSafeMatcher; | |
| import static org.hamcrest.Matchers.equalTo; |
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
| (function () { | |
| var feedPollInterval = 2000; | |
| var feedUrl = "//" + window.location.host + "/api/read/json?num=1&callback=?"; | |
| var lastArticleTime = new Date(); | |
| function feedCallback(data) { | |
| if (data.posts && data.posts.length) { | |
| var rawArticleTime = data.posts[0]["unix-timestamp"]; |
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
| public static class DateTimeParser | |
| { | |
| private readonly static Regex timeZoneMatch = new Regex(@"[a-z]{2,}$", RegexOptions.Compiled | RegexOptions.IgnoreCase); | |
| private readonly static IDictionary<string, string> timeZoneMap = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) | |
| { | |
| {"ACDT", "+1030"}, | |
| {"ACST", "+0930"}, | |
| {"ADT", "-0300"}, | |
| {"AEDT", "+1100"}, |
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
| using System; | |
| using System.Net; | |
| public class DistributedWebRequestCreator : IWebRequestCreate | |
| { | |
| private readonly IDnsResolver resolver; | |
| public DistributedWebRequestCreator() | |
| : this(new DnsResolver()) | |
| { |