This file contains 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
danlynn:delete danlynn$ git clone git@github.com:danlynn/mephisto.git | |
Initialized empty Git repository in /Users/danlynn/Documents/temp/delete/mephisto/.git/ | |
error: object directory /data/git/repositories/7/f2/88/1b/jamesfleeting/mephisto.git/objects does not exist; check .git/objects/info/alternates. | |
error: object directory /data/git/repositories/0/89/0e/7c/igotimac/birdblog.git/objects does not exist; check .git/objects/info/alternates. | |
error: object directory /data/git/repositories/0/89/0e/7c/igotimac/birdblog.git/objects does not exist; check .git/objects/info/alternates. | |
error: object directory /data/git/repositories/7/f2/88/1b/jamesfleeting/mephisto.git/objects does not exist; check .git/objects/info/alternates. | |
remote: error: object directory /data/git/repositories/7/f2/88/1b/jamesfleeting/mephisto.git/objects does not exist; check .git/objects/info/alternates. | |
remote: error: object directory /data/git/repositories/0/89/0e/7c/igotimac/birdblog.git/objects does not exist; check .git/objects/info/ |
This file contains 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
# Run this rake file by navigating to the 'vendor/plugins/filtered_column_code_macro' | |
# directory on the command line and run "rake" to generate a new 'default_coderay.css' | |
# or by running "rake test" to execute the unit tests. | |
require 'rake' | |
require 'rake/testtask' | |
require 'pathname' | |
# require the coderay gem in the vendor/gems dir | |
# (not dependent on globally installed coderay gem) | |
$: << Pathname.glob(Pathname(__FILE__).parent.parent.parent + 'gems' + 'coderay*' + 'lib').to_s |
This file contains 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
# XmlObjectParser by Dan Lynn | |
xml_str = <<XMLEND | |
<inventory title="OmniCorp Store #45x10^3"> | |
<section name="health"> | |
<item upc="123456789" stock="12"> | |
<name>Invisibility Cream</name> | |
<price>14.50</price> | |
<description>Makes you invisible</description> | |
</item> |
This file contains 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
Feature: Manage Users | |
In order to manage user details | |
As a security enthusiast | |
I want to edit user profiles only when authorized | |
Scenario Outline: Show or hide edit profile link | |
Given the following user records | |
| username | password | admin | | |
| bob | secret | false | | |
| admin | secret | true | |
This file contains 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
Failures = Struct.new(:log, :last_success) | |
class Failures | |
def to_s | |
"log=#{log.size}, last_success=#{last_success}" | |
end | |
end | |
Failure = Struct.new(:time, :message) | |
This file contains 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
danlynn:ZIPCodeLookupClient danlynn$ svn proplist --verbose ZipCodeLookUp.java | |
Properties on 'ZipCodeLookUp.java': | |
svn:eol-style | |
native |
This file contains 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
.svn/prop-base/ZipCodeLookUp.java.svn-base: | |
K 13 | |
svn:eol-style | |
V 6 | |
native | |
END |
This file contains 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
package com.usps.webservice.msg; | |
public class ResponseWrapper<E> { | |
private Object response = null; | |
public ResponseWrapper(E response) { | |
this.response = response; | |
} | |
This file contains 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
class Source < ActiveRecord::Base | |
belongs_to :owner | |
def self.create_from_pathname(pathname) | |
source = Source.new({:path => "", :tracename => ""}) | |
end | |
private |
This file contains 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
# call-seq | |
# get_owner_from_svn_log(Pathname("path/to/source.java")) => owner_name | |
# | |
# if 'pathname' doesn't exist or there is no commit history then returns nil | |
def self.get_owner_from_svn_log(pathname) | |
log = `svn log #{pathname}` | |
first_commit_time = nil | |
commits = [] | |
log.each do |line| | |
commits << [$1, first_commit_time = Time.parse($2)] if line =~ /^\w+? \| (\w+?) \| (.+?) \(.+?\) \| / |