Skip to content

Instantly share code, notes, and snippets.

View jballanc's full-sized avatar

Joshua Ballanco jballanc

View GitHub Profile
diff --git a/dispatcher.cpp b/dispatcher.cpp
index 3eca605..08f2a32 100644
--- a/dispatcher.cpp
+++ b/dispatcher.cpp
@@ -484,6 +484,7 @@ fill_rcache(struct mcache *cache, Class klass, SEL sel,
{
cache->flag = MCACHE_RCALL;
rcache.klass = klass;
+ printf("Filling rcache <%p> with node: %p\n", (void *)&rcache, (void *)node);
rcache.node = node;
class Hello
def call(env)
[200, { 'Content-Type' => 'text/plain' }, "Hello, world! Your environment is #{env}"]
end
end
run Hello.new
http://www.vim.org/scripts/script.php?script_id=1984
nmap <silent> <C-t> :call fuf#givenfile#launch('', 0, '>', split(glob('./**/*'), "\n"))<CR>
framework 'CoreData'
a = NSAttributeDescription.alloc.init
a.setName "EmployeeName"
a.attributeType = NSStringAttributeType
puts "---\nMade an attribute: #{a.description}"
e = NSEntityDescription.alloc.init
e.setName "Employee"
e.setProperties [a]
if content_type || filename
body = Tempfile.new("RackMultipart")
body.binmode if body.respond_to?(:binmode)
end
diff --git a/ext/CTParser/CTParser.m b/ext/CTParser/CTParser.m
index 0eea5e6..ae31c1d 100644
--- a/ext/CTParser/CTParser.m
+++ b/ext/CTParser/CTParser.m
@@ -124,9 +124,9 @@ header_done(void *env, const char *at, size_t length)
}
// If we've been given any part of the body, put it here
- NSMutableArray *body = [environment objectForKey:@"rack.input"];
+ NSMutableData *body = [environment objectForKey:@"rack.input"];
diff --git a/ext/CTParser/CTParser.m b/ext/CTParser/CTParser.m
index ae31c1d..af217eb 100644
--- a/ext/CTParser/CTParser.m
+++ b/ext/CTParser/CTParser.m
@@ -124,13 +124,9 @@ header_done(void *env, const char *at, size_t length)
}
// If we've been given any part of the body, put it here
- NSMutableData *body = [environment objectForKey:@"rack.input"];
- if (body != nil) {
jballanc2: Source/Evolver/test ⚡(macruby) > DYLD_LIBRARY_PATH=~/Source/MacRuby gdb -args /usr/bin/macruby ../bin/evolver -n 10000 -f 100 ../environments/cluster_growth_1000.yml
GNU gdb 6.3.50-20050815 (Apple version gdb-1500) (Thu Jun 17 22:17:31 UTC 2010)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries ...... done
(gdb) r
jballanc2: Source/Evolver/test ⚡(macruby) > DYLD_LIBRARY_PATH=~/Source/MacRuby gdb -args /usr/bin/macruby ../bin/evolver -n 10000 -f 100 ../environments/cluster_growth_1000.yml
GNU gdb 6.3.50-20050815 (Apple version gdb-1500) (Thu Jun 17 22:17:31 UTC 2010)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries ...... done
(gdb) r