Skip to content

Instantly share code, notes, and snippets.

View cheald's full-sized avatar

Chris Heald cheald

View GitHub Profile
@cheald
cheald / executor.rb
Last active August 29, 2015 14:25 — forked from pmahoney/executor.rb
require 'java'
class Task
include Java::JavaUtilConcurrent::Callable
def initialize(num)
@num = num
end
def call
@cheald
cheald / admin.rb
Created November 1, 2012 22:58 — forked from aaronmcadam/admin.rb
class Admin < APIWrapper
custom_post :login
collection_path 'admins'
resource_path 'admins/get/:id'
def self.get_admin(superadmin_id, admin_id)
get("admins/get/#{superadmin_id}/#{admin_id}")
end