Last active
August 29, 2015 13:56
-
-
Save ferrix/9224692 to your computer and use it in GitHub Desktop.
Sometimes you have to speak C VERY LOUDLY to Ruby people
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
program SoooFunny; | |
begin | |
writeln('unsigned three = 1;'); | |
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
# Regular expressions are great in explaining how a joke is dissonance between | |
# expectation and a surprising twist in the story. | |
my $expectation = "unsigned three = 3;\n"; | |
my $surprise = $expectation =~ s/3/1/r; | |
print ($surprise); |
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
# This Gist makes the joke in | |
# https://github.com/torvalds/linux/blob/d158fc7f36a25e19791d25a55da5623399a2644f/fs/ext4/resize.c#L698 | |
# understandable to those who prefer Ruby. | |
class ThePunchline | |
def initialize(number) | |
@number = number | |
end | |
def badumTsih | |
puts "unsigned three = #{@number};" | |
end | |
end | |
haha = ThePunchline.new("1") | |
haha.badumTsih |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment