Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am conorliv on github.
  • I am conorliv (https://keybase.io/conorliv) on keybase.
  • I have a public key whose fingerprint is 21E6 4ADA 5B9C 26EE 42F5 6FAC D88F 77A6 6649 1831

To claim this, I am signing this object:

r2.2.2 :001 > require 'roo'
=> true
2.2.2 :002 > s = Roo::Excelx.new('./roo_error.xlsx')
=> <#Roo::Excelx:1776756266060540 @tmpdirs @tmpdir @shared @filename @sheet_files @workbook @sheet_names @sheets @sheets_by_name @options @cell @cell_type @cells_read @first_row @last_row @first_column @last_column @header_line>
2.2.2 :003 > s.each_row_streaming do |row|
2.2.2 :004 > p row.first.value
2.2.2 :005?> end
"Value"
nil
=> nil
@conorliv
conorliv / cscope_quickref.txt
Last active August 29, 2015 14:21
cscope quickref
==========================================
Setup
==========================================
Install (OSX) brew install cscope
Setup cscope.files find /path/to/src -name '*.<file ext>' > /path/to/src/cscope.files
Create/recreate db cscope -b -q
==========================================
Using in Vim
==========================================
@conorliv
conorliv / android_command_line_quickref.txt
Last active August 29, 2015 14:21
Android Command Line Quickref
This is a work in progress.
==========================================
ABD
==========================================
List devices adb devices
Start shell adb shell
Install apk adb install path/to/apk
==========================================
@conorliv
conorliv / LibraryFacade.java
Last active August 29, 2015 14:09
Drafting surface-level interface for Library/Quizshow communication
public interface LibraryFacace {
/**
* Simply opens a socket on a pre-determined port
* and listens to any messages it receives. It expects that
* the messages it receives are from instances of the Buzzer App
* and derives an IP address from them. The library stores this
* list of derived IP addresses and uses them to send out messages
* to all registered devices for the rest of the game session.
**/