Skip to content

Instantly share code, notes, and snippets.

Michael Galero mikong

  • Quezon City, Philippines
Block or report user

Report or block mikong

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:563435
uby(3959,0x7fff70768c20) malloc: *** mmap(size=1125878398349312) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
ruby(3959,0x7fff70768c20) malloc: *** mmap(size=1125878398349312) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
<internal:lib/rubygems/custom_require>:29:in `require': failed to allocate memory (NoMemoryError)
from <internal:lib/rubygems/custom_require>:29:in `require'
from /Users/mikong/.rvm/gems/ruby-1.9.2-p0@global/gems/ruby-debug-base19-0.11.23/lib/ruby-debug-base.rb:1:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
View markitup_generated.html
<div>
<div class="markItUp" id="markItUpPage_content">
<div class="markItUpContainer">
<div class="markItUpHeader">
<ul>
<li class="markItUpButton markItUpButton1 "><a title="Header [Ctrl+H]" accesskey="H" href="">Header</a></li>
<li class="markItUpButton markItUpButton2 "><a title="Bold [Ctrl+B]" accesskey="B" href="">Bold</a></li>
<li class="markItUpButton markItUpButton3 "><a title="Italic [Ctrl+I]" accesskey="I" href="">Italic</a></li>
<li class="markItUpButton markItUpButton4 "><a title="Link [Ctrl+L]" accesskey="L" href="">Link</a></li>
</ul>
View routes_report_generator.rb
# I found this code I wrote in an old project of mine (written around Sept 2008). The project upgraded to a new Rails version and I had to find the routes with errors.
# core extensions
class Array
def bsearch_lower_boundary(key)
range = 0 ... self.length
lower = range.first - 1
upper = range.last
while lower + 1 != upper
You can’t perform that action at this time.