Skip to content

Instantly share code, notes, and snippets.

@quicklywilliam
Created September 3, 2013 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quicklywilliam/6429376 to your computer and use it in GitHub Desktop.
Save quicklywilliam/6429376 to your computer and use it in GitHub Desktop.
A love letter to IOHIDEventQueue
#!/usr/bin/env ruby
require 'rubygems'
FILEPATH = ARGV.shift
text = File.read(FILEPATH)
text.gsub!(/^.*IOHIDEventQueue.c, line: 512.*$\n/, "")
File.open(FILEPATH, 'w') {|file| file.puts text}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment