Skip to content

Instantly share code, notes, and snippets.

View jaredatron's full-sized avatar

Jared Grippe jaredatron

View GitHub Profile
please :love => 'me'
super :sex
alert('fuck you')
using terms from application "Quicksilver"
on process text t
do shell script "pingfm " & t
end process text
end using terms from
# Out of the box the auto asset helpers attemp to include javascript and css files based on the
# controller and action names. You can of course customize the logic that generates the path for
# each page.
#
#
# Simple Usage:
# Add these lines to your layout
# stylesheet_link_tag :auto_includes
# javascript_include_tag :auto_includes
#
<div id="nav" class="fullcolumn">
<ul>
<li <?php if(is_home()) { ?> class="current_page_item" <?php } ?> ><a href="<?php bloginfo('home'); ?>" title="Home">Home</a></li>
<?php wp_list_pages('title_li=&depth=0'); ?> <span style="float:right;position:relative;bottom:24px;right:3px"><a href="<?php bloginfo('rss2_url'); ?>" title="Posts RSS"><img src="/wp-content/themes/baseDARK/img/icons/rss.png"></a></span><br />
</ul>
</div><!-- /nav -->
.
|-- Snapshots
| |-- {a46ad324-7820-4d8c-954b-314fda9ed23b}.mem.trc
| `-- {adbd444f-cf4c-4117-b3d1-980987498342}.pvc
|-- Snapshots.xml
|-- config.pvs
|-- config.pvs.backup
|-- config.pvs.example
|-- fedora.hdd
| |-- DiskDescriptor.xml
# These methods are inteded to extend any relationship owned
# by a another User
# Example
# class User
# has_manny :comments, :extend => OwnedByOtherUserRelationshipExtension
# end
module OwnedByOtherUserRelationshipExtension
# creates magic methods like these
# user.comments.by_blocked_users
class Object
define_method :not do
Not.new(self)
end
class Not
private *instance_methods.select { |m| m !~ /(^__|^\W|^binding$)/ }
def initialize(subject)
@subject = subject
end
def method_missing(sym, *args, &blk)
# I should see that challenge
# I should see a challenge
# I should not see any challenges
# I should see a challenge issued to me by erica
# I should see a challenge called "whatever" issued to me by erica
# I should see that I am participating in that challenge
Then /^I (should|should not)? see (a|any|that|that I am participating in (?:a|that)) challenge(?:s)?(?: called "([^\"]+)")?(?: issued to me by (\w+))?$/ do |should, what, called, issuer|
tag = what.match(/^that I am participating in/) ? '#participating .challenge .header' : '.challenge .header'
title = @challenge.title if what.match(/that/)
title = called if called.present?