r/tinycode • u/spw1 • May 07 '14
r/tinycode • u/martinmoene • Mar 16 '14
clue: A tiny header-only C++03 logging framework (450 lines)
r/tinycode • u/headbox • Aug 19 '13
Dark Side of The Moon Cover in 453 Bytes of JS
jsfiddle.netr/tinycode • u/thefebs • Dec 12 '12
Shortest useful code
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 • u/davelol6 • Sep 09 '12
Tinycode challenge!
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 • u/lanzaa • Jul 12 '12
Perl prime number testing regex
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 • u/nexe • Apr 23 '12
Metaprogramming for madmen - A shooter in 96k
r/tinycode • u/illiterate • Jun 30 '11
A minimalistic forum in 666 bytes of PHP
r/tinycode • u/Slackluster • Sep 04 '26
JavaScript Dweet of the Week #141 - Uptown by KilledByAPixel
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 • u/Slackluster • Feb 06 '26
JavaScript Dweet of the Week #111 - Rotating Raster Rings by dee-gomma
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 • u/Slackluster • Sep 05 '25
Dweet of the Week #89 - Eye of Sauron by Daithi
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 • u/nexe • Apr 22 '20
Call for moderators
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 • u/nanochess • Nov 25 '19
cubicDoom: Ray-casting game in 510 bytes of x86 machine code
r/tinycode • u/joshmarinacci • Sep 26 '16
Build your own programming language in less than 200 LOC w/ Ohm & Node
r/tinycode • u/alecdo • Oct 07 '15
Toledo Atomchess: now 456 bytes of x86 machine code.
r/tinycode • u/nexe • Apr 15 '15
Minecraft in 500 lines of python : proceduralgeneration
r/tinycode • u/Nullreff • Sep 15 '14
File sharing in 10 lines of Bash
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'`"
doneIn 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.pngLet me know if you see ways it could be improved.
r/tinycode • u/_zsh • Dec 12 '13
Thomas Fuch's tweet-sized JavaScript templating engine
r/tinycode • u/schnitzi • Feb 09 '12