Giter Site home page Giter Site logo

yeetify's Introduction

yeetify

Yeetify is a humorous utility meant to turn the entirety of your C or C++ code into permutations of the word 'yeet'.

Inspired by this reddit post.

Installation

First, the executable must be built, which can be done by simply calling g++ yeetify.cpp -o yeetify. Once you compile, make sure to move the executable to your PATH.

Usage

To use yeetify, simply call yeetify file_path, as long as the path is to a .c, .cc, or.cpp file. This will work best if the file has spaces between each individual token (e.g. brackets, operators, keywords, etc.), but will still work as long as there are no multiple-word quotes.

How it works

The program iterates line-by-line, ignoring all using, #define or #include macros. It takes in each unique word/token and pairs it with a randomly generated permutation of the word 'yeet'. It then makes a copy of the original file and replaces each word with its counterpart (again, ignoring all directives).

Sample Usage

Just like the inspiration, assume a file called foo.cpp that contains the following code:

#include <iostream>
int main ( )  
{
	std :: cout << "Yeet!" ;
	return 0 ;
}

Running ./yeetify foo, we generate the file foo_yeetified.cpp:

#include  <iostream>

#define yE "Yeet!"
#define yEET (
#define yEEe )
#define yEEt 0
#define yET ::
#define yEe ;
#define yEtt <<
#define ye cout
#define yeE main
#define yeEe return
#define yee std
#define yetT {
#define yett }

yeE yEET yEEe 
yetT 
yee yET ye yEtt yE yEe 
yeEe yEEt yEe 
yett 

yeetify's People

Contributors

y2kmurali avatar zjweiss avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.