Skip to content

Instantly share code, notes, and snippets.

View kookster's full-sized avatar
🏠
Working from home

Andrew Kuklewicz kookster

🏠
Working from home
View GitHub Profile
/var/www/domains/publicradioplayer.org/beta.billboard/shared/bundle/ruby/2.0.0/gems/nokogiri-1.6.0.rc1/lib/nokogiri/xml/node.rb:151: [BUG] Segmentation fault
ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-linux]
-- Control frame information -----------------------------------------------
c:0048 p:---- s:0224 e:000223 CFUNC :new
c:0047 p:0014 s:0220 e:000219 BLOCK /var/www/domains/publicradioplayer.org/beta.billboard/shared/bundle/ruby/2.0.0/gems/nokogiri-1.6.0.rc1/lib/nokogiri/xml/node.rb [FINISH]
c:0046 p:---- s:0216 e:000215 CFUNC :map
c:0045 p:0050 s:0213 e:000212 METHOD /var/www/domains/publicradioplayer.org/beta.billboard/shared/bundle/ruby/2.0.0/gems/nokogiri-1.6.0.rc1/lib/nokogiri/xml/node.rb
c:0044 p:0146 s:0205 e:000204 METHOD /var/www/domains/publicradioplayer.org/beta.billboard/shared/bundle/ruby/2.0.0/gems/nokogiri-1.6.0.rc1/lib/nokogiri/html/docume [FINISH]
c:0043 p:---- s:0195 e:000194 CFUNC :new
@kookster
kookster / test.php
Created December 1, 2012 10:02
Test code for new matter.vc carousel
<?php
// ***** N.B. this get_bloginfo function is a stub for testing, deleted from production site code.
function get_bloginfo($key) {
return 'http://matter.vc/wp-content/themes/matter';
}
/*
matter_story_carousel() generates the html for the slides in the carousel.
# make this class in lib/transactional_requests.rb, and load it on start
require 'activerecord'
class TransactionalRequests
def initialize(app)
@app = app
end
def call(env)
ActiveRecord::Base.transaction do