See fork history for where this came from and note that I have no idea what I'm doing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| require 'lifx' | |
| available_colors = LIFX::Colors.instance_methods | |
| if ARGV.length > 0 | |
| # see if a specific lamp is addressed | |
| label = /^on|off|0x[0-9a-f]{6}$/.match(ARGV[0]) || available_colors.member?(ARGV[0]) ? nil : ARGV[0] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| cd "${0%/*}" | |
| export DYLD_LIBRARY_PATH=../Dependencies/QtCore.framework/Versions/Current:../Dependencies/QtGui.framework/Versions/Current:../Dependencies:$DYLD_LIBRARY_PATH | |
| bin/python armorybuild/ArmoryQt.py & |
- Laszlo Hanyecz solar@heliacal.net
- Douglas Huff dhuff@jrbobdobbs.org
- Colin Dean cad@cad.cx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'digest/md5' | |
| class Hash | |
| def to_query | |
| require 'uri' | |
| self.collect{ |k,v| k.to_s.downcase + '=' + URI::escape(v)}.join('&') | |
| end | |
| end | |
| caPin = "1234" | |
| caSubDomain = "track" | |
| query = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Define the 'class' class | |
| $class = Obj() | |
| ->fn('new', function ($class) { | |
| $newClass = Obj($class->methods) | |
| ->fn('new', function($class) { | |
| $obj = Obj($class->imethods); | |
| $args = func_get_args(); | |
| array_shift($args); |