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
eval$x=%q(eval(%w(s="]k<<k7@k9 | |
9k@,7&]-7k.@61y?c<c@9k.?isu:,e | |
y<?2k_i]61 o@3i>k@_]9_g36o1@ | |
i4k?w/r?1o ?i=i?yoy65kok95 | |
qw6?ci_:<ye g'=ok?;g'n/g?o | |
i2?.(]{8{)- u8c@4>]u8c-u@ | |
gq7?@4]0;g? ;|g|;]*qkbk0e | |
g,_@eqqeqqg @>'] a<<0e4e5 | |
oi{25>|>?@ c8 &7*3986 | |
@a;;0+>*@2 _i m{@{+_( |
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
eval x=%q; | |
# A quine for Burn | |
# See github.com/remore/burn | |
scene 'quine' do | |
i=0 | |
a='eval x=%q'<<59<<x<<59 | |
b=a.lines | |
a.lines do | |
c = b.shift | |
label c.chomp, 1, i+=1 |
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 "coverage.so" | |
Coverage.start | |
at_exit { p Coverage.result } |
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
A♦8♥2♦2♠8♥7♦2♠8♥3♦2♠8♥7♦2♠8♥3♦2♠8♥6♦2♠8♥9♦2♠8♥6♦2♠8♥4♦2♠8♥4♦2♠8♥4♦2♠8♥9♦2♠8♥4♦2♠8♥4♦2♠8♥8♦2♠8♥5♦2♠8♥3♦2♠8♥9♦2♠8♥2♦2♠8♥6♦2♠8♥6♦2♠8♥2♦2♠8♥8♦2♠8♥6♦2♠8♥2♦2♠8♥6♦2♠8♥8♦2♠8♥5♦2♠8♥8♦2♠8♥3♦2♠8♥2♦2♠8♥8♦2♠8♥4♦2♠8♥7♦2♠8♥3♦2♠8♥7♦2♠8♥3♦2♠8♥6♦2♠8♥9♦2♠8♥6♦2♠8♥4♦2♠8♥3♦2♠8♥6♦2♠8♥9♦2♠8♥4♦2♠8♥2♦2♠8♥4♦2♠8♥5♦2♠8♥3♦2♠8♥9♦2♠8♥2♦2♠8♥6♦2♠8♥6♦2♠8♥7♦2♠8♥4♦2♠8♥6♦2♠8♥2♦2♠8♥6♦2♠8♥8♦2♠8♥5♦2♠8♥8♦2♠8♥3♦2♠8♥3♦2♠8♥2♦2♠8♥3♦2♠8♥7♦2♠8♥3♦2♠8♥7♦2♠8♥3♦2♠8♥6♦2♠8♥9♦2♠8♥6♦2♠8♥4♦2♠8♥4♦2♠8♥2♦2♠8♥5♦2♠8♥4♦2♠8♥2♦2♠8♥4♦2♠8♥5♦2♠8♥3♦2♠8♥9♦2♠8♥2♦2♠8♥6♦2♠8♥5♦2♠8♥3♦2♠8♥4♦2♠8♥6♦2♠8♥2♦2♠8♥6♦2♠8♥8♦2♠8♥5♦2♠8♥8♦2♠8♥3♦2♠8♥2♦2♠8♥8♦2♠8♥4♦2♠8♥7♦2♠8♥2♦2♠8♥3♦2♠8♥3♦2♠8♥6♦2♠8♥9♦2♠8♥6♦2♠8♥4♦2♠8♥4♦2♠8♥6♦2♠8♥5♦2♠8♥4♦2♠8♥4♦2♠8♥8♦2♠8♥5♦2♠8♥3♦2♠8♥9♦2♠8♥2♦2♠8♥6♦2♠8♥5♦2♠8♥4♦2♠8♥4♦2♠8♥6♦2♠8♥7♦2♠8♥6♦2♠8♥8♦2♠8♥5♦2♠8♥8♦2♠8♥3♦2♠8♥2♦2♠8♥9♦2♠8♥2♦2♠8♥7♦2♠8♥3♦2♠8♥5♦2♠8♥3♦2♠8♥6♦2♠8♥9♦2♠8♥6♦2♠8♥4♦2♠8♥3♦2♠8♥8♦2♠8♥3♦2♠8♥4♦2♠8♥4♦2♠8♥8♦2♠8♥5♦2♠8♥3♦2♠8♥9♦2♠8♥2♦2♠8♥6♦2♠8♥6♦2♠8♥2♦2♠8♥8♦2♠8♥6♦2♠8♥2♦2♠8♥6♦2♠8♥8♦2♠8♥5♦2♠8♥8♦2♠8♥3♦2♠8♥2♦2♠8♥8♦2♠8♥4♦2♠8♥7♦2♠8♥2♦2♠8♥3♦2♠8♥3♦2♠8♥6♦2♠8♥9♦2♠8♥6♦2♠8♥4♦2♠8♥3♦2♠8♥ |
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
$ wget https://raw.github.com/michaeldv/unbelievable/master/lib/unbelievable/haiku.rb | |
--2013-11-10 13:11:03-- https://raw.github.com/michaeldv/unbelievable/master/lib/unbelievable/haiku.rb | |
Resolving raw.github.com (raw.github.com)... 103.245.222.133 | |
Connecting to raw.github.com (raw.github.com)|103.245.222.133|:443... connected. | |
HTTP request sent, awaiting response... 200 OK | |
Length: 3772 (3.7K) [text/plain] | |
Saving to: 'haiku.rb' | |
100%[======================================>] 3,772 --.-K/s in 0s |
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
# 0 < A < B を仮定 | |
lower_num, lower_den = 0, 1 | |
upper_num, upper_den = 1, 0 | |
loop do | |
m_num = lower_num + upper_num | |
m_den = lower_den + upper_den | |
case | |
when m_num < A * m_den then lower_num, lower_den = m_num, m_den | |
when B * m_den < m_num then upper_num, upper_den = m_num, m_den |
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
# 0 < A < B < 1 を仮定 | |
lower, upper = 0, 1 | |
loop do | |
m = Rational(lower.numerator + upper.numerator, lower.denominator + upper.denominator) | |
case | |
when m < A then lower = m | |
when B < m then upper = m | |
else p [:found, m]; exit | |
end | |
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
$ cat test.R | |
cat("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
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
eval s=%q(require"gtk2" | |
x=y=30 | |
s="eval s=%q(#{s})" | |
GLib::Timeout.add(50) { | |
x,c=x+30,s.slice!(0,1) | |
if c.ord==10 | |
x,y=30,y+30 | |
elsif c.ord!=32 | |
w=Gtk::Window.new | |
w.set_decorated(false) |
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
c:\ruby\rubyinstaller>rake ruby20:package LOCAL=..\ruby | |
rake aborted! | |
Don't know how to build task 'ruby20:docs' | |
Tasks: TOP => ruby20:package => ruby20:package:installer => pkg/rubyinstaller-2.0.0-r37693.exe | |
(See full trace by running task with --trace) |