Skip to content

Instantly share code, notes, and snippets.

@io12
Created July 4, 2016 01:45
Show Gist options
  • Save io12/2301a329e2c39851ab65f97d87bd5474 to your computer and use it in GitHub Desktop.
Save io12/2301a329e2c39851ab65f97d87bd5474 to your computer and use it in GitHub Desktop.
#include<stdio.h>
#define p printf
#define n(X)
#define class struct{struct
#define HelloWorld
#define public int x;}out;}System;
#define static
#define void int
#define String int a,char*
#define println(X) x;p(" _ _ _ \
_ _ _ _\n");{{
#define print(X) p("| | | | ___| | | _\
__ __ _____ _ __| | __| | |\n");
#define console System.out
#define log(X) x;p("| |_| |/ _ \\ | |/\
_ \\ \\ \\ /\\ / / _ \\| '__| |/ _` | |\n");
#define echo p("| _ | __/ | | (_) |\
\\ V V / (_) | | | | (_| |_|\n");n(
#define Main(X) i;
#define Console out
#define WriteLine(X) x;p("|_| |_|\\___\
|_|_|\\___/ \\_/\\_/ \\___/|_| |_\
|\\__,_(_)\n\n");{
//---------------------------------------------------------------
// Java
class HelloWorld {
public static void main(String args[]) {
System.out.println("Hello world!");
}
}
//---------------------------------------------------------------
// Python
print("Hello world!")
//---------------------------------------------------------------
// JavaScript
console.log("Hello world!")
//---------------------------------------------------------------
// bash
echo "Hello world!"
//---------------------------------------------------------------
// Brainf***
++++++++++[>+>+++>++++>+++++++>++++++++>+++++++++>++
++++++++>+++++++++++>++++++++++++<<<<<<<<<-]>>>>+.>>>
>+..<.<++++++++.>>>+.<<+.<<<<++++.<++.>>>+++++++.>>>.+++.
<+++++++.--------.<<<<<+.<+++.---.
//---------------------------------------------------------------
// C#
namespace HelloWorld {
class Program { /*(*/)
static void Main(string[] args) {
System.Console.WriteLine("Hello world!");
}
}
}
//---------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment