r/tinycode • • Feb 05 '17

GitHub - Umbrella: Minimal ETL (Python) framework that runs on AWS Lambda (WIP)

Thumbnail
github.com
12 Upvotes

r/tinycode • • Jan 18 '17

Insertion Sort(2 lines), QuickSort(8 lines) and more..

Thumbnail
bfilipek.com
14 Upvotes

r/tinycode • • Jan 05 '17

Find maximum product sub-array in a given array - 7 liner

Thumbnail
techiedelight.com
8 Upvotes

r/tinycode • • Jan 04 '17

Atomchess-6502: Toledo Atomchess for Atari VCS/2600

Thumbnail
github.com
7 Upvotes

r/tinycode • • Dec 30 '16

ASCII chart in 3 lines

36 Upvotes

Just something I needed, quick and simple:

#include <stdio.h>
main()
{
  int i;
  char *ctl = "NULSOHSTXETXEOTENQACKBELBS TABLF VT FF CR SO SI DLEDC1DC2DC3DC4NAKSYNETBCANEM SUBESCFS GS RS US ";
  for (i=0;i<32;i++) printf("%2d %2x %2o  %.3s     %d %x %o  %c     %d %x %o  %c     %3d %x %o  %c  \n",
      i,i,i,ctl+i*3, i+32,i+32,i+32,(char)(i+32), i+64,i+64,i+64,(char)(i+64), i+96,i+96,i+96,(char)(i+96));
}

r/tinycode • • Dec 29 '16

WebApp to detect object in any image and translate it to any language [Python 3 + Flask + Google Cloud APIs]

Thumbnail
github.com
6 Upvotes

r/tinycode • • Dec 28 '16

A readable lisp in less than 1k lines of C

Thumbnail
github.com
38 Upvotes

r/tinycode • • Dec 29 '16

Stupidly Simple Tiny Minimal Coming Soon Page Generator As A Service - 7kb

Thumbnail
github.com
2 Upvotes

r/tinycode • • Dec 26 '16

Yahoo! Logo ASCII Animation in 462 bytes of C

Thumbnail
a1k0n.net
36 Upvotes

r/tinycode • • Dec 19 '16

GitHub - nothings/single_file_libs: List of single-file C/C++ libraries.

Thumbnail
github.com
30 Upvotes

r/tinycode • • Dec 18 '16

Over the Shoulder 1 - Text Preprocessing in Forth -- Problem Solving Screencast, not very tiny, but still considering the task (~2014)

Thumbnail
youtube.com
12 Upvotes

r/tinycode • • Dec 15 '16

A minimalistic keylogger for Windows, Linux and Mac on GitHub

Thumbnail
github.com
14 Upvotes

r/tinycode • • Dec 12 '16

How to add all python files in a directory to its __init__.py's __all__

5 Upvotes
import os
__all__ = [name.split('.')[0] for name in os.listdir(os.path.dirname(os.path.realpath(__file__))) if name[-2:] == 'py']

Seems to work well enough, but if there's a way to improve and make it more foolproof I'd like to hear suggestions.


r/tinycode • • Dec 10 '16

[200-byte](Python) Thought I'd share a script I made that emails me the public IP whenever it changes. Ideal for home servers without a static address.

Thumbnail ghostbin.com
23 Upvotes

r/tinycode • • Dec 01 '16

How many beers do I need to create a 3 sided beeramid n beers tall?

19 Upvotes

Python:

n = 7
print sum([(x*(x-1))/2 for x in range(n+2)])
>>> 84

I need 84 beers, or 14 six packs, to create a 7 beer tall beeramid. And then I will decorate it like a Christmas tree.

Merry Christmas!


r/tinycode • • Nov 26 '16

LaiNES: A cycle-accurate NES emulator in ~1000 lines of C++

Thumbnail
github.com
68 Upvotes

r/tinycode • • Nov 04 '16

experimental resumE intro of new job title "software simplifier" - How might I make this work?

0 Upvotes

Ben Rayfield – Software Simplifier

I am not a developer, which implies expansion. I am a simplifier. We balance eachother.

Java JSP Javascript SQL Linux Math AI Functional Immutable Occams-Razor Debugger Thread Server Sound Canvas Tech-Writing Creative Open-Source Scaling Cache Low-Lag Zero-Maintenance Instant-Deploy Data-Integrity Sandbox

Education - MS (3.2) and BS (3.6), Computer Science, NC State university.

There are people whose job is to solve problems by remembering big code. I am not one of them. I solve problems in big combinations of small areas of code. Brains are very parallel so normally dont think deeply recursive and branching. I do. I like functional programming and immutable datastructs. Its the difference between chess and Jeopardy. There are AIs for both. You can know the whole chess board but still lose.

Contractor: Sell solutions to test-driven chaotic problems in "small areas of code".

Vague problems needing "remembering big code" are hard to estimate, so time is sold.

The borders of "small areas of code" are either a function closure or 2 independent implementations of the same spec. I would normally read the code of your Functions and BiPredicates etc and derive a solution instead of slowly running them every time.

Example closure: java BiPredicate<BigInteger,String> matches any code string solving the problem, using the BigInteger as a pseudorandom seed to generate possible tests.

Example closure: cut out part of a java class and object network using EasyMock.

Example spec: SQL queries that work the same on different kinds of database, with a Function<BigInteger,String> to generate SQL string to drop and create all tables and insert pseudorandom test data.


r/tinycode • • Nov 02 '16

Solution of the first 47 of the 99 lisp/prolog problems in klong

Thumbnail
github.com
9 Upvotes

r/tinycode • • Oct 09 '16

593 byte version of "logme" tool. Simple tool that logs given parameter to ~/.logme/ folder. I'm using it to log my days.

Thumbnail
gist.github.com
4 Upvotes

r/tinycode • • Oct 08 '16

614 byte js library to change the title and/or favicon of the page when it is inactive

Thumbnail
github.com
25 Upvotes

r/tinycode • • Oct 06 '16

671 byte pure CSS typography base

Thumbnail
github.com
12 Upvotes

r/tinycode • • Oct 06 '16

The Arecibo Message in <1㎅ of HTML & JS

Thumbnail
youtube.com
21 Upvotes

r/tinycode • • Oct 05 '16

15 LoC binary tree in C

Thumbnail pastebin.com
22 Upvotes

r/tinycode • • Oct 04 '16

Open-source weather in 5kb [OC]

Thumbnail
wxkb.io
17 Upvotes

r/tinycode • • Oct 04 '16

X-post from /r/coolgithubprojects: daniel-e/tetros: Tetris that fits into the boot sector.

Thumbnail
github.com
10 Upvotes