All Projects → MinhasKamal → Creepycodecollection

MinhasKamal / Creepycodecollection

A Nonsense Collection of Disgusting Codes

Programming Languages

c
50402 projects - #5 most used programming language
java
68154 projects - #9 most used programming language
ruby
36898 projects - #4 most used programming language
C++
36643 projects - #6 most used programming language
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Creepycodecollection

ioccc
My IOCCC submissions and practice.
Stars: ✭ 82 (-96.28%)
Mutual labels:  code-golf, obfuscated
Vyxal
A golfing language that has aspects of traditional programming languages - terse, elegant, readable.
Stars: ✭ 134 (-93.93%)
Mutual labels:  code-golf, golfing
Freaky-Sources
Collection of freaky sources written on C# (mostly quines in different forms).
Stars: ✭ 12 (-99.46%)
Mutual labels:  quine, polyglot
Rosettagit
Solutions to tasks in over 700 programming languages
Stars: ✭ 160 (-92.75%)
Mutual labels:  polyglot
Future.apply
🚀 R package: future.apply - Apply Function to Elements in Parallel using Futures
Stars: ✭ 159 (-92.79%)
Mutual labels:  programming
React Native Signature Canvas
✒️ React Native Signature Component based WebView Canvas for Android && IOS && expo
Stars: ✭ 169 (-92.34%)
Mutual labels:  signature
Easyrsa
Simple and Secure Wrapper for phpseclib
Stars: ✭ 183 (-91.7%)
Mutual labels:  signature
Practical Cryptography For Developers Book
Practical Cryptography for Developers: Hashes, MAC, Key Derivation, DHKE, Symmetric and Asymmetric Ciphers, Public Key Cryptosystems, RSA, Elliptic Curves, ECC, secp256k1, ECDH, ECIES, Digital Signatures, ECDSA, EdDSA
Stars: ✭ 2,400 (+8.79%)
Mutual labels:  programming
Sicp Course
SICP Course
Stars: ✭ 179 (-91.89%)
Mutual labels:  programming
Programming Alpha To Omega
从零开始学编程 系列汇总(从α到Ω)
Stars: ✭ 2,003 (-9.2%)
Mutual labels:  programming
Hdk
(unofficial) Hyper-V® Development Kit
Stars: ✭ 166 (-92.48%)
Mutual labels:  programming
Shell Scripting Tutorial
A complete begineers guide to learn shell scripting from scratch which includes Videos, Practice scenarios and project idea.
Stars: ✭ 159 (-92.79%)
Mutual labels:  programming
Languages
A graph of programming languages connected through compilers.
Stars: ✭ 171 (-92.25%)
Mutual labels:  programming
Hacktoberfest 2k18 Katas
Game has ended :: Little challenges to up your Hacktoberfest game!
Stars: ✭ 160 (-92.75%)
Mutual labels:  programming
Bookmarks
🔖 ⭐️ Collection of public dev bookmarks, shared with ❤️ from www.bookmarks.dev
Stars: ✭ 181 (-91.8%)
Mutual labels:  programming
Adv R
Advanced R: a book
Stars: ✭ 2,000 (-9.34%)
Mutual labels:  programming
Software Engineer Interview Questions
A lot of questions and links to prepare yourself for an interview.
Stars: ✭ 176 (-92.02%)
Mutual labels:  programming
100 Plus Python Coding Problems With Solutions
A list of python problems for beginners and intermediate developers
Stars: ✭ 163 (-92.61%)
Mutual labels:  programming
Newrustacean.com
The official website for the New Rustacean podcast
Stars: ✭ 161 (-92.7%)
Mutual labels:  programming
Understandinges6ua
Ukrainian translation of “Understanding ES6” by @nzakas
Stars: ✭ 170 (-92.29%)
Mutual labels:  programming

CreepyCodeCollection

A Nonsense Collection of Disgusting Codes

Here we are talking about creepiest of the most creepy codes. Programs, behave so strange, that they will twist your brain. Snippets, so small, that you won’t believe their functionality. And codes, so cryptic, that even the top coders will think of going back to the college.

Note: Never try this type of code in a real life software project; readability and maintainability should be the main concern there.

Intro

See this cute little code ()-

(1x$a)!~/^1?$|^(11+?)\1+$/

In Perl, this regular expression checks if a number is prime.

Following code will produce day of the week for a given date ()-

