Skip to content

Instantly share code, notes, and snippets.

View cmeiklejohn's full-sized avatar
💭
Always working.

Christopher S. Meiklejohn cmeiklejohn

💭
Always working.
View GitHub Profile
@alexg0
alexg0 / installing_jruby_on_ubuntu.sh
Created November 27, 2009 19:18
Installing jruby on ubuntu
# get current jruby
wget http://jruby.kenai.com/downloads/1.4.0/jruby-bin-1.4.0.tar.gz
tar xzvf jruby-bin-1.4.0.tar.gz
sudo mv jruby-1.4.0/ /opt
# link executables in /usr/local/bin
sudo ln -s /opt/jruby-1.4.0/bin/{jgem,jirb,jruby} /usr/local/bin
ouvasam # Hello Using ripple is there something to delete an embedded document
seancribbs # ouvasm: one or many?
ouvasam # many
]seancribbs # the association proxies an array, so you should be able
to do doc.embedded_docs.delete(embedded_doc)
ouvasam # thanks, but using a html form, how can i retrieve the embedded doc ?

##Enlight Solutions Seeks a Rubyist That Wants to Learn##

Are you looking for a part time ruby gig (15-20 hours / week)? Come learn and grow with Enlight Solutions. It's a great opportunity to improve your coding skills and create awesome applications. This could eventually turn out to be a full time, salaried position.

If you're interested, please send me your github account, references, hourly rate, and/or code samples (in lieu of a github account). Resumes are great, but practical application and endorsements from your peers or clients will secure the position.

###You will:###

  • Learn design patterns and architectural techniques that will serve you greatly in the future
  • Learn Rails 3
set nocompatible
set number
set ruler
syntax on
" Whitespace stuff
set nowrap
set tabstop=2
set shiftwidth=2
@derencius
derencius / utf8_header.rb
Created February 3, 2011 19:05 — forked from francesc/utf8encode.rake
thor file to add utf-8 header on ruby files. useful for converting ruby 1.8 projects to 1.9
class Utf8Header < Thor
desc "add", "Add Content UTF-8 on top of all .rb/.feature files"
# copy & pasted from https://gist.github.com/738245
def add
files = Array.new
["*.rb", "*.rake","*.feature"].each do |extension|
files.concat(Dir[ File.join(Dir.getwd.split(/\\/), "**", extension) ])
end
files.each do |file|
Stacktrace:
[~/Sites/app] cucumber
Using the default profile...
undefined method `javascript_driver=' for Capybara:Module (NoMethodError)
/Users/pma/Sites/app/features/support/env.rb:10:in `block in <top (required)>'
/Users/pma/.rvm/gems/ruby-1.9.2-p290/gems/spork-0.9.0.rc9/lib/spork.rb:24:in `prefork'
/Users/pma/Sites/app/features/support/env.rb:4:in `<top (required)>'
/Users/pma/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.0.6/lib/cucumber/rb_support/rb_language.rb:143:in `load'
/Users/pma/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.0.6/lib/cucumber/rb_support/rb_language.rb:143:in `load_code_file'
@josevalim
josevalim / rbx_partial_application.diff
Created September 17, 2011 20:59
Partial application on rubinius. Apply the diff to rubinius project and run `rake build`. Idea by @josevalim, code by @wycats.
diff --git a/lib/compiler/ast/transforms.rb b/lib/compiler/ast/transforms.rb
index 19e1cfb..4e52ec2 100644
--- a/lib/compiler/ast/transforms.rb
+++ b/lib/compiler/ast/transforms.rb
@@ -59,6 +59,71 @@ module Rubinius
end
end
+ # Provide an underscore node that allows partial application in Ruby.
+ # Instead of doing a method call, we are going to generate a lambda
gem install showoff
git clone git://github.com/brixen/presentations.git
cd presentations/rubyconf11
showoff serve
dir = File.expand_path("..", __FILE__)
require File.join(dir, "redis_protocol")
require 'pp'
class APIFront
GEM_STORE = "http://production.s3.rubygems.org"