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
require 'spqr/spqr' | |
require 'spqr/app' | |
require 'logger' | |
class Hello | |
include SPQR::Manageable | |
def hello(args) | |
args[:result] = "Hello, #{args[:name]}!" | |
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
require 'spqr/spqr' | |
require 'spqr/app' | |
require 'logger' | |
class Hello | |
include SPQR::Manageable | |
def hello(args) | |
@people_greeted ||= 0 | |
@people_greeted = @people_greeted + 1 | |
args["result"] = "Hello, #{args['name']}!" |
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 Hello | |
def hello(args) | |
args["result"] = "Hello, #{args['name']}!" | |
end | |
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
#!/usr/bin/env ruby | |
# This is a simple logging service that operates over QMF. The API is | |
# pretty basic: | |
# LogService is a singleton and supports the following methods: | |
# * debug(msg) | |
# * warn(msg) | |
# * info(msg) | |
# * error(msg) | |
# each of which creates a log record of the given severity, |
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
module Examples | |
module Codegen | |
class EchoAgent | |
include SPQR::Manageable | |
# Find method (NB: you must implement this) | |
def EchoAgent.find_by_id(objid) | |
EchoAgent.new | |
end | |
# Find-all method (NB: you must implement this) |
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
require 'qmf' | |
require 'thread' | |
$queue = Queue.new | |
class MyHandler < Qmf::ConsoleHandler | |
def agent_added(agent) | |
$queue << agent | |
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
/usr/bin/ruby -I"lib:lib:test" "/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/test_spqr_dummyprop.rb" "test/test_spqr_clicker.rb" "test/test_spqr_integerprop.rb" "test/test_rhubarb.rb" "test/test_spqr_hello.rb" | |
(in /home/wibenton/devel/spqr) | |
All dependencies seem to be installed. | |
Loaded suite /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader | |
Started | |
.............................................Console Connection Established... | |
.EEEE.E.EE | |
Finished in 132.22105 seconds. | |
1) Error: |
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
Gang, | |
As I see it, the big choice to make regarding the public git | |
repository is whether we host it on pinguino (over http or git-daemon) | |
or whether we host it off-site. In either case, we will need to | |
set up a cron job (or post-commit hooks) to ensure that public-facing | |
branches in the public repo are updated at regular intervals from | |
the corresponding heads in the private repo. | |
I would like to suggest that we consider hosting off-site with |
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
require 'spqr/spqr' | |
require 'spqr/app' | |
require 'logger' | |
class Hello | |
include SPQR::Manageable | |
# Input (in and inout) parameters are passed to exposed methods in | |
# the order they are declared in the expose block (see below). | |
def hello(name) |
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
#!/bin/bash | |
# git-mirror.sh takes a source repository (given with -s; this must be | |
# on the local filesystem and defaults to the current directory), a | |
# destination repository (-d), and an optional branch pattern (-p, | |
# defaults to a pattern that will find all condor release branches as | |
# well as the current stable and devel branches). You may also | |
# specify -f to force a push to the destination, or -c to clobber all | |
# destination heads that have corresponding source heads. |