Skip to content

Instantly share code, notes, and snippets.

@serverwentdown
Last active December 29, 2015 05:49
Show Gist options
  • Save serverwentdown/7624376 to your computer and use it in GitHub Desktop.
Save serverwentdown/7624376 to your computer and use it in GitHub Desktop.

In Python:

def eat():
    print "Eat",
def sleep():
    print "Sleep",
def rave():
    print "Rave",

while True:
    eat()
    sleep()
    rave()

In JavaScript

function do(what) {
    console.log(what);
}
while (true) {
    do("Eat");
    do("Sleep");
    do("Rave");
}

In Brainfuck

Warning: May crash your interpreter!

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>++++++++++++++++++++++++++++++++<<[++++.>.+++++++++++++++++++.>.<<++++++++++++++.>--------.-------..+++++++++++.>.<<-.>---------------.+++++++++++++++++++++.-----------------.>.<<----------------->----<#]

In PHP

<?php
function run($what) {
    echo $what;
}
while (true) {
    run("Eat ");
    run("Sleep ");
    run("Rave ");
}
?>

In C

#import <iostream>
using namespace std;
int main() {
    while (true) {
        cout << "Eat ";
        cout << "Sleep ";
        cout << "Rave ";
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment