Skip to content

Instantly share code, notes, and snippets.

@joshua-moore
joshua-moore / gist:254a00f6d23567cf0a39
Last active February 21, 2018 01:47
ZigBee RGBW Bulb Grouper
/**
* ZigBee RGBW Bulb Grouper
*
* Copyright 2016 Joshua Moore
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
@joshua-moore
joshua-moore / gist:7c8f8355f217770bae56
Last active December 20, 2020 05:14
Virtual ZigBee RGBW Bulb (Used for OSRAM RGBW light groups)
/**
* Virtual ZigBee RGBW Bulb (Used for OSRAM RGBW light groups)
*
* Copyright 2016 SmartThings
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
@joshua-moore
joshua-moore / gist:d6bf8c8cc487a47af84d
Created February 6, 2015 01:04
Tomcat 7 JAVA_OPTS
JAVA_OPTS="-Djava.awt.headless=true -XX:+UseConcMarkSweepGC"
JAVA_OPTS="${JAVA_OPTS} -server -noverify -Xshare:off -Xms400M -Xmx400M -XX:MaxPermSize=172M -XX:PermSize=128M"
JAVA_OPTS="${JAVA_OPTS} -Djava.net.preferIPv4Stack=true -XX:+EliminateLocks -XX:+UseBiasedLocking"
@joshua-moore
joshua-moore / canjs-click-counter.html
Created January 5, 2015 17:00
CanJS click counter example
<!DOCTYPE html>
<html lang="en">
<head>
<title>CanJS - Click counter</title>
<style type="text/css">
.zero {
color: #aaa;
font-weight: bold;
}
.positive {
@joshua-moore
joshua-moore / gist:6690e878889f52847e42
Created October 31, 2014 18:27
Basic Quartz configuration for Grails
// grails-app/conf/QuartzConfig.groovy
quartz {
autoStartup = true
jdbcStore = false
waitForJobsToCompleteOnShutdown = true
}
environments {
development {
quartz {
@joshua-moore
joshua-moore / gist:57137d54d11d6b6ff211
Created October 27, 2014 21:12
Example of Virtual File System as Grails Service
package com.example
import org.springframework.beans.factory.InitializingBean
import java.net.URLEncoder
import java.io.InputStream
import java.io.OutputStream
import java.io.ByteArrayOutputStream
@joshua-moore
joshua-moore / gist:8777103
Created February 3, 2014 00:18
CSS: HTML5 Reset
/*
* html5 doctor css reset | http://html5doctor.com/html-5-reset-stylesheet
*/
html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,abbr,address,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,strong,sub,sup,var,b,i,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,figcaption,figure,footer,header,hgroup,menu,nav,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}
body{line-height:1}
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}
nav ul{list-style:none}
blockquote,q{quotes:none}
blockquote:before,blockquote:after,q:before,q:after{content:none}
a{margin:0;padding:0;font-size:100%;vertical-align:baseline;background:transparent}
{
"folders":
[
{ "path":"grails-app/assets", "name":"Assets" },
{ "path":"grails-app/conf", "name":"Configuration" },
{ "path":"grails-app/controllers", "name":"Controllers" },
{ "path":"grails-app/domain", "name":"Domain Objects" },
{ "path":"grails-app/i18n", "name":"Internationalization" },
{ "path":"grails-app/services", "name":"Services" },
{ "path":"grails-app/taglib", "name":"Tag Libraries" },