Public Gists by aslakhellesoy

Gravatar
Tue Nov 24 13:27:16 -0800 2009
1
2
3
/*
 * @LANG: java
 */
Gravatar
Wed Nov 18 10:40:30 -0800 2009
1
2
3
import org.codehaus.groovy.grails.cli.support.GrailsStarter
 
Thread.start {
Gravatar
Wed Nov 18 09:00:33 -0800 2009
1
2
3
======= get /calendar/feeds/default/owncalendars/full?gsessionid=694PxnDS4lARB3hKU8ll7w
opening connection to www.google.com...
opened
Gravatar
Wed Nov 18 04:16:58 -0800 2009
1
2
3
require 'oauth'
require 'oauth/consumer'
require 'oauth/signature/rsa/sha1'
Gravatar
Mon Nov 16 22:30:55 -0800 2009
1
2
3
class Person {
  private name
  
Gravatar
Mon Nov 16 13:19:48 -0800 2009
1
2
3
Feature: Submit Webform
  As a visitor to xxx.com
  I want to submit a form with some personal information
Gravatar
Thu Nov 12 18:11:19 -0800 2009
1
2
3
#!/bin/sh
# Slight mod of http://www.rubyinside.com/torquebox-an-all-in-one-javajboss-powered-ruby-webapp-platform-2783.html
wget http://repository.torquebox.org/maven2/releases/org/torquebox/torquebox-bin/1.0.0.Beta18/torquebox-bin-1.0.0.Beta18.zip
Gravatar
Wed Nov 11 11:23:29 -0800 2009
1
2
3
# --plugin Foo::MyWaveInput
module Foo
  class MyWaveInput < Cucumber::Input
Gravatar
Mon Oct 26 08:06:12 -0700 2009
1
2
3
C:\scm>irb
irb(main):001:0> require "rubygems"
=> true
Gravatar
Tue Oct 13 04:38:08 -0700 2009
1
2
3
aslakhellesoy$ bin/cucumber features/wire_protocol.feature:92 -f pretty
Using the default profile...
@wire
Gravatar
Fri Oct 09 07:20:43 -0700 2009
1
2
3
#!/usr/bin/env ruby
 
require 'rubygems'
Gravatar
Fri Oct 09 07:20:31 -0700 2009

      
Gravatar
Sat Sep 26 16:09:12 -0700 2009
1
2
3
$ irb
>> {}.eql?({})
=> false
Gravatar
Thu Sep 24 03:44:06 -0700 2009
1
2
3
require 'rubygems'
require 'term/ansicolor'
include Term::ANSIColor
Gravatar
Wed Sep 23 15:21:23 -0700 2009
1
2
3
# Paste this into lib/cucumber/rb_support/regexp_argument_matcher.rb
require 'cucumber/step_argument'
 
Gravatar
Mon Sep 21 14:52:15 -0700 2009
1
2
3
undefined method `fast_xs' for 85:Fixnum
 
/Library/Ruby/Gems/1.8/gems/hpricot-0.8.1/lib/hpricot/traverse.rb:826:in `[]='
Gravatar
Mon Aug 17 17:13:37 -0700 2009
1
2
3
import collection.immutable.TreeMap
import collection.mutable.ListBuffer
import reflect.Manifest
Gravatar
Mon Aug 03 07:37:54 -0700 2009
1
2
3
// How to combine this method declaration....
def Given(name: String, body: Function2[Int, String, Unit]): Unit = {
  body.apply(5, "belly")
Gravatar
Mon Aug 03 03:59:17 -0700 2009
1
2
3
// How would I do this in Scala?
// It should be possible to pass a proc of any arity and parameter types
def Given(name, proc) {
Gravatar
Sun Aug 02 02:41:35 -0700 2009
1
2
3
# WTF is printed for MRI 1.8.x and 1.9.x
# but not on JRuby.
#