r/tinycode • • Feb 08 '18

Tinyscript: a super-minimal embeddable programming language

Thumbnail
github.com
32 Upvotes

r/tinycode • • Dec 12 '15

Atto - Smallest functional Emacs in less than 2000 lines of C

32 Upvotes

Just to announce a new tiny Emacs that I have developed called Atto Emacs.

I am claiming it is the smallest functional Emacs in less than 2000 lines of C.

Some basic information below.

name: atto - smallest functional Emacs in less that 2000 lines of C

last changed/verified: Dec 8 2015

original distribution: Nov 16 2015

version: 1.4

base language: C

implementation language: C

extension language: none

scope of implementation: command set, multi buffer, multi-window, search, cut, copy, paste

hardware/software requirements: UNIX, LINUX

organization/author: Hugh Barney , [email protected]

free, from github https://github.com/hughbarney/atto


r/tinycode • • Feb 17 '15

Nice collection of tiny code

Thumbnail kmkeen.com
32 Upvotes

r/tinycode • • Dec 07 '14

15 LOC Hashtable in C

Thumbnail pastes.archbsd.net
32 Upvotes

r/tinycode • • Apr 29 '14

JS0N - absolutely minimal and fast C JSON parser

Thumbnail
github.com
32 Upvotes

r/tinycode • • Apr 23 '14

7-card Poker Hand Evaluator in 577 bytes of C

Thumbnail
github.com
32 Upvotes

r/tinycode • • Jul 18 '13

One-time pad en/decoder in Python3 in 1 line

32 Upvotes
def p(m,k,d=1):return "".join([chr((ord(c)-ord('a')+i*(-1)**d)%26 + ord('a')) for c,i in zip(m,k)])

>>> p('hello', [1,2,3,4,5], False)
'igopt'
>>> p('igopt', [1,2,3,4,5], True)
'hello'

r/tinycode • • Feb 07 '13

JS1K 2013 - Spring - Create something interesting with JavaScript in no more than 1024 bytes and win prizes!

Thumbnail
js1k.com
32 Upvotes

r/tinycode • • Dec 13 '12

A little python script that manages key-value data stored in itself.

Thumbnail
gist.github.com
32 Upvotes

r/tinycode • • Jul 22 '12

A tiny encryption algorithm and implementation

Thumbnail
en.wikipedia.org
32 Upvotes

r/tinycode • • Jul 18 '12

"Bak" for when you need to do Manual Backups.

32 Upvotes
function bak(){
    DATE=$(date +%Y_%m_%d_%H-%M)
    tar -czf ${1%/}.$DATE.tar.gz ${1%/}
}

r/tinycode • • Sep 10 '26

JavaScript How Rémi Vansteelandt made a physics-based BMX game in under 13 kilobytes

Thumbnail
remvst.substack.com
31 Upvotes

r/tinycode • • Sep 01 '25

Portuguese Tiles 1205 bytes, SVG (Chrome/Edge only)

Post image
31 Upvotes

r/tinycode • • Aug 01 '23

Barbie Glitter SVG, 540 bytes

Post image
31 Upvotes

r/tinycode • • Jul 21 '23

Sunset Pastel - a 188 byte dweet NSFW

Post image
31 Upvotes

r/tinycode • • Jun 19 '23

dwitter.net: for(i=c.width=W=999;i--;){X=i/.7,Y=0;for(w=9;w<W/4;w/=.6)A=(X+t*w)%w-w/2,X+=A*C(D=1-A*A/w/w*4)+Y*S(D)-A,Y=Y*C(D)-A*S(D);x.lineTo(X-W*.3,Y+w+9e3/i)}x.fill()

31 Upvotes

r/tinycode • • Mar 24 '22

Rorschach Inkblot ✒️ (536 bytes) #PetitePatterns

Thumbnail
gallery
31 Upvotes

r/tinycode • • May 04 '21

cesanta/elk - extremely small JS subset interpreter for embedded systems (~1KLOC)

Thumbnail
github.com
31 Upvotes

r/tinycode • • Dec 01 '20

A simple, plain CSS for simple, plain HTML

Thumbnail
github.com
31 Upvotes

r/tinycode • • Feb 21 '20

Game Hue Jumper is now open source! - A low fi endless runner that fits in a 2 kilobyte zip

Thumbnail
github.com
31 Upvotes

r/tinycode • • Aug 16 '19

Over 900+ algorithm examples across 12 popular languages

31 Upvotes

Hi everyone,

I've been compiling a list of algorithms and making them publicly available at http://algorithmexamples.com/ for free. Hopefully they'll be useful to everyone here as they were to me.


r/tinycode • • Apr 01 '19

Announcing my first business card size C++ game: Tiny Ski

Thumbnail
frankforce.com
31 Upvotes

r/tinycode • • Sep 24 '15

Maze Generator in 8 Bytes (MSDOS)

Thumbnail
pouet.net
31 Upvotes

r/tinycode • • Sep 20 '15

The bitter rivalry behind the world’s smallest chess program

Thumbnail
kernelmag.dailydot.com
31 Upvotes

r/tinycode • • Mar 21 '15

Playable 2048 in 39 lines of python

31 Upvotes
from tkinter import *
from random import randint
mGui = Tk()
mGui.title('2048')
grid_text = [[StringVar() for i in range(4)] for j in range(4)]
grid = [[Label(width=10, height=5, textvariable=grid_text[i][j], font=("Helvetica", 16)).grid(row=i, column=j) for i in range(4)] for j in range(4)]
def place():
    global grid_text
    empty_spaces = []
    for i1, x in enumerate(grid_text):
        for i2, y in enumerate(x):
            if y.get() == '':
                empty_spaces.append(y)
    empty_spaces[randint(0, len(empty_spaces)-1)].set(str(2*randint(1, 2)))
def move(d):
    global grid_text
    cont = True
    while cont:
        cont = False
        for i1, x in list(enumerate(grid_text))[::-d[0] if d[0] else 1]:
            for i2, y in list(enumerate(x))[::-d[1] if d[1] else 1]:
                if y.get() != '':
                    if 0 <= i1+d[0] < 4 and 0 <= i2+d[1] < 4:
                        if grid_text[i1+d[0]][i2+d[1]].get() == y.get():
                            grid_text[i1+d[0]][i2+d[1]].set(str(int(y.get())*2))
                            y.set('')
                            cont = True
                        elif grid_text[i1+d[0]][i2+d[1]].get() == '':
                            grid_text[i1+d[0]][i2+d[1]].set(y.get())
                            y.set('')
                            cont = True
    place()
mGui.bind("<Left>", lambda a: move([0, -1]))
mGui.bind("<Up>", lambda a: move([-1, 0]))
mGui.bind("<Right>", lambda a: move([0, 1]))
mGui.bind("<Down>", lambda a: move([1, 0]))
place()
place()
mGui.mainloop()