Skip to content

Instantly share code, notes, and snippets.

View jamonholmgren's full-sized avatar

Jamon Holmgren jamonholmgren

View GitHub Profile
class MainScreen
stylesheet MainControllerStylesheet
def on_load
set_state({ first_name: "Jamon", last_name: "Holmgren" })
attach_events
end
def attach_events
find(:button).on(:tap) { set_state({ first_name: "Todd", last_name: "Werth" }) }
@jamonholmgren
jamonholmgren / common.rb
Last active December 29, 2015 20:39 — forked from anonymous/common.rb
Relevant part of the Clearcap gem by ClearSight Studio. Use as you see fit. MIT license. Clearcap will likely be open sourced sometime in the future after some cleanup.
#!/bin/env ruby
# encoding: utf-8
require 'optparse'
options = {}
OptionParser.new do |opts|
opts.banner = "Usage: -v for verbose mode."
options[:verbose] = false
@jamonholmgren
jamonholmgren / table.rb
Last active December 19, 2015 13:39 — forked from adelevie/table.rb
class ListFilings < PM::TableScreen
title "Docket No. 13-5"
def format_cell_title(item)
item["type_of_filing"].downcase.capitalize + " of " + item["name_of_filer"]
end
def cell_whitelist
[ :title, :subtitle ]
end