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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.florianebeling.rubygems.server</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/opt/local/bin/ruby</string> | |
<string>/opt/local/bin/gem</string> |
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/sh | |
# -*- shell-script -*- | |
query="" | |
for term in $@ | |
do | |
if [[ $query ]] ; then | |
query+="+$term" | |
else | |
query=$term | |
fi |
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
-define(callstack(), | |
try throw(generate_stack) | |
catch | |
throw:generate_stack -> | |
erlang:get_stacktrace() | |
end). | |
-define(printstack(), | |
PrintFrame = fun({Mod, Fun, Ari}) -> | |
io:format(" at ~w:~w/~w~n", [Mod, Fun, Ari]) |
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
diff --git a/Rakefile b/Rakefile | |
index 5ee59ba..c213697 100644 | |
--- a/Rakefile | |
+++ b/Rakefile | |
@@ -28,6 +28,7 @@ begin | |
s.homepage = "http://github.com/langalex/couch_potato" | |
s.description = "Ruby persistence layer for CouchDB" | |
s.authors = ["Alexander Lang"] | |
+ s.files = FileList["[A-Z]*.*", "{lib,spec,rails}/**/*", "init.rb"] | |
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
$ time dd if=/dev/urandom of=testfile bs=1024 count=$((1024 * 1024)) | |
1048576+0 records in | |
1048576+0 records out | |
1073741824 bytes transferred in 158.475750 secs (6775433 bytes/sec) | |
real 2m38.479s | |
user 0m1.718s | |
sys 2m29.530s | |
$ time dd if=/dev/zero of=testfile bs=1024 count=1 seek=$((1024 * 1024)) | |
1+0 records in |
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 'rbconfig' | |
LIBDIR = Config::CONFIG['rubylibdir'] | |
DOCDIR = File.expand_path(Config::CONFIG['ruby_install_name'] + "_rdoc") | |
BINDIR = Config::CONFIG['bindir'] | |
RUBY = BINDIR + '/'+ Config::CONFIG['ruby_install_name'] | |
TITLE = "Ruby #{RUBY_VERSION} Stdlib Documentation" | |
/ruby(.*)/.match(Config::CONFIG['ruby_install_name']) | |
SUFFIX = $1 |
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
# Rake Quick Reference | |
# by Greg Houston | |
# http://ghouston.blogspot.com/2008/07/rake-quick-reference.html | |
# ----------------------------------------------------------------------------- | |
# Running Rake | |
# ----------------------------------------------------------------------------- | |
# running rake from the command-line: | |
# rake --help |
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
/ExampleTypingAttributes.xcodeproj/project.xcworkspace/contents.xcworkspacedata | |
/ExampleTypingAttributes.xcodeproj/project.xcworkspace/xcuserdata/*.xcuserdatad/UserInterfaceState.xcuserstate | |
/ExampleTypingAttributes.xcodeproj/project.xcworkspace/xcuserdata/*.xcuserdatad/WorkspaceSettings.xcsettings | |
/ExampleTypingAttributes.xcodeproj/xcuserdata/*.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist | |
/ExampleTypingAttributes.xcodeproj/xcuserdata/*.xcuserdatad/xcschemes/ExampleTypingAttributes.xcscheme | |
/ExampleTypingAttributes.xcodeproj/xcuserdata/*.xcuserdatad/xcschemes/xcschememanagement.plist | |
~* |
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
xcuserdata |
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
#import <objc/runtime.h> | |
-(void)dumpInfo | |
{ | |
Class clazz = [self class]; | |
u_int count; | |
Ivar* ivars = class_copyIvarList(clazz, &count); | |
NSMutableArray* ivarArray = [NSMutableArray arrayWithCapacity:count]; | |
for (int i = 0; i < count ; i++) |
OlderNewer