Skip to content

Instantly share code, notes, and snippets.

View joshm1's full-sized avatar

Josh McDade joshm1

  • SpaceIQ
  • North Carolina
View GitHub Profile
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project basedir="." default="build" name="Distribution">
<property name="debuglevel" value="source,lines,vars"/>
<property name="target" value="1.6"/>
<property name="source" value="1.6"/>
<path id="Distribution.classpath">
<pathelement location="${basedir}/bin"/>
<fileset dir="${basedir}/lib/java">
Then /^there should be ([^\"]*) entr(ies|y) in the "([^\"]*)" table$/ do |num, header|
# I don't care about a block argument for entr(ies|y)
...
end
Counting objects: 60, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (42/42), done.
Writing objects: 100% (46/46), 40.03 KiB, done.
Total 46 (delta 10), reused 0 (delta 0)
error: unable to write sha1 filename ./objects/b5/7b92d2214ec119db01fba63b1ef85d5861878c: Permission denied
fatal: failed to write object
error: unpack failed: unpacker exited with error code
To git@slice:main_site
IS_JAR = (File.dirname(__FILE__) =~ /^jar:/) != nil
if IS_JAR
require 'project'
require 'project/project'
require 'project/config'
else
require File.expand_path(File.join(File.dirname(__FILE__),
%w(.. project)))
end
#!/usr/local/rvm/rubies/ruby-1.9.2-rc2/bin/ruby
#
# This file was generated by RubyGems.
#
# The application 'thin' is installed as part of a gem, and
# this file is here to facilitate running it.
#
require 'rubygems'
class Sequel::Model
class << self
alias_method :all_orig, :all
def all
all_orig
end
end
end
module SequelDateTimePatch
# typecast_value_datetime does not like a java.util.Date object, so we need
# to convert it before we get there. DB should extend this module so that it
# goes here before it reaches Datebase.typecast_value_datetime
def typecast_value_datetime(value)
if defined?(Java) && value.kind_of?(java::util::Date)
super DateTime.parse(value.to_s)
else
super
end
describe MyApp::UserRequest do
include MyApp
# returns wrong number of arguments (1 for 0)
# and prints:
# No description supplied for example declared on spec/some_spec.rb:8:in `block in <top (required)>'
it { should respond_to(:user_to) }
# ditto
it { should respond_to(:user_from) }
include Java
module TimePatch
def <=> other
if defined?(Java) && other.kind_of?(java.util.Date)
super Time.at(other.time/1000)
else
super
end
end
-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: DES-EDE3-CBC,9d2f31adb7247f81
oOIUHrEDRoElz6wYUNWud/ZUWJsm/8JiraPgdCq6v5a6CqR6YCDgfZ2CzCP2vo0t
tZnP/mrf6Uq0VmLLEvTZZbt3CqUlC6deUI7k5gfowf3r3BmwolcqjtKok70yeFtd
Xu95O/0o/oSWdks1UUJNFSkZdmqvV8lDaYMwi/pXaO+wU61m0EpbTc6Fpy/jNknO
viVY4T4UjiH4yUoRlMNGXlg5EHwXrcG9zhpijh3BEGOJlrSRpaJgupgRGjVmd03g
p8H4QZIgDP8SOehWi/x+8UpLpKPD1wS/1ZCR5y6U8eV5r5fVtlaOp76yZFpXGO9z
Ab14LURB8tTvqPV3mtmdskdGBlaBC7JuWjQBOwJ8ma8EeeNllVwLuHfs5Ooax1yl