r/tinycode • u/api • Feb 08 '18
r/tinycode • u/booharney • Dec 12 '15
Atto - Smallest functional Emacs in less than 2000 lines of C
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 • u/api • Apr 29 '14
JS0N - absolutely minimal and fast C JSON parser
r/tinycode • u/RiverboatTurner • Apr 23 '14
7-card Poker Hand Evaluator in 577 bytes of C
r/tinycode • u/mrtransisteur • Jul 18 '13
One-time pad en/decoder in Python3 in 1 line
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 • u/[deleted] • Feb 07 '13
JS1K 2013 - Spring - Create something interesting with JavaScript in no more than 1024 bytes and win prizes!
r/tinycode • u/Hashiota • Dec 13 '12
A little python script that manages key-value data stored in itself.
r/tinycode • u/14113 • Jul 22 '12
A tiny encryption algorithm and implementation
r/tinycode • u/cphoover • Jul 18 '12
"Bak" for when you need to do Manual Backups.
function bak(){
DATE=$(date +%Y_%m_%d_%H-%M)
tar -czf ${1%/}.$DATE.tar.gz ${1%/}
}r/tinycode • u/Slackluster • Sep 10 '26
JavaScript How Rémi Vansteelandt made a physics-based BMX game in under 13 kilobytes
r/tinycode • u/finnhvman • Sep 01 '25
Portuguese Tiles 1205 bytes, SVG (Chrome/Edge only)
r/tinycode • u/flockaroo • 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()
r/tinycode • u/finnhvman • Mar 24 '22
Rorschach Inkblot ✒️ (536 bytes) #PetitePatterns
r/tinycode • u/zserge • May 04 '21
cesanta/elk - extremely small JS subset interpreter for embedded systems (~1KLOC)
r/tinycode • u/Slackluster • Feb 21 '20
Game Hue Jumper is now open source! - A low fi endless runner that fits in a 2 kilobyte zip
r/tinycode • u/algorithmexamples • Aug 16 '19
Over 900+ algorithm examples across 12 popular languages
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 • u/Slackluster • Apr 01 '19
Announcing my first business card size C++ game: Tiny Ski
r/tinycode • u/nexe • Sep 20 '15
The bitter rivalry behind the world’s smallest chess program
r/tinycode • u/XiAxis • Mar 21 '15
Playable 2048 in 39 lines of python
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()