Skip to content

Instantly share code, notes, and snippets.

@smvd
smvd / 1.LVL
Created May 11, 2021 13:39
This is just a quick demo for the game i'm working on its not meant to be a full game yet, nor look good
0000000000000000000000000000000000000000
0000000000000000000000000000000000000000
0000000000000000000000000000000000000000
0000000000000000000000000000000000000000
0000000000000000000000000000000000000000
0000000000000000000000000040000000000000
0000000000000000000000011111111000000000
0000000000000000000000000000001000000000
0000000000000000000000000000001000000000
0000000000000000001100000000001000000000
@smvd
smvd / ECBF.c
Last active May 25, 2021 08:26
A brainfuck implementation
/*
> : Move the pointer forward 1 slot
< : Move the pointer back 1 slot
+ : Add 1 to the current memory slot
- : Subtract 1 from the current memory slot
. : Print the ASCII character in the current memory slot
? : Print the number stored in the current memory slot
, : Save the ASCII character taken from the keyboard in the current memory slot
[ : Test if the current slot is not 0, otherwise enter the loop
] : Test if the current slot is 0, otherwise exit the loop
@smvd
smvd / Sorting .c
Created May 31, 2021 13:08
Sorting algorithms in c
/*
The algorithims i have implemented are:
1. Bubble sort
2. Insertion sort
3. Selection sort
4. Comb sort
Youtube: www.rebrand.ly/eclip-coding
Github: gist.github.com/smvd/f95bdf6f49f18744289a2825d1f987ac
*/
@smvd
smvd / Winsock2Server.c
Created July 10, 2021 14:20
Simple HTTP server code
/*
- Read code from files
- Show images
- Show json
- Show video
- Show audio
- Better debugging
*/
#include <stdio.h>