Skip to content

Instantly share code, notes, and snippets.

View offboarded-x233534's full-sized avatar

Offboarded X8765 offboarded-x233534

View GitHub Profile

TL;DR: Star 🌟 this gist. (You might need to request the desktop version)

such meta

After buying the tickets for ReactiveConf I discovered the call for Lightning Talks and decided it's time to leave the attendee seat and hold my first public talk. To calculate the odds I wrote a script to get the current ranks of all Lightning Talks. This script is the topic of my talk:

Getting a Lightning Talk slot for ReactiveConf 2017 with FP

#!/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