Skip to content

Instantly share code, notes, and snippets.


Keaton Burleson 128keaton

View GitHub Profile
View Code stuff
In OTIHapCore.m:
- (void)setupBridgeAccessory {
/* HAKAccessory *bridgeAccessory = [[HAKAccessory alloc] init];
HAKAccessoryInformationService *infoService = [[HAKAccessoryInformationService alloc] init]; = @"Hue Bridge";
infoService.serialNumberCharacteristic.serialNumber = @"972BB8AF";
infoService.manufacturerCharacteristic.manufacturer = @"Philips";
infoService.modelCharacteristic.model = @"Hue Bridge";
bridgeAccessory.accessoryInformationService = infoService;
128keaton / Veggie Tales XML
Created Feb 24, 2015
Something silly I did for a class. Now, to find my hair brush...
View Veggie Tales XML
<?xml version="1.0" encoding="utf-8"?>
<category name="Silly">
<album name = "Silly Songs with Larry" artist = "Larry the Cucumber">
<song name = "Where is my hairbrush" duration = "1:00"></song>
<album name = "Songs by Mr. Lunt" artist = "Mr Lunt">
<song name = "Cheeseburger, I love you!" duration = "1:00"></song>
128keaton / Keaton.h
Created Mar 15, 2015
Me in a nutshell
View Keaton.h
@interface Keaton : NSObject
@property(strong, nonatomic)BOOL speak;
128keaton / temp.php
Created May 18, 2015
Temperature monitoring
View temp.php
//add your server aliases here
$servers = array(
"" => "Larry",
"" => "Le Mac Pro",
128keaton /
Last active Aug 29, 2015
fixed flash/pdf/other for chromium run "curl -L | bash"
#based on which is based on
echo "mounting file system"
mount -o remount, rw /
#Flash, pdf.
#mp3,mp4, stopped working...
echo "removing MP3/4 fix"
rm -r /usr/lib/cronos/
rm -r /opt/google/chrome/
View WL API Issies
Hello Polly,
Let me explain the issues ive been having with the API.
Here is my HTML code for fetching the list id for the name 'Today':
$ch2 = curl_init();
for f in $FILES
echo "#import \"${f//.\/}\""
# place in the framework directory, e.g. preferences, and chmod a+x && ./
128keaton / SortedTableView.swift
Created Jul 7, 2016
Sorting a UITableView by a NSDate object with headers in Swift
View SortedTableView.swift
extension NSDate{
init(inputDate: NSDate){
let calendar = NSCalendar.currentCalendar()
let timeZone = NSTimeZone.systemTimeZone()
calendar.timeZone = timeZone
let comps = calendar.components([NSCalendarUnit.Year, NSCalendarUnit.Month, NSCalendarUnit.Day ], fromDate: inputDate)
comps.hour = 0
comps.minute = 0
comps.second = 0
128keaton /
Last active Jul 9, 2016 — forked from ibrahima/
Amazon Dash Button ARP listener script (not written by me)
import socket
import struct
import binascii
# Written by Bob Steinbeiser (
rawSocket = socket.socket(socket.AF_PACKET, socket.SOCK_RAW,
MAC = '74c24671971c'
View HolyCrap.swift
// ProfileViewController.swift
// Bg-Mon
// Created by Keaton Burleson on 4/4/16.
// Copyright © 2016 Keaton Burleson. All rights reserved.
import Foundation
import UIKit