Public Gists by joahking

Gravatar
Mon Nov 09 03:31:00 -0800 2009
1
2
3
# this is an AR model class
named_scope :privates, :conditions => { :public => false }
named_scope :named_like, lambda { |name| { :conditions => "name LIKE '#{name}%'" }}
Gravatar
Tue Aug 25 15:29:09 -0700 2009
1
2
3
# now there is no metaprogramming involve, but finger saving it is indeed :-)
 
    describe 'active ones' do
Gravatar
Wed Jul 29 05:43:28 -0700 2009
1
2
3
require 'capitate'
require 'capitate/recipes'
set :project_root, File.dirname(__FILE__)
Gravatar
Fri Apr 24 11:19:14 -0700 2009
1
<?xml version='1.0' encoding='UTF-8'?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearch/1.1/' xmlns:gml='http://www.opengis.net/gml' xmlns:georss='http://www.georss.org/georss' xmlns:batch='http://schemas.google.com/gdata/batch' xmlns:gCal='http://schemas.google.com/gCal/2005' xmlns:gd='http://schemas.google.com/g/2005' gd:etag='W/"A04BQH47eCp7I2A9WxJTFEQ."'><id>http://www.google.com/calendar/feeds/calendar%40minuevavida.es/private/full</id><updated>2009-04-23T15:19:11.000Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/g/2005#event'/><title>calendar@minuevavida.es</title><subtitle>Calendario de Reuniones de La Iglesia Evangelica Nueva Vida</subtitle><link rel='alternate' type='text/html' href='http://www.google.com/calendar/embed?src=calendar@minuevavida.es'/><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.google.com/calendar/feeds/calendar%40minuevavida.es/private/full'/><link rel='http://schemas.google.com/g/2005#post' type='application/atom+xml' href='http://www.google.com/calendar/feeds/calendar%40minuevavida.es/private/full'/><link rel='http://schemas.google.com/g/2005#batch' type='application/atom+xml' href='http://www.google.com/calendar/feeds/calendar%40minuevavida.es/private/full/batch'/><link rel='self' type='application/atom+xml' href='http://www.google.com/calendar/feeds/calendar%40minuevavida.es/private/full?max-results=25'/><author><name>calendar calendar</name><email>calendar@minuevavida.es</email></author><generator version='1.0' uri='http://www.google.com/calendar'>Google Calendar</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><gCal:timezone value='Europe/Madrid'/><gCal:timesCleaned value='0'/><entry gd:etag='"FkwCRw1CfCp7I2A6WhVU"'><id>http://www.google.com/calendar/feeds/calendar%40minuevavida.es/events/vm8jgsppq9dn5n2v91icnifplc</id><published>2009-04-23T12:34:42.000Z</published><updated>2009-04-23T14:42:12.000Z</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2009-04-23T14:42:12.000Z</app:edited><category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/g/2005#event'/><title>some event</title><content></content><link rel='alternate' type='text/html' href='http://www.google.com/calendar/hosted/minuevavida.es/event?eid=dm04amdzcHBxOWRuNW4ydjkxaWNuaWZwbGMgY2FsZW5kYXJAbWludWV2YXZpZGEuZXM' title='alternate'/><link rel='self' type='application/atom+xml' href='http://www.google.com/calendar/feeds/calendar%40minuevavida.es/private/full/vm8jgsppq9dn5n2v91icnifplc'/><link rel='edit' type='application/atom+xml' href='http://www.google.com/calendar/feeds/calendar%40minuevavida.es/private/full/vm8jgsppq9dn5n2v91icnifplc'/><author><name>calendar calendar</name><email>calendar@minuevavida.es</email></author><gCal:guestsCanModify value='false'/><gCal:guestsCanInviteOthers value='true'/><gCal:guestsCanSeeGuests value='true'/><gCal:anyoneCanAddSelf value='false'/><gd:comments><gd:feedLink href='http://www.google.com/calendar/feeds/calendar%40minuevavida.es/private/full/vm8jgsppq9dn5n2v91icnifplc/comments'/></gd:comments><gd:eventStatus value='http://schemas.google.com/g/2005#event.confirmed'/><gd:visibility value='http://schemas.google.com/g/2005#event.default'/><gd:transparency value='http://schemas.google.com/g/2005#event.opaque'/><gCal:uid value='vm8jgsppq9dn5n2v91icnifplc@google.com'/><gCal:sequence value='0'/><gd:when startTime='2009-04-21T10:30:00.000+02:00' endTime='2009-04-21T11:30:00.000+02:00'><gd:reminder minutes='10' method='email'/><gd:reminder minutes='10' method='alert'/></gd:when><gd:who rel='http://schemas.google.com/g/2005#event.attendee' valueString='Luis Cuadra' email='luiscuadra@minuevavida.es'><gd:attendeeStatus value='http://schemas.google.com/g/2005#event.invited'/></gd:who><gd:who rel='http://schemas.google.com/g/2005#event.organizer' valueString='calendar calendar' email='calendar@minuevavida.es'><gd:attendeeStatus value='http://schemas.google.com/g/2005#event.accepted'/></gd:who><gd:who rel='http://schemas.google.com/g/2005#event.attendee' valueString='Joaquin Rivera Padron' email='admin@minuevavida.es'><gd:attendeeStatus value='http://schemas.google.com/g/2005#event.invited'/></gd:who><gd:where valueString='plaza'/></entry><entry gd:etag='"FkwNRAZGdip7I2A6WhVU"'><id>http://www.google.com/calendar/feeds/calendar%40minuevavida.es/events/4kt89hgkldb26p24eu0aeit7as</id><published>2009-04-23T12:34:38.000Z</published><updated>2009-04-23T12:34:38.000Z</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2009-04-23T12:34:38.000Z</app:edited><category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/g/2005#event'/><title>some test</title><content></content><link rel='alternate' type='text/html' href='http://www.google.com/calendar/hosted/minuevavida.es/event?eid=NGt0ODloZ2tsZGIyNnAyNGV1MGFlaXQ3YXMgY2FsZW5kYXJAbWludWV2YXZpZGEuZXM' title='alternate'/><link rel='self' type='application/atom+xml' href='http://www.google.com/calendar/feeds/calendar%40minuevavida.es/private/full/4kt89hgkldb26p24eu0aeit7as'/><link rel='edit' type='application/atom+xml' href='http://www.google.com/calendar/feeds/calendar%40minuevavida.es/private/full/4kt89hgkldb26p24eu0aeit7as'/><author><name>calendar calendar</name><email>calendar@minuevavida.es</email></author><gCal:guestsCanModify value='false'/><gCal:guestsCanInviteOthers value='true'/><gCal:guestsCanSeeGuests value='true'/><gCal:anyoneCanAddSelf value='false'/><gd:comments><gd:feedLink href='http://www.google.com/calendar/feeds/calendar%40minuevavida.es/private/full/4kt89hgkldb26p24eu0aeit7as/comments'/></gd:comments><gd:eventStatus value='http://schemas.google.com/g/2005#event.confirmed'/><gd:visibility value='http://schemas.google.com/g/2005#event.default'/><gd:transparency value='http://schemas.google.com/g/2005#event.opaque'/><gCal:uid value='4kt89hgkldb26p24eu0aeit7as@google.com'/><gCal:sequence value='0'/><gd:when startTime='2009-04-19T08:00:00.000+02:00' endTime='2009-04-19T09:00:00.000+02:00'><gd:reminder minutes='10' method='email'/><gd:reminder minutes='10' method='alert'/></gd:when><gd:who rel='http://schemas.google.com/g/2005#event.organizer' valueString='calendar calendar' email='calendar@minuevavida.es'/><gd:where valueString=''/></entry></feed>
Gravatar
Fri Apr 17 05:28:42 -0700 2009
1
2
3
insoshi searches_controller_spec.rb fail, are you seing this too?
 
