Skip to content

Instantly share code, notes, and snippets.

View fbrubacher's full-sized avatar

Federico Brubacher fbrubacher

  • Montevideo, Uruguay
View GitHub Profile
;;
;; Thus spake the master programmer:
;; "Though a program be but three lines long, someday it will have to be
;; maintained."
;;
(ns hiredman.clojurebot
(:import (org.jibble.pircbot PircBot)))
(def nick "clojurebot")
/usr/local/lib/ruby191/1.9.1/rubygems.rb:636:in `report_activate_error': Could not find RubyGem rack (~> 1.0.0) (Gem::LoadError)
from /usr/local/lib/ruby191/1.9.1/rubygems.rb:141:in `activate'
from /usr/local/lib/ruby191/1.9.1/rubygems.rb:49:in `gem'
from /Users/federicobrubacher/src/rails/trunk/vendor/rails/actionpack/lib/action_controller.rb:34:in `<top (required)>'
require 'thread'
require 'time'
require 'uri'
require 'rack'
require 'rack/builder'
require 'sinatra/showexceptions'
module Sinatra
VERSION = '0.9.4'
# Returns the default layout for this controller and a given set of details.
# Optionally raises an exception if the layout could not be found.
#
# ==== Parameters
# details<Hash>:: A list of details to restrict the search by. This
# might include details like the format or locale of the template.
# require_layout<Boolean>:: If this is true, raise an ArgumentError
# with details about the fact that the exception could not be
# found (defaults to false)
#
class MyApp1 < Padrino::Application
configure do
register SassInitializer
register Padrino::Helpers
register Padrino::Mailer
register Padrino::Warden
enable :sessions
use Rack::Session::Cookie, :key => 'rack.session', :expire_after => 31556926
(deftype RedisSet [key]
PhmBase
(setr [this transaction value] (-> transaction (.sadd key value))))
In the java part :
protected String getStatusCodeReply() {
public class App
{
public static Flow getFinalizingJob()
{
Scheme sourceScheme = new TextLine( new Fields( "line" ) );
Tap source = new Hfs( sourceScheme, "results2" );
Scheme sinkScheme = new TextLine( new Fields( "word", "count" ) );
Tap sink = new Hfs( sinkScheme, "results3", SinkMode.REPLACE );
Pipe assembly = new Pipe( "wordcount" );
String regex = "(?<!\\pL)(?=\\pL)[^ ]*(?<=\\pL)(?!\\pL)";
SIM-F82F-D583-40B1-AE74-B79F-705D-1952
Modified src/main/clj/lemur/core.clj
diff --git a/src/main/clj/lemur/core.clj b/src/main/clj/lemur/core.clj
index 0d3f6b6..41805b5 100644
--- a/src/main/clj/lemur/core.clj
+++ b/src/main/clj/lemur/core.clj
@@ -476,7 +476,6 @@ calls launch - take action (upload files, start cluster, etc)
(if (map? step)
(let [estep (evaluating-step cluster step)]
(assoc (select-keys estep [:main-class :step-name])
- :args (step-args estep)
SIM-F82F-D583-40B1-AE74-B79F-705D-1952