John Smith ddk50

View test.rb
1 2 3 4 5 6 7 8 9 10
require 'getoptlong'
require 'bayesdebug'
 
class AAA
def self.test
opts = GetoptLong.new(
[ '--help', '-h', GetoptLong::NO_ARGUMENT ],
[ '--repeat', '-n', GetoptLong::REQUIRED_ARGUMENT ],
[ '--name', GetoptLong::OPTIONAL_ARGUMENT ]
)
View test
1 2 3 4 5 6 7 8 9 10
diff --git a/lib/getoptlong.rb b/lib/getoptlong.rb
index 259382e..ae96943 100644
--- a/lib/getoptlong.rb
+++ b/lib/getoptlong.rb
@@ -446,7 +446,8 @@ class GetoptLong
terminate
return nil
elsif @ordering == PERMUTE
- while 0 < ARGV.length && ARGV[0] !~ /^-./
+## while 0 < ARGV.length && ARGV[0] !~ /^-./ correct
View NoobCode.rb
1 2 3 4 5 6 7 8 9 10
 
require 'bayesdebug.rb'
 
class Eratosthenes20
def self.isMultiple2(i)
## if i == 3
if i == 3
return false
end
View BayseRuby.patch
1 2 3 4 5 6 7 8 9 10
diff --git a/Makefile.in b/Makefile.in
index 6b12187..9a6e1b8 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -59,7 +59,7 @@ CPPFLAGS = @CPPFLAGS@ $(INCFLAGS)
LDFLAGS = @STATIC@ $(CFLAGS) @LDFLAGS@
EXTLDFLAGS =
XLDFLAGS = @XLDFLAGS@ $(EXTLDFLAGS)
-EXTLIBS =
+EXTLIBS = -lgsl -lgslcblas
Something went wrong with that request. Please try again.