View evil.rb
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
# Monkeypatching like a boss | |
class Array | |
def do_def(&block) | |
self.each do |method| | |
Kernel.send :define_method, method, &block | |
end | |
end | |
end | |
# Think you can print anything. You must be stupid |
View gist:1397294
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
#include <stdio.h> | |
int main(){ | |
printf("hello World"); | |
} |