This file contains hidden or 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 "win32ole" | |
class ExcelOutputter | |
def initialize(workbook_filename) | |
@workbook_filename = workbook_filename | |
# Create an instance of the Excel application object | |
@excel = WIN32OLE.new('Excel.Application') | |
# Make Excel visible | |
@excel.Visible = 1 | |
# Add a new Workbook object |
This file contains hidden or 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
http://stackoverflow.com/questions/7783102/using-rvm-and-git-can-i-associate-a-ruby-version-with-each-branch/7787316#7787316 | |
A) rbenv has nothing to do with RVM, quit attempting to push rbenv to people asking RVM questions. Is the guy paying you to troll RVM questions and start pushing rbenv in another lame attempt to get people to switch? Bad enough he's already spread FUD about the RVM project and the internals of RVM as it is. | |
B) TO answer the question, yes using the post-checkout hook is what you would want to do. Just reload rvm and it will pick it up. Also, the reason for the need to have one per branch is because if you change it the next checkout will overwrite it with the original. Thats why. (More explaining so people understand why it has to be reloaded at all) |
This file contains hidden or 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
[1, 2, 3].map(&:to_s) |
This file contains hidden or 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
Andrew-Grimms-MacBook-Pro:~ agrimm$ date | |
Thu 4 Aug 2011 23:24:48 EST | |
Andrew-Grimms-MacBook-Pro:~ agrimm$ rvm install 1.9.1-p431 | |
Installing Ruby from source to: /Users/agrimm/.rvm/rubies/ruby-1.9.1-p431, this may take a while depending on your cpu(s)... | |
ruby-1.9.1-p431 - #fetching | |
ruby-1.9.1-p431 - #downloading ruby-1.9.1-p431, this may take a while depending on your connection... | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0 |
This file contains hidden or 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
Andrew-Grimms-MacBook-Pro:hiv_recombination agrimm$ rvm install 1.9.1 | |
Installing Ruby from source to: /Users/agrimm/.rvm/rubies/ruby-1.9.1-p431, this may take a while depending on your cpu(s)... | |
ruby-1.9.1-p431 - #fetching | |
ruby-1.9.1-p431 - #downloading ruby-1.9.1-p431, this may take a while depending on your connection... | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
0 0 0 0 0 0 0 0 --:--:-- 0:00:04 --:--:-- 0 | |
curl: (22) The requested URL returned error: 500 | |
ERROR: The requested url does not exist: 'https://rvm.beginrescueend.com/src/ruby-1.9.1-p431.tar.bz2' |
This file contains hidden or 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
# Originally benchmark code and results for: | |
# http://blog.gregspurrier.com/articles/relative-performance-of-symbol-to-proc-in-popular-ruby-implementations | |
# Modified by Andrew Grimm to see if memoization could help in 1.8.7. | |
require 'benchmark' | |
class Dummy | |
# attr_reader is marginally faster than "real" methods | |
attr_reader :one | |
def initialize() @one = 1; end |
This file contains hidden or 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
tl;dr: Seemed to install, but some errors to do with gems? | |
Last login: Sat May 28 14:05:35 on ttys008 | |
Andrew-Grimms-MacBook-Pro:~ agrimm$ rvm install jruby-head | |
jruby-head - #fetching | |
HEAD is now at 3fe11da Fix JRUBY-5780 - set all FFI initialize methods to be private visibility. Pointed out and initial patch by Chung Shin Yee <[email protected]> | |
remote: Counting objects: 1708, done. | |
remote: Compressing objects: 100% (448/448), done. | |
remote: Total 1323 (delta 890), reused 1156 (delta 727) | |
Receiving objects: 100% (1323/1323), 386.90 KiB | 155 KiB/s, done. |
This file contains hidden or 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
# It worked this time, apart from Rubygems! | |
Andrew-Grimms-MacBook-Pro:~ agrimm$ rvm list | |
rvm rubies | |
jruby-1.6.0 [ darwin-x86_64-java ] | |
jruby-1.6.0.RC2 [ darwin-x86_64-java ] | |
jruby-head [ darwin-x86_64-java ] | |
rbx-1.2.1-20110215 [ x86_64 ] |
This file contains hidden or 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
agrimm@BlackHole:~/virtual/small_eigen_collider$ ruby --version | |
jruby 1.6.1 (ruby-1.8.7-p330) (2011-04-12 85838f6) (OpenJDK Client VM 1.6.0_22) [linux-i386-java] | |
agrimm@BlackHole:~/virtual/small_eigen_collider$ ruby --1.9 | |
require "yaml" | |
YAML::ENGINE.yamler = "syck" | |
YAML.dump(42) | |
NameError: uninitialized constant Syck::Yecht | |
const_missing at org/jruby/RubyModule.java:2526 | |
allocate at org/jruby/RubyClass.java:218 | |
emitter at /home/agrimm/.rvm/rubies/jruby-1.6.1/lib/ruby/1.9/syck.rb:102 |
This file contains hidden or 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
agrimm@BlackHole:~$ rvm install kiji | |
Installing Ruby from source to: /home/agrimm/.rvm/rubies/kiji-head, this may take a while depending on your cpu(s)... | |
kiji-head - #fetching | |
Cloning from git://github.com/twitter/rubyenterpriseedition187-248.git, this may take a while depending on your connection... | |
Cloning into /home/agrimm/.rvm/repos/kiji-head... | |
remote: Counting objects: 3435, done. | |
remote: Compressing objects: 100% (3003/3003), done. | |
remote: Total 3435 (delta 530), reused 2587 (delta 310) | |
Receiving objects: 100% (3435/3435), 8.03 MiB | 154 KiB/s, done. |