Skip to content

Instantly share code, notes, and snippets.

Save-visited-files 1.2 available save opened files across sessions
abacus 1.0.2 available Abacus Calculator
abl-mode 0.9.0 available Python TDD minor mode
ac-ja 0.0.1 available auto-complete-mode source for Japanese
ac-slime 0.1 available An auto-complete source using slime completions
ace-jump-mode 1.0 available a quick cursor location minor mode for emacs
adaptive-wrap 0.1 available Smart line-wrapping with wrap-prefix
ahg 0.99 available Alberto's Emacs interface for Mercurial (Hg)
all 1.0 available Edit all lines matching a given regexp
alpha 1.0 available increase frame transparency
require 'rubygems'
require 'pry'
require 'pry-doc'
require 'pry-remote'
require 'pry_debug'
pry_remote
def lookup(reference, authenticable = true)
return reference if !reference or reference.is_a? User
base = self
if reference.is_a? Numeric or (reference.is_a? String and reference.match(/^\d+$/))
user = base.find(reference.to_i)
elsif reference.include? '@'
user = base.find_by_email(reference) ||
base.find_by_hashed_email(User.hash_email(reference)) || base.find_by_identifier(reference)
else
@robertzx
robertzx / Gemfile.lock
Created October 15, 2011 20:40
My RBX crash project gem list
GIT
remote: [email protected]:robertzx/immutable_attributes.git
revision: 009dbfebaa1402d0e48edb6ee450a76d7e637981
specs:
immutable_attributes (1.2.0)
GIT
remote: [email protected]:zeevex/aws-s3.git
revision: 8354c1c5c0062ede276156e36ccc54c823e2a036
tag: 0.6.2.3-release
Rubinius Crash Report #rbxcrashreport
Error: signal SIGSEGV
[[Backtrace]]
0 rbx 0x00000001022de7c1 _ZN8rubiniusL12segv_handlerEi + 241
1 libsystem_c.dylib 0x00007fff8c26fcfa _sigtramp + 26
2 ??? 0x00007fff61ec5bf8 0x0 + 140734836268024
3 rbx 0x0000000102303ee0 _ZN8rubinius8VMMethod11interpreterEPNS_2VMEPS0_PNS_20InterpreterCallFrameE + 7712
4 rbx 0x00000001023f79a3 _ZN8rubinius8VMMethod19execute_specializedINS_11NoArgumentsEEEPNS_6ObjectEPNS_2VMEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 467
def self.on_refresh_request(&block)
Beacon.watch :refresh_requested do |hash|
block.call hash
end
end