This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Predicate Return Value Part 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Predicate Return Value Part 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Predicate Return Value Part 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://gist.github.com/f839f76aebceb380a827 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
295 Predicate Return Value Part 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
APP_VERSION = `git describe --tags --abbrev=0`.strip unless defined? APP_VERSION |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=begin | |
Plugin: Github Logger | |
Version: 1.1 | |
Description: Logs daily Github activity for the specified user | |
Author: [Brett Terpstra](http://brettterpstra.com) | |
Configuration: | |
github_user: githubuser | |
github_tags: "#social #coding" | |
Notes: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input type="text" id="not_human" name="name" /> | |
<input type="text" name="actual_name" /> | |
<style> | |
#not_human { display: none } | |
</style> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def ancestors(obj) | |
anc = [] | |
klass = obj.class | |
until klass.nil? do | |
anc << klass | |
klass = klass.superclass | |
end | |
anc | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Thanks to tenderlove on Peepcode play by play | |
require 'digest/md5' | |
def fetch username | |
records = JSON.parse get username | |
records.each do |hash| | |
checksum = Digest::MD5.hexdigest Marshal.dump(hash) | |
hash['checksum'] = checksum | |
end |
NewerOlder