Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/ruby
# Create display override file to force Mac OS X to use RGB mode for Display
# see http://embdev.net/topic/284710
require 'base64'
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay`
edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten
vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten
@dzenand
dzenand / TouchInjector.cs
Created July 24, 2013 08:49
Wrapper around Windows InjectTouchInput API
using System;
using System.Runtime.InteropServices;
namespace Utilities.Input
{
/// <summary>
/// Use this Classes static methods to initialize and inject touch input.
/// </summary>
public class TouchInjector