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
# Annotations module, enable in base class with "extend Annotations" | |
module Annotations | |
def method_added(method_name) | |
a = self.instance_variable_get(:@_annotated_next_method) | |
if a != nil | |
_annotation_storage(:@_annotated_methods,{})[method_name] = a | |
self.instance_variable_set(:@_annotated_next_method, nil) | |
end | |
super |
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
72.13.91.46 - - [01/Feb/2010:17:29:24 +0000] "GET /images/ben.jpg HTTP/1.1" 200 3092 "-" "Java/1.6.0_18" | |
72.13.91.36 - - [01/Feb/2010:17:29:24 +0000] "GET /images/ben.jpg HTTP/1.1" 200 3092 "-" "Java/1.6.0_18" | |
72.13.91.40 - - [01/Feb/2010:17:29:24 +0000] "GET /images/ben.jpg HTTP/1.1" 200 3092 "-" "Java/1.6.0_18" | |
72.13.91.44 - - [01/Feb/2010:17:29:24 +0000] "GET /images/ben.jpg HTTP/1.1" 200 3092 "-" "Java/1.6.0_18" | |
72.13.91.38 - - [01/Feb/2010:17:29:24 +0000] "GET /images/ben.jpg HTTP/1.1" 200 3092 "-" "Java/1.6.0_18" | |
72.13.91.46 - - [01/Feb/2010:17:31:06 +0000] "GET /images/ben.jpg HTTP/1.1" 200 3092 "-" "Java/1.6.0_18" | |
72.13.91.40 - - [01/Feb/2010:17:31:07 +0000] "GET /images/ben.jpg HTTP/1.1" 200 3092 "-" "Java/1.6.0_18" | |
72.13.91.36 - - [01/Feb/2010:17:31:07 +0000] "GET /images/ben.jpg HTTP/1.1" 200 3092 "-" "Java/1.6.0_18" | |
72.13.91.44 - - [01/Feb/2010:17:31:07 +0000] "GET /images/ben.jpg HTTP/1.1" 200 3092 "-" "Java/1.6.0_18" | |
72.13.91.38 - - [01/Feb/2010:17:31:07 +0000] "GET /images/ben.jpg HTTP/1.1" 200 |
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
# Apple Binary Property List serializer for Ruby 1.8. | |
require 'iconv' | |
module AppleBinaryPropertyList | |
MIME_TYPE = 'application/octet-stream' # Don't know what to use, so use a very generic type for now | |
CFData = Struct.new(:data) # For marking strings as binary data which will be decoded as a CFData object | |
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
// -------------------- Describe the tables -------------------- | |
plugin.db.table("department", { | |
name: { type:"text" }, | |
roomNumber: { type:"int", nullable:true } | |
}, { | |
// Define a method on the row objects | |
fancyStuff: function(ping) { return ping + " pong"; } | |
}); |
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
thread = Thread.new do | |
require 'b.rb' | |
end | |
thread.join() |