Skip to content

Instantly share code, notes, and snippets.

View kevincoleman's full-sized avatar

Kevin Coleman kevincoleman

View GitHub Profile
@kevincoleman
kevincoleman / spacerCell
Created March 30, 2015 21:11
Table Spacer Cell
<td width="25" style="font-size: 1px; line-height: 1px;">
<img width="25" height="1" src="http://emails.premiercellar.com/GeneralAssets/spacer.gif" border="0" hspace="0" style="display:block" alt="">
</td>
@kevincoleman
kevincoleman / tbl
Last active August 29, 2015 14:17
table centering
<table width="600" border="0" align="center" cellpadding="0" cellspacing="10" style="color: #333333;">
<tbody>
<tr>
<td style="text-align: center;">
<img src="http://echo7.bluehornet.com/cimages/27a9ce511d38437d10bdd1c4ce973fa8/DSLogosmallest.jpg" alt="" align="" style="margin: 0px;" border="0" />
</td>
<td style="text-align: center;"></td>
</tr>
</tbody>
</table>
<gwrcmds><gwrcmd><gcmd>RoomGetCarousel</gcmd><gdata><gip><version>1</version><rc>200</rc><room><rid>0</rid><name>Bedroom</name><desc></desc><known>1</known><type>0</type><color>000000</color><colorid>0</colorid><img>images/black.png</img><power>0</power><poweravg>0</poweravg><energy>0</energy><device><did>216390408111808475</did><known>1</known><lock>0</lock><state>0</state><level>0</level><node>238</node><port>0</port><nodetype>16386</nodetype><name>Bedroom</name><desc>LED</desc><colorid>0</colorid><imgs>images/lighting/TCP/TCP-A19.png</imgs><imgm>images/lighting/TCP/TCP-A19.png</imgm><imgb>images/lighting/TCP/TCP-A19.png</imgb><imgs_s>images/lighting/TCP/TCP-A19.png</imgs_s><imgm_s>images/lighting/TCP/TCP-A19.png</imgm_s><imgb_s>images/lighting/TCP/TCP-A19.png</imgb_s><type>multilevel</type><rangemin>0</rangemin><rangemax>99</rangemax><power>0</power><poweravg>0</poweravg><energy>0</energy><score>0</score><productid>1</productid><prodbrand>TCP</prodbrand><prodmodel>LED A19 11W</prodmodel><prodtype>LED</prod
<gwrcmds>
<gwrcmd>
<gcmd>RoomGetCarousel</gcmd>
<gdata>
<gip>
<version>1</version>
<rc>200</rc>
<room>
<rid>0</rid>
<name>Bedroom</name>
@kevincoleman
kevincoleman / catsOnLap.js
Last active August 29, 2015 14:12
A script to explain the interaction that takes place when a cat jumps on a lap.
var cat = {
annoyance: 30 // cats are never not annoyed
};
var lapContents = [];
var needToPee = 0;
var catSettle = function(settlingCat) {
if (cat.annoyance < 100) {
lapcontents.push(settlingCat);
} else {

Keybase proof

I hereby claim:

  • I am kevincoleman on github.
  • I am kevincoleman (https://keybase.io/kevincoleman) on keybase.
  • I have a public key whose fingerprint is DA5A EAA5 F033 0091 C3D7 E2AE 9913 B4D0 FB66 3979

To claim this, I am signing this object: