Skip to content

Instantly share code, notes, and snippets.

@wrbs
wrbs / graph.svg
Created September 18, 2022 11:59
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wrbs
wrbs / evil.rb
Created August 26, 2013 23:50
Think you ruby likes you. Think again. Load it up into any program and you will have trouble displaying anything to the screen.
# 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
@wrbs
wrbs / gist:1397294
Created November 27, 2011 09:26
Hello World
#include <stdio.h>
int main(){
printf("hello World");
}