$ git log -n1
gist: 75816 does GMap breaks celerity/H...
Gravatar
Sun Mar 08 08:36:07 -0700 2009
1
2
3
h1. We are spec-ing that celerity (HtmlUnit) does not break after a call to GMap API
 
Does specs pass for you??? any help would be appreciated :-)
Gravatar
Mon Mar 02 07:29:22 -0800 2009
1
2
3
#!/usr/bin/env jruby
 
# fast script for running javascript unit tests
Gravatar
Sun Feb 22 06:28:01 -0800 2009
1
2
3
# celerity is not getting the ajax response back
# this is a stack trace from http://github.com/joahking/cukes/tree/master/ where we are
# running cucumber features for webrat together with celerity
Gravatar
Fri Feb 20 01:44:54 -0800 2009
1
2
3
#
# cucumber.yml
#
Gravatar
Sat Feb 14 08:16:13 -0800 2009
1
2
3
testing culerity, everything goes really cool, except the memory consume: too many (?) java/ruby processes remain in memory leaving my debian lenny wasted
 
THIS ARE EXPERIMENTS IN PROGRESS, cant seem to repeat the results in a way to provide more accurate testing bed. This seems to happen in one of my projects that extends insoshi http://github.com/joahking/insoshi/tree/master and heavily uses javascript (at the time some broken ones) and Google GMap API
Gravatar
Sat Feb 07 08:12:26 -0800 2009
1
2
3
# trying out the scenario outlines cucumber feature
 
$ gem list cucumber; gem list webrat
Gravatar
Sun Jan 04 10:26:02 -0800 2009
1
2
3
# Rack RSpec HTML is a simple Rack application to:
## browse your spec and features directories
## run *_spec.rb and *.feature files living there.
Gravatar
Fri Dec 12 04:42:25 -0800 2008
1
2
3
let's make a list of sinatra-based apps!
 
apps: