###=begin / =end
Rib Rdb writes: "The new parser doesn't support this". Use single line comments instead.
/* --- */ format is also supported.
# http://gist.github.com/636681 | |
# http://tinyurl.com/learn-ruby-processing | |
require 'rinda/ring' | |
DRb.start_service | |
ring_server = Rinda::RingFinger.primary | |
o = ring_server.read([:name,:processing,nil,nil])[2] | |
o.stroke 255, 0, 0 #Red outline |
#start this first | |
require 'rinda/ring' | |
require 'rinda/tuplespace' | |
DRb.start_service | |
# Create a TupleSpace to hold named services, and start running | |
Rinda::RingServer.new Rinda::TupleSpace.new | |
# Wait until the user explicitly kills the server. |
#!/bin/sh | |
# Author: Carl Youngblood, 2010 | |
# Based on http://www.novell.com/coolsolutions/feature/15380.html | |
### BEGIN INIT INFO | |
# Provides: bluepill | |
# Required-Start: | |
# Required-Stop: | |
# Default-Start: 2 3 4 5 |
module Rack | |
class GoogleAnalytics | |
TRACKING_CODE = <<-EOCODE | |
<script type="text/javascript"> | |
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); | |
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); | |
</script> | |
<script type="text/javascript"> | |
try { | |
var pageTracker = _gat._getTracker("{{ID}}"); |
class Dynamical | |
define_method :works_fine do |&block| | |
5.times { |n| block.call(n) } | |
end | |
def self.defn name | |
define_method name do |&block| | |
5.times { |n| yield n } | |
end | |
end |