Skip to content

Instantly share code, notes, and snippets.

View colindean's full-sized avatar
🏆
Helping others find happiness and serenity

Colin Dean colindean

🏆
Helping others find happiness and serenity
View GitHub Profile
@colindean
colindean / README.md
Last active December 10, 2020 03:34 — forked from patik/osx-special-chars.ahk
AutoHotKey stuff

macOS-like Hotkeys for Windows

See fork history for where this came from and note that I have no idea what I'm doing.

@colindean
colindean / light.rb
Last active August 29, 2015 14:12 — forked from Bunkerbewohner/light
A simple Ruby shell script to control LIFX (http://lifx.co) light bulbs, adds color support
#!/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]
@colindean
colindean / Armory
Last active December 14, 2015 18:48 — forked from bsmt/Armory
#!/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 &
@colindean
colindean / build-osx.md
Created December 12, 2012 16:08
updated from @gavinandresen's edits/additions, with some formatting and other fixes
@colindean
colindean / dont.rb
Created April 15, 2011 18:13 — forked from acid/dont.rb
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 = {
@colindean
colindean / oo.php
Created September 22, 2010 19:02 — forked from dhotson/oo.php
<?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);