Skip to content

Instantly share code, notes, and snippets.

blueprint:
name: ZHA - Moes Smart Knob for lights
description: 'Control lights with a Moes Smart Knob.
You can set functions for a single press. This allows you to assign,
e.g., a scene or anything else.
Rotating left/right will change the brightness smoothly of the selected light.
Not all functionality of the device is available at time of writing, e.g. double press, long press and press and rotate.'
@jamezpolley
jamezpolley / search-node.txt
Created June 4, 2023 05:32
Tana search nodes
‎‎​
@jamezpolley
jamezpolley / emojitable.html
Last active June 3, 2023 22:41
Tana emoji table
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>W4n Table</title>
</head>
<body>
<h1>Tana Emoji Table</h1>
@jamezpolley
jamezpolley / symposium-review-extra.js
Last active August 2, 2018 11:10 — forked from mithro/symposium-review-extra.js
GreaseMonkey / TamperMonkey script to make Linux.conf.au (Symposium) reviews a bit nicer
// ==UserScript==
// @name symposium-review-extra
// @namespace http://tampermonkey.net/
// @version 0.2
// @description Show all the tabs in the review pane at once.
// @author You
// @match https://lca2019.linux.org.au/reviews/review/.*
// @match https://lca2019.linux.org.au/reviews/review/*
// @downloadURL https://gist.githubusercontent.com/jamezpolley/a086bcba602e93d7d70ad042f04c19e4/raw/a2f92ce041275185d972ab272900a5b2d74efd87/symposium-review-extra.js
// @updateURL https://gist.githubusercontent.com/jamezpolley/a086bcba602e93d7d70ad042f04c19e4/raw/a2f92ce041275185d972ab272900a5b2d74efd87/symposium-review-extra.js

Keybase proof

I hereby claim:

  • I am jamezpolley on github.
  • I am tchaypo (https://keybase.io/tchaypo) on keybase.
  • I have a public key ASAz4jhP70F4ENrJ0t8PmTDLU71sKhrnGVHxgvvep9Vkzgo

To claim this, I am signing this object:

@jamezpolley
jamezpolley / test.rb
Created October 8, 2012 17:53
Reason #17 ruby made me cry this morning
jpolley@jpl:waldo$cat test.rb
#!/usr/bin/env ruby
def myfunc(a=1, b=3)
puts a
puts b
end
myfunc(b=2)
puts b
#!/usr/bin/env python
directory = [
{'department': 123, 'location': 'NYC', 'username': 'bob', 'roles':
['developer', 'sysadmin']},
{'department': 123, 'location': 'SYD', 'username': 'fred', 'roles':
'developer'},
{'department': 234, 'location': 'NYC', 'username': 'harry', 'roles':
'sysadmin'},
]
james@bodacious-wired:~$cat test.py
#!/usr/bin/env python
class MyClass:
element1 = "Hello"
def __init__(self):
self.element2 = "World"
obj1 = MyClass()
@jamezpolley
jamezpolley / chrome
Created July 26, 2011 01:28
my chrome profile launcher script
#!/bin/bash
dochrome-mac () {
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --enable-udd-profiles --user-data-dir=/Users/$USER/Library/Application\ Support/Google/Chrome$1 2>&1 &
}
dochrome-linux () {
/opt/google/chrome/google-chrome --enable-udd-profiles --user-data-dir=~/.config/google-chrome$1 %U 2>%1 &
}
@jamezpolley
jamezpolley / giteditor
Created May 26, 2011 05:03
Port of hgeditor to work with git
#!/bin/sh -x
#
# based on http://selenic.com/git/raw-file/tip/hgeditor
# and http://stackoverflow.com/questions/4750148/git-show-index-diff-in-commit-message-as-comment
#
# This is an example of using GITEDITOR to create of diff to review the
# changes while commiting.
#
# If you want to pass your favourite editor some other parameters
# only for Git, modify this: