r/tinycode • u/Reinder • Jan 29 '15
r/tinycode • u/MatrixFrog • Jun 12 '13
Tweet-sized library for two-way conversion between radians and degrees, in Go
r/tinycode • u/nexe • Feb 12 '13
Instant clean temporary text editor built into your browser that works offline
Enter the following into your browsers URL bar:
data:text/html, <html contenteditable>Want to style it? Go ahead!
data:text/html, <html style='background:#111;color:#DDD;font-size:x-large;' contenteditable>You can print as PDF or copy the content when you're done. Unfortunately saving otherwise doesn't work out of the box. (tested in Chrome under Linux)
Is that tiny or what? ;)
r/tinycode • u/Rotten194 • Jul 09 '12
More tiny python: A HTTP file server using raw sockets in 12 lines
r/tinycode • u/Slackluster • Feb 02 '25
Dweet of the Week #58 - One Line Landscape by KilledByAPixel
r/tinycode • u/Slackluster • Mar 22 '24
Dweet of the Week: Train Tracks by KilledByAPixel
r/tinycode • u/zserge • Jan 23 '23
Minimal cross-platform graphics + audio (~500 LOC)
zserge.comr/tinycode • u/Dresdenboy • May 29 '22
melo.tic - a 256 byte intro with simple voice generation and melody for the TIC-80 fantasy console
r/tinycode • u/nexe • Jul 25 '21
GitHub - xem/miniScreenRecording: 269b screen recorder with sound and video download in HTML+JS
r/tinycode • u/swiftuppercut • Jul 08 '21
Game 2 player tictactoe-hosting TCP server in 640 bytes of JavaScript
r/tinycode • u/Hell__Mood • Dec 12 '20
Star Wars - Episode CCLVI - 256b intro for TIC-80
r/tinycode • u/FUZxxl • Nov 02 '20
Palanqin, an ARM Cortex M0 emulator for DOS in 3514 bytes
r/tinycode • u/Slackluster • Oct 19 '20
Dissecting a Dweet #9: City Sunset – Tiny JavaScript Analysis
r/tinycode • u/marqueedesign • May 28 '20
Microdose - A 128 byte MS-DOS demo with 8 different effects, custom color palette and sound
Straight from the demoscene, Winner of the Outline online 2020 128-byte intro competition
https://www.pouet.net/prod.php?which=85677 (sourcecode included)
A full writeup of the development of this intro will follow later.
r/tinycode • u/adarshpunj • Jan 08 '20
Instagram in 4000 bytes
I recently came across this project (StackOverFlow in 4k bytes), and it looked very interesting:
https://www.reddit.com/r/tinycode/comments/1yc0kv/st4koverflow_as_much_stack_overflow_as_possible/
I have tried to compress Instagram in a single HTML doc. You can explore profiles/hashtags, etc. The total file size is 4066 bytes.
r/tinycode • u/Diapolo10 • Dec 23 '19
A Pi approximation using the Leibniz sequence in Python using only one line
print("Pi:", sum(map(
lambda x, y: 4/x-4/y,
range(1, 10**6, 4),
range(3, 10**6, 4))))The accuracy is hard-coded as 10**6 (one million) because beyond that a single thread will be very slow, but it could be any number. And by using additional threads this could probably be multithreaded with three extra lines.
r/tinycode • u/Dresdenboy • Sep 16 '17
Magic of 256-byte x86 intros (presentation by Rrřola at Demobit 2017)
r/tinycode • u/ShineSparkio • May 13 '17
simdb.hpp <2k lines and 70KB - A high performance, shared memory, lock free, cross platform, single file, no dependencies, C++11 key-value store (Apache 2)
https://github.com/LiveAsynchronousVisualizedArchitecture/simdb
This is a hash based key-value, store created to be a fundamental piece of a larger software architecture.
High Performance - Real benchmarking needs to be done, but superficial loops seem to run conservatively at 500,000 small get() and put() calls per logical core per second. Because it is lock free the performance scales well while using at least a dozen threads.
Shared Memory - It uses shared memory maps on Windows, Linux, and OSX without relying on any external dependencies. This makes it exceptionally good at interprocess communication.
Lock Free - All the user facing functions are thread-safe and lock free with the exception of the constructor (to avoid race conditions between multiple processes creating the memory mapped file at the same time).
Cross Platform - Compiles on Visual Studio 2013, ICC 15.0, gcc on Linux, gcc on OS X, and Clang on OS X.
Single File - simdb.hpp and the C++11 standard library is all you need. No windows SDK or any other dependencies, not even from the parent project.
Apache 2.0 License - No need to GPL your whole program to include one file.
This has already been used for both debugging and visualization, but should be treated as alpha software. Though there are no known outstanding bugs, there are almost certainly bugs (and small design issues) waiting to be discovered and so will need to be fixed as they arise.
There is an in-depth explanation in the comments of the simdb.hpp file itself.
r/tinycode • u/nexe • Dec 19 '16
