Skip to content

Instantly share code, notes, and snippets.

@martineno
Last active July 6, 2017 04:20
Show Gist options
  • Save martineno/1ec55f793bef427cb87a0610c833dc1d to your computer and use it in GitHub Desktop.
Save martineno/1ec55f793bef427cb87a0610c833dc1d to your computer and use it in GitHub Desktop.
Because I have nothing better to do with my time then to transcribe silly programming memes. This compiles on macOS 10.12.5 Xcode 8.3.3. I am not the author, my source is: https://twitter.com/jarrod_dixon/status/882328017502130176
#include <iostream>
#include <vector>
namespace ๐Ÿ”ต = std;
using ๐Ÿ”ข = int;
using ๐Ÿ’€ = void;
using ๐Ÿ•– = time_t;
using ๐Ÿ‘Œ = bool;
#define ๐Ÿ‘‚ auto
#define ๐ŸŽŒ enum
#define ๐Ÿ‘Ž false
#define ๐Ÿ‘ true
#define ๐Ÿ‘น "evil"
#define ๐Ÿ’ช ๐Ÿ”ต::make_shared
#define ๐Ÿธ virtual
#define ๐Ÿ–ฅ ๐Ÿ”ต::cout
#define ๐Ÿ”ซ ๐Ÿ”ต::endl
template<class ๐Ÿ”ฎ>
using ๐Ÿ“š = ๐Ÿ”ต::vector<๐Ÿ”ฎ>;
template<class ๐Ÿ”ฎ>
using ๐Ÿ‘‡ = ๐Ÿ”ต::shared_ptr<๐Ÿ”ฎ>;
๐ŸŽŒ ๐Ÿ’ { ๐Ÿต, ๐Ÿ™ˆ, ๐Ÿ™‰, ๐Ÿ™Š };
๐Ÿ”ข ๐ŸŽฒ() { return ๐Ÿ”ต::rand(); }
๐Ÿ‘Œ ๐Ÿ˜Ž() { return ๐Ÿ‘Ž; }
struct ๐Ÿด { ๐Ÿธ ๐Ÿ’€ ๐Ÿ‘€() = 0; };
struct ๐ŸŠ : ๐Ÿด { ๐Ÿธ ๐Ÿ’€ ๐Ÿ‘€() { ๐Ÿ–ฅ << "๐ŸŠ" << ๐Ÿ”ซ; }; };
struct ๐Ÿ‰ : ๐Ÿด { ๐Ÿธ ๐Ÿ’€ ๐Ÿ‘€() { ๐Ÿ–ฅ << "๐Ÿ‰" << ๐Ÿ”ซ; }; };
// This is outputting melon in the original
struct ๐Ÿ’ : ๐Ÿด { ๐Ÿธ ๐Ÿ’€ ๐Ÿ‘€() { ๐Ÿ–ฅ << "๐Ÿ’" << ๐Ÿ”ซ; }; };
struct ๐Ÿ“ : ๐Ÿด { ๐Ÿธ ๐Ÿ’€ ๐Ÿ‘€() { ๐Ÿ–ฅ << "๐Ÿ“" << ๐Ÿ”ซ; }; };
struct ๐Ÿ : ๐Ÿด { ๐Ÿธ ๐Ÿ’€ ๐Ÿ‘€() { ๐Ÿ–ฅ << "๐Ÿ" << ๐Ÿ”ซ; }; };
struct ๐ŸŽ : ๐Ÿด { ๐Ÿธ ๐Ÿ’€ ๐Ÿ‘€() { ๐Ÿ–ฅ << "๐ŸŽ" << ๐Ÿ”ซ; }; };
๐Ÿ”ข main() {
if (๐Ÿ˜Ž() == ๐Ÿ‘Ž)
๐Ÿ–ฅ << "๐Ÿ’ฉ" << ๐Ÿ”ซ;
// The original has the strawberry missing in the vector... Sorry I mean ๐Ÿ“š
๐Ÿ“š<๐Ÿ‘‡<๐Ÿด>> ๐Ÿฅž = { ๐Ÿ’ช<๐ŸŠ>(), ๐Ÿ’ช<๐Ÿ‰>(), ๐Ÿ’ช<๐Ÿ’>(), ๐Ÿ’ช<๐Ÿ“>(), ๐Ÿ’ช<๐Ÿ>(), ๐Ÿ’ช<๐ŸŽ>() };
for (๐Ÿ‘‚ ๐Ÿ : ๐Ÿฅž)
๐Ÿ->๐Ÿ‘€();
return ๐ŸŽฒ();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment