Skip to content

Instantly share code, notes, and snippets.

@erikformella
erikformella / dabbutHax.js
Created November 12, 2011 15:34
dick move
/*
USAGE:
copy and paste all of this into the javascript console. you can then call falseVote(ians_comment_id, times) to upvote
ian as partygoer times times. you can also provide your own comment_id by doing an inspect element on the voting div
on anyone's profile.
the ajax requests are synchronous to allow for the coockie bs. this makes the execution seem slow for large times.
i wonder how long it takes to run it for thousands of iterations...
*/
@erikformella
erikformella / class_test.cpp
Created November 5, 2011 15:37
showing how virtual functions can make pseudo type introspection
#include <iostream>
#include <vector>
using namespace std;
class Animal
{
public:
virtual void sound()
{