Skip to content

Instantly share code, notes, and snippets.

Jared Grippe deadlyicon

Block or report user

Report or block deadlyicon

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:57373
using terms from application "Quicksilver"
on process text t
do shell script "pingfm " & t
end process text
end using terms from
View auto_asset_helper.rb
# 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
View gist:83964
<div id="nav" class="fullcolumn">
<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 />
</div><!-- /nav -->
View gist:90943
|-- 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
View gist:100942
# 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
View gist:101266
class Object
define_method :not do
class Not
private * { |m| m !~ /(^__|^\W|^binding$)/ }
def initialize(subject)
@subject = subject
def method_missing(sym, *args, &blk)
View gist:102814
# 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?
You can’t perform that action at this time.