((y-=m<3)+y/4-y/100+y/400+" bed=pen+mad."[m]+d)%7

Consider this Java code ()-

int i = (byte) + (char) - (int) + (long) - 1;

What will be the value of i? Will the code even compile? Weird! Huh?

The program is a Ruby Quine called qlobe (). Isn't the the output amazing?

Qlobe

This is one of my favourites- The Animated 3d Doughnut (). Taste how delicious it is!

Animated 3d Doughnut

Paste this in your browser's url-

data:text/html,<body%20style=margin:0><canvas%20id=q%20/><script>var%20q=document.getElementById('q'),s=window.screen,w=q.width=s.width,h=q.height=s.height,p=Array(256).join(1).split(''),c=q.getContext('2d'),m=Math;setInterval(function(){c.fillStyle='rgba(0,0,0,0.05)';c.fillRect(0,0,w,h);c.fillStyle='rgba(0,255,0,1)';p=p.map(function(v,i){r=m.random();c.fillText(String.fromCharCode(m.floor(2720+r*33)),i*10,v);v+=10;%20return%20v>768+r*1e4?0:v})},33)</script>

And see the magic yourself ()!

Most of the programs here are hell hard to understand. The details-url provided with the codes contain useful description. Follow the Creepy Rank for getting a structured view of all the programs.

Creepy Rank

Sorted by difficulty level-

Level- 1: Genin

Code Intro
pyjava.java Java code written like python. Finds factorial of big numbers.
backward.java Weird flipped code compiles- "backward!".
one_line_swap.c Strange one-liners that swaps value of two variables.
without_main.c C code without main.
hello_world.java Magically outputs "hello world" in the console.
obfuscated.java Prints "Hi!" in the console, looks like a big meaningless comment though.
strange.c A strange code with more strange output.

Level- 2: Chunin

Code Intro
bitwise_arithmetic.c Performs addition and multiplication using only bit operation.
prefix2postfix.c Converts prefix notation to postfix.
sapin.c Prints a dynamic christmas tree.
crazy_jvm.java Seems like the JVM has gone mad, printing random integers.
confusion.java It is surprising enough, that the code compiles & prints 1.
not_so_random.java Will (randomly!) print- 1 1 1 1 1 1 1 1 1 1.
bangladesh.c Prints the map of Bangladesh.
signature_prime.c Keeps printing prime number (theoretically) forever.
day_of_week.c Computes day of the week for given date.
polyglot_so404.py.pl.rb.c.bf Prints 404 in python, perl, ruby, c and brainfu*k.
polyglot_quine.c.py.pl.rb A quine that runs in c, python, perl & ruby.

Level- 3: Jonin

Code Intro
compound_eye.rb Displays animated pattern.
best_short_program.c Reads a spelt number and writes a corresponding decimal number.
check_prime.pl Checks if a number is prime using regular expression!
quine_signature.c Shortest C code that prints itself.
clock_in1line.c Prints current time in text-art.
japh.pl Prints "just another perl hacker".
matrix_effect.html Displays a matrix-like screen.
pi_signature.c Calculates the first 15000 digits of PI.

Level- 4: Kage

Code Intro
mandelbrot_imager.py Creates an image of Mandelbrot (may take 20m to run!).
shortest_tetris.html Very short and simplified variant of the classic tetris game.
qlobe.rb Prints the globe. And it can also be turned by puting command-line argument.
animated_3d_doughnut.c Shows a 3d animated doughnut with ASCII art.
mandelbrot_flythrough.pl Rotates, zooms in & out, and scrolls randomly to examine regions of the Mandelbrot.

Rogue

Code Intro
octaglot.cob.pas.f77.c.ps.sh.pl.com A polyglot, prints "hello polyglots" in 8 languages.
esoteric_polyglot.mal.bf.ws.asdf.123.spoon.excon A polyglot written in 7 esoteric languages.
palindrome_polyglot_quine.cs.java The code is palindromic, compiles in C# and Java, prints itself.
quine_relay.rb An uroboros program with 100 programming languages.

All the programs here have been tested (by me). TutorialsPoint-CodingGround or repl.it has online code editors and compilers, which can be used to run these programs. Many programs here have been collected from q/a and discussion sites, like- StackOverflow, Quora, Programming Puzzles & Code Golf, & Hacker News.

If you liked this project, then you may also love CuteVirusCollection.

Not Satisfied Yet!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].