Skip to content

Instantly share code, notes, and snippets.

View tekmaven's full-sized avatar

Ryan Hoffman tekmaven

View GitHub Profile
@AdamNaj
AdamNaj / Find-AbandonedEntities.ps1
Last active January 18, 2021 20:54
How to check if Z-Wave node is Secure or Plus version based on QZW Config file.
# Combine the functionality of Find-ChattyZwaveDevices and Get-ZwaveNodeSecureOrPlus
# Executing this script can take a few minutes debending on the speed of the network and the size of your OZW log.
# Path to your Home Assistant shared folder - mapped drive on your windows machine
$haPath = "I:"
# Get the content of the Open Z-Wave cache file
Write-Progress -Activity "Reading Configuration"
[xml]$ozwCfg = Get-Content "$haPath\zwcfg_*.xml"
# Get valid zwave IDs
@Ambroos
Ambroos / Ad.jsx
Created April 29, 2015 14:18
Loading synchronous / document.write-ing ads asynchronously against their will in a React component
import React from 'react';
import $script from 'scriptjs';
require('postscribe/htmlParser/htmlParser.js'); // This is required for postScribe, postScribe is a bit annoying.
const postscribe = require('exports?postscribe!postscribe'); // Needs webpack exports-loader! Otherwise, just require it and use window.postscribe.
// This GlobalAdCodePromise is a simple promise that uses script.js to load a javascript file and then resolve.
const GlobalAdCodePromise = new Promise((resolve) => {
setTimeout(() => {
$script('http://annoying.adprovider.com/ad.js', () => {
@tomaszkubacki
tomaszkubacki / README.md
Created October 6, 2012 11:14
monotouch keyboard editor and combobox enum editor as UITextField exntesions

ios default keyboard editor does not have close button if you need show editor for numeric value or edit enum val code below may be helpful. Just copy and paste to your project.

copy/paste utils file from second file and then this is all you need to display number pad with close button

myTextField.SetKeyboardEditorWithCloseButton(UIKeyboardType.NumberPad); 
@medmunds
medmunds / knockout-jquery-ui-widget.js
Created March 27, 2011 17:35
Knockout binding for jQuery.ui.widget
// knockout-jquery-ui-widget.js
// Copyright (c) 2011, Planapple, Inc.
// License: MIT (http://www.opensource.org/licenses/mit-license.php)
//
// Knockout binding for jQuery UI widgets
//
// Examples:
// <input type="submit" value="OK" data-bind='jqueryui: "button"' />
//
// Attaches a jQuery UI button widget to this button, with default options.