Skip to content

Instantly share code, notes, and snippets.

@outadoc
outadoc / pushover
Last active August 17, 2023 16:10
Pushover Bash Script
#!/bin/bash
if [ $# -eq 0 ]; then
echo "Usage: ./pushover <message> [title]"
exit
fi
MESSAGE=$1
TITLE=$2
@Dianoga
Dianoga / nest.devicetype.groovy
Last active September 16, 2018 02:09
Nest Device Type for SmartThings
/**
* Nest Direct
*
* Author: dianoga7@3dgo.net
* Date: 2013-07-18
* Code: https://gist.github.com/Dianoga/6055918
*
* INSTALLATION
* =========================================
* 1) Create a new device type (https://graph.api.smartthings.com/ide/devices)
@danlieberman
danlieberman / ResetAppWithTouch.groovy
Last active December 19, 2015 19:08
Reset SmartApp with AppTouch
/**
* ResetAppWithTouch
*
* Author: dan@smartthings.com
* Date: 2013-07-15
*/
preferences {
section("Reset this device...") {
input "switch1", "capability.switch"
@flodel
flodel / image.gallery.R
Created May 2, 2012 04:04
Basic Craigslist API
@nathansmith
nathansmith / html5_template.html
Created December 7, 2011 01:41
Simple HTML5 Template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge, chrome=1" />
<title>untitled</title>
<link rel="stylesheet" href="" />
</head>
<body>
@jphorn
jphorn / firebuglite-ios.js
Created December 4, 2011 20:55
Firebug LITE for iOS
javascript:(function(F,i,r,e,b,u,g,L,I,T,E){if(F.getElementById(b))return;E=F[i+'NS']&&F.documentElement.namespaceURI;E=E?F[i+'NS'](E,'script'):F[i]('script');E[r]('id',b);E[r]('src',I+g+T);E[r](b,u);(F[e]('head')[0]||F[e]('body')[0]).appendChild(E);E=new%20Image;E[r]('src',I+L);})(document,'createElement','setAttribute','getElementsByTagName','FirebugLite','4','firebug-lite.js','releases/lite/latest/skin/xp/sprite.png','https://getfirebug.com/','#startOpened');