r/tinycode • • May 07 '14

does this count as tinycode? a 200k bootable .iso to play a text adventure

Thumbnail century-arcade.org
27 Upvotes

r/tinycode • • Mar 16 '14

clue: A tiny header-only C++03 logging framework (450 lines)

Thumbnail
github.com
27 Upvotes

r/tinycode • • Aug 19 '13

Dark Side of The Moon Cover in 453 Bytes of JS

Thumbnail jsfiddle.net
27 Upvotes

r/tinycode • • Dec 12 '12

Shortest useful code

27 Upvotes

What's the most useful program you can imagine using five lines of code or less? Language is your choice. Describe the function of the program and include the code, if you please.


r/tinycode • • Sep 09 '12

Tinycode challenge!

27 Upvotes

Here is a challenge. Write a function that returns a list of the squares of all the numbers between one and a given number. See if you can beat my 48-char (exc. whitespace) 3-line beast:

def f(n): l = [] while len(l) <= n: l.append(x**2) print l


r/tinycode • • Jul 12 '12

Perl prime number testing regex

27 Upvotes
perl -lne 'print "$_ is ".(((1x$_)=~/^1?$|^(11+?)\1+$/)?"not ":"")."prime"'

An explanation of similar code is here:

http://www.catonmat.net/blog/perl-regex-that-matches-prime-numbers/


r/tinycode • • Apr 23 '12

Metaprogramming for madmen - A shooter in 96k

Thumbnail
fgiesen.wordpress.com
27 Upvotes

r/tinycode • • Jun 30 '11

A minimalistic forum in 666 bytes of PHP

Thumbnail
github.com
27 Upvotes

r/tinycode • • Sep 04 '26

JavaScript Dweet of the Week #141 - Uptown by KilledByAPixel

26 Upvotes

https://www.dwitter.net/d/36205

for(k=0;k<39;k++)for(i=64;i--;)for(j=18;j--;6-k/9<((t+i)/5^j/9)%9&&j%11<7&&x.fillRect(k&&(i-32-t%1)*S+960,k&&(j-9)*S+540,S=k?2**(2+k/12)*9:2e3,S))x.fillStyle=k?R(v=220-(t+i|k|j)%3*S,v,v):'#7bf'

r/tinycode • • Feb 06 '26

JavaScript Dweet of the Week #111 - Rotating Raster Rings by dee-gomma

26 Upvotes

https://www.dwitter.net/d/34861

with(x)for(c.width=y=99;y--;beginPath(fill(arc(49+C(a=t*6-y*13),28+S(a),y,0,7))))fillStyle=`hsl(${t*30-y*2} 99%${50+30*S(t*8+3*S(y/3))}`

r/tinycode • • Sep 05 '25

Dweet of the Week #89 - Eye of Sauron by Daithi

26 Upvotes

https://www.dwitter.net/d/34264

c.width|=0;for(x.fillRect(0,0,i=4e4,i);i--;)(j=S(i+t))>.6&&(v=535,x.fillStyle=R(f=350,f-j*v%268,0,1),s=S(t)**5*f,k=(C(t)**8)+1,x.fillRect(k*(s*j-s+j**5*S(i*i)*v)+1e3,k*(s*j-s+j*C(i*i)*v)+v,9,9))

r/tinycode • • Mar 24 '21

Primality Test Using Regex

Thumbnail
theabbie.github.io
26 Upvotes

r/tinycode • • Feb 08 '21

Let's make the worst VueJS ever!

Thumbnail zserge.com
26 Upvotes

r/tinycode • • Apr 22 '20

Call for moderators

26 Upvotes

Hey there folks,

It is I, the maker of this community! Well ... you're too actually ... and that is a great transition to a favor I have to ask!

I / we are not able to keep active moderation going in a timely manner. That is why I'm looking for volunteers to do some moderating :)

We don't expect much but it would be rather splendid if you are a moderator in another active subreddit as well.

Please comment here, I'll reach out in the next days.

EDIT: Oh nice to wake up to so many positive responses already! I'll leave this open another day or so to give more people a chance. Feel free to upvote the comments and leave replies so I get a feeling of who the community prefers.

EDIT 2: OK cool thank you all for offering your time and help! Right now I invited /u/FUZxxl as full mod since he has the most experience and additionally /u/Slackluster as post/comment mod. If we need more help I'll refer back to this post and invite additional volunteers :)

PS: If anyone thinks the process was unfair / could be better / REALLY wants to be part of the mod team because it was always their dream, don't refrain from letting us know.


r/tinycode • • Nov 25 '19

cubicDoom: Ray-casting game in 510 bytes of x86 machine code

Thumbnail
github.com
26 Upvotes

r/tinycode • • May 29 '17

Rotozoomer in 32 bytes (x86, MsDos)

26 Upvotes

Rotastic

after ryg and gargaj created 51b/49b rotozoomers for MSDOS back in 2002 (area51, 49broto) i asked myself, if doing this in 32 bytes would be possible and well, it is =)


r/tinycode • • Sep 26 '16

Build your own programming language in less than 200 LOC w/ Ohm & Node

Thumbnail
pubnub.com
26 Upvotes

r/tinycode • • Oct 07 '15

Toledo Atomchess: now 456 bytes of x86 machine code.

Thumbnail
nanochess.org
26 Upvotes

r/tinycode • • Apr 15 '15

Minecraft in 500 lines of python : proceduralgeneration

Thumbnail
reddit.com
26 Upvotes

r/tinycode • • Sep 15 '14

File sharing in 10 lines of Bash

26 Upvotes

Simple file sharing script in Bash. You give it file names, it gives you urls to copy/paste to others. It requires SSH access to a web server and bash + rsync + perl.

#!/bin/bash
UPLOAD_PATH="server:~/path/to/web/root/"
URL_PATH="http://files.example.com"
echo "Uploading $# file(s)..."
rsync -rcuP --chmod=u+rw,g+r,o+r "$@" $UPLOAD_PATH || exit
echo '=== Links ==='
for FILE in "$@"; do
    echo "$URL_PATH/`basename $FILE | perl -p -e \ 
          's/([^A-Za-z0-9\.\-_\r\n])/sprintf("%%%02X", ord($1))/seg'`"
done

In practice, this looks like:

~# share file1.png file2.png file3.png
Uploading 3 file(s)...
sending incremental file list
file1.png
      121938 100%   85.04MB/s    0:00:00 (xfer#1, to-check=2/3)
file2.png
      121938 100%   58.14MB/s    0:00:00 (xfer#2, to-check=1/3)
file3.png
      121938 100%   38.76MB/s    0:00:00 (xfer#3, to-check=0/3)

sent 366089 bytes  received 69 bytes  48821.07 bytes/sec
total size is 365814  speedup is 1.00
=== Links ===
http://files.example.com/file1.png
http://files.example.com/file2.png
http://files.example.com/file3.png

Let me know if you see ways it could be improved.


r/tinycode • • Dec 12 '13

Thomas Fuch's tweet-sized JavaScript templating engine

Thumbnail
mir.aculo.us
26 Upvotes

r/tinycode • • Feb 09 '12

My (failed) IOCCC one-liner submission

Thumbnail computronium.org
26 Upvotes