Skip to content

Instantly share code, notes, and snippets.

View hansen-m's full-sized avatar

Matt Hansen hansen-m

View GitHub Profile
#
# This is the server logic of a Shiny web application. You can run the
# application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
@hansen-m
hansen-m / apple_remote_ir_codes.txt
Created December 1, 2018 17:32
Apple Remote IR Codes
play = [9116, 4506, 623, 547, 625, 1668, 626, 1666, 628, 1665, 619, 550, 622, 1670, 624, 1668, 634, 1659, 627, 1665, 619, 1673, 621, 1672, 623, 546, 626, 542, 620, 548, 624, 545, 627, 1673, 621, 1671, 623, 546, 626, 1668, 627, 542, 620, 547, 625, 544, 618, 550, 622, 547, 626, 1667, 628, 1665, 628, 1665, 619, 552, 621, 546, 626, 544, 618, 1674, 620, 1673, 621]
menu = [9102, 4516, 626, 542, 617, 1676, 618, 1675, 620, 1674, 620, 569, 603, 1667, 621, 1672, 619, 1673, 621, 1672, 622, 1670, 629, 1664, 616, 552, 620, 549, 626, 541, 618, 550, 628, 1672, 616, 1675, 619, 1674, 621, 547, 625, 544, 621, 548, 621, 547, 625, 543, 619, 550, 622, 1670, 624, 1668, 620, 1672, 618, 550, 622, 546, 616, 553, 620, 1680, 618, 1667, 625]
right = [9112, 4511, 619, 553, 620, 1670, 623, 1669, 627, 1665, 627, 544, 618, 1672, 622, 1670, 625, 1668, 626, 1665, 619, 1673, 622, 1669, 625, 543, 619, 549, 623, 545, 617, 551, 621, 1679, 616, 552, 620, 1672, 622, 1670, 625, 543, 619, 549, 623, 546, 621, 547, 621, 548, 624, 1668, 626, 1666, 618,
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
//
// NVRAMManager.swift
//
// Created by Matt Hansen on 1/30/16.
// The Pennsylvania State University.
//
// http://www.opensource.apple.com/source/system_cmds/system_cmds-643.30.1/nvram.tproj/nvram.c
import IOKit
import Foundation
#!/usr/bin/python
# encoding: utf-8
#
import objc, CoreFoundation, Foundation
class attrdict(dict):
__getattr__ = dict.__getitem__
__setattr__ = dict.__setitem__
@hansen-m
hansen-m / gist:5602491
Created May 17, 2013 22:58
web-print.conf
###############################################################################
#
# The Web Print Configuration File.
#
###############################################################################
#
# The hot folder is the directory where user's web print jobs are stored.
# The application server writes jobs to this directory and web print monitors
# this directory for new jobs to appear.