Skip to content

Instantly share code, notes, and snippets.

@SuperRoach
SuperRoach / SassMeister-input.scss
Created June 2, 2014 13:52
Generated by SassMeister.com.
// ----
// Sass (v3.3.8)
// Compass (v1.0.0.alpha.18)
// ----
$friendly-colour: #A0EF90;
$mine-spacing: 1px;
$base-mine: #EEE;
$bomb-colour: #222;
$mark-colour: lightblue;
@SuperRoach
SuperRoach / KickClass.py
Created April 23, 2013 10:26
This is a class that eventually talks to a light :) Looking in KickClass.py The code is fairly commented to the problems I'm running into, but... Line 71: I'm trying to set the length as "2 byte, high byte and low byte". Would the hardcoded example be correct for 3? Line 77: How can I correctly get the length of self.Data ? If I put two hex char…
# The Kick light - Python interface to control it via the Wireless api.
#
# Before using this class, it's currently required for you to connect
# your kick to the device running this, using AD-HOC. If the connection drops,
# you have Wi-Fi drivers that do not support AD-HOC mode.
#
# Changing colour will have no effect unless the light is visible.
import binascii
import socket