Skip to content

Instantly share code, notes, and snippets.

View johaywood's full-sized avatar

Josh Haywood johaywood

  • Bluesight
View GitHub Profile
class DemoController < ApplicationController
around_action :rollbar_scope_setup
private
def rollbar_scope_setup
Rollbar.scoped(setup_your_custom_stuff_here) { yield }
end
end
class MyClass
attr_reader :a:, :b
def initialize(a, b)
@a, @b = a,b
end
def process
rescue => e
rollbar.error(e)
@chriskiehl
chriskiehl / Vitual keystroke example
Created June 10, 2012 15:08
Python win32api simple Vitual keystroke example
#Giant dictonary to hold key name and VK value
VK_CODE = {'backspace':0x08,
'tab':0x09,
'clear':0x0C,
'enter':0x0D,
'shift':0x10,
'ctrl':0x11,
'alt':0x12,
'pause':0x13,
'caps_lock':0x14,