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
### Keybase proof | |
I hereby claim: | |
* I am barttenbrinke on github. | |
* I am barttenbrinke (https://keybase.io/barttenbrinke) on keybase. | |
* I have a public key whose fingerprint is 0A3B 665C 519E EC2F 5704 187C 4427 04E3 83E6 878C | |
To claim this, I am signing this 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
require 'open-uri' | |
(0..9).to_a.reverse.each do |first| | |
%w(A B C D E F G H I J K L M N O P Q R S T U V W X Y Z).each do |second| | |
(0..9).each do |third| | |
%w(A B C D E F G H I J K L M N O P Q R S T U V W X Y Z).each do |fourth| | |
puts '.' | |
(0..99).each do |fifth| | |
fifth = "0#{fifth}" if fifth < 10 | |
try_code = "#{first}#{second}#{third}#{fourth}#{fifth}" #7T2Z03 |
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
Rubinius Crash Report #rbxcrashreport | |
Error: signal |
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 ActiveRecord::Base | |
# Options | |
# <tt>:only</tt> Only select a specific set of columns | |
def self.all_as_json(options = {}) | |
find_columns = self.columns.collect{|x| x.name} | |
find_columns = find_columns.select{|x| options[:only].include?(x)} if options[:only] | |
sql_query = 'SELECT ' |
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 Base64 | |
def self.encode64(string) | |
NSData.alloc.initWithData(string).base64EncodedString | |
end | |
def self.decode64(string) | |
data = NSData.dataFromBase64String(string) | |
NSString.alloc.initWithData(data, encoding:NSUTF8StringEncoding) | |
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
server:~ $ brew install -v fuse4x-kext | |
sh: line 1: 9774 Abort trap: 6 /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -version 2> /dev/null | |
sh: line 1: 9776 Abort trap: 6 /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -version 2> /dev/null | |
sh: line 1: 9785 Abort trap: 6 /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -version 2> /dev/null | |
==> Downloading https://github.com/fuse4x/kext/tarball/fuse4x_0_9_1 | |
Already downloaded: /Library/Caches/Homebrew/fuse4x-kext-0.9.1.tgz | |
/usr/bin/tar xf /Library/Caches/Homebrew/fuse4x-kext-0.9.1.tgz | |
==> /usr/bin/xcodebuild -sdk macosx10.7 -configuration Release -alltargets MACOSX_DEPLOYMENT_TARGET=10.7 SYMROOT=build ARCHS=i386 x86_64 ONLY_ACTIVE_ARCH=NO |
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
creating extconf.h | |
creating Makefile | |
make | |
compiling readline.c | |
readline.c: In function 'username_completion_proc_call': | |
readline.c:1389: error: 'username_completion_function' undeclared (first use in this function) | |
readline.c:1389: error: (Each undeclared identifier is reported only once | |
readline.c:1389: error: for each function it appears in.) | |
make: *** [readline.o] Error 1 | |
rake aborted! |
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
rubinius master rake | |
(in /Users/user/programming/rubinius) | |
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby vm/codegen/field_extract.rb vm/builtin/basicobject.hpp vm/builtin/object.hpp vm/builtin/integer.hpp vm/builtin/fixnum.hpp vm/builtin/array.hpp vm/builtin/bignum.hpp vm/builtin/executable.hpp vm/builtin/access_variable.hpp vm/builtin/alias.hpp vm/builtin/block_environment.hpp vm/builtin/block_as_method.hpp vm/builtin/bytearray.hpp vm/builtin/io.hpp vm/builtin/channel.hpp vm/builtin/module.hpp vm/builtin/class.hpp vm/builtin/compiledmethod.hpp vm/builtin/data.hpp vm/builtin/dir.hpp vm/builtin/exception.hpp vm/builtin/float.hpp vm/builtin/immediates.hpp vm/builtin/iseq.hpp vm/builtin/list.hpp vm/builtin/lookuptable.hpp vm/builtin/ffi_pointer.hpp vm/builtin/methodtable.hpp vm/builtin/nativefunction.hpp vm/builtin/packed_object.hpp vm/builtin/randomizer.hpp vm/builtin/regexp.hpp vm/builtin/staticscope.hpp vm/builtin/encoding.hpp vm/builtin/string.hpp vm/builtin/symbol.hpp vm/builtin/thread |
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/vm/builtin/string.cpp b/vm/builtin/string.cpp | |
index 49e5628..52e7848 100644 | |
--- a/vm/builtin/string.cpp | |
+++ b/vm/builtin/string.cpp | |
@@ -944,20 +944,9 @@ namespace rubinius { | |
native_int limit; | |
bool assign(native_int chr) { | |
- int j, i = set[chr]; | |
- |
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
# -*- encoding : utf-8 -*- | |
require 'spec_helper' | |
## Only run the sphinx test if we can actually run them | |
if sphinx_test_possible? | |
describe "Sphinx Integration Test" do | |
describe "searching for employees" do |
OlderNewer