Skip to content

Instantly share code, notes, and snippets.

View kiedtl's full-sized avatar
💭
I may be slow to respond.

kiedtl kiedtl

💭
I may be slow to respond.
  • lolcathost
View GitHub Profile
@andrejbauer
andrejbauer / mandelbrot.c
Created December 11, 2013 22:23
A simple program for computing the Mandelbrot set.
/*
This program is an adaptation of the Mandelbrot program
from the Programming Rosetta Stone, see
http://rosettacode.org/wiki/Mandelbrot_set
Compile the program with:
gcc -o mandelbrot -O4 mandelbrot.c
Usage:
@tdeck
tdeck / gist:58bd5c1f86a27b212811
Created December 1, 2014 21:42
Brainfuck interpreter in bash
#! /bin/bash
# Brainfuck - Troy Deck
#############
# Constants #
#############
CELLS=500
###########
# Globals #
@roachhd
roachhd / README.md
Last active May 2, 2024 18:43
Basics of BrainFuck

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

BrainFuck Programming Tutorial by: Katie

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

INTRODUCTION

This work, excluding the Arch Linux logo, is made available under CC0: https://creativecommons.org/publicdomain/zero/1.0/
@saitoha
saitoha / suckless-st-sixel.diff
Last active December 9, 2023 19:02
Add SIXEL graphics support for suckless st. (sixel.c/sixel_hls.c come from mintty, licensed under GPL)
commit ea830e03d4d4562b1ff225940f65bceddd9cad6c
Author: Hayaki Saito <saitoha@me.com>
Date: Sun Jun 11 23:46:45 2017 +0900
Add sixel graphics support
Signed-off-by: Hayaki Saito <saitoha@me.com>
diff --git a/Makefile b/Makefile
index d8595fe..a25d040 100644
@meskarune
meskarune / vimrc
Last active November 3, 2023 07:58
simple functional vim status line - jellybeans theme colors
" status bar colors
au InsertEnter * hi statusline guifg=black guibg=#d7afff ctermfg=black ctermbg=magenta
au InsertLeave * hi statusline guifg=black guibg=#8fbfdc ctermfg=black ctermbg=cyan
hi statusline guifg=black guibg=#8fbfdc ctermfg=black ctermbg=cyan
" Status line
" default: set statusline=%f\ %h%w%m%r\ %=%(%l,%c%V\ %=\ %P%)
" Status Line Custom
let g:currentmode={
@DavidBuchanan314
DavidBuchanan314 / cursed_mandelbrot.c
Last active June 28, 2023 15:12
Compile-time mandelbrot in pure C. Outputs a PGM image file to stdout. Output can be seen at https://twitter.com/David3141593/status/1062468528115200001
#include <stdio.h>
#define SQ(x) (x)*(x)
#define M0(x,y) SQ(x)+SQ(y)<4?0:0xe0
#define M1(x,y,x0,y0) (SQ(x)+SQ(y)<4)?M0(SQ(x)-SQ(y)+(x0),2*(x)*(y)+(y0)):0xc0
#define M2(x,y,x0,y0) (SQ(x)+SQ(y)<4)?M1(SQ(x)-SQ(y)+(x0),2*(x)*(y)+(y0),x0,y0):0xa0
#define M3(x,y,x0,y0) (SQ(x)+SQ(y)<4)?M2(SQ(x)-SQ(y)+(x0),2*(x)*(y)+(y0),x0,y0):0x80
#define M4(x,y,x0,y0) (SQ(x)+SQ(y)<4)?M3(SQ(x)-SQ(y)+(x0),2*(x)*(y)+(y0),x0,y0):0x60
#define M5(x,y,x0,y0) (SQ(x)+SQ(y)<4)?M4(SQ(x)-SQ(y)+(x0),2*(x)*(y)+(y0),x0,y0):0x40
@classilla
classilla / digits_of_pi.dc
Created November 18, 2018 00:11
Compute 50 digits of pi using the venerable old dc utility.
[K 1+k 0 1 1lxlx*+v--lx/sxlf 2*sflx .5<=]s=
[K 1+k 0 1 1lxlx*+v--lx/sxlf 2*sflx 0 .5->>]s>
[ltklxlc*ld/Lxs.Las.Lbs.Lcs.Lds.Les.Lfs.Lgs.Lss.Lts. 3Q]s@
[lbls*sblcla*ldlb*+scldla*sdlcld/sglgle=@ lgsela 2+dsas. 1 1=?]s?
[0St0Ss0Sg0Sf0Se0Sd0Sc0Sb0SaSxlx 0=< Kst 1sflx .5<= lx 0 .5->> 0lx-lx*sslfsblfsc 1sd 1se 3dsas. 1 1=? Lxs.Las.Lbs.Lcs.Lds.Les.Lfs.Lgs.Lss.Lts.0 1Q]sQ
50k
4 1lQx*ps.
@Mekire
Mekire / gist:845a827d7406a6cb96dc0245f94dcdf4
Created February 8, 2019 16:11
TGGW item and upgrades
FOOD
leaf aloe - heal <5>
(alchemy 65) potion of greater healing
silver leaf - cure disease, alleviate poison <2>
(alchemy 25) restoring potion (see POTIONS)
purple leaf - cure confusion
gold leaf - cure disease, cure poison, cure confusion
@camnw
camnw / mcbedrockascii
Created June 2, 2019 13:18
Minecraft Bedrock Neofetch Ascii
1.
Place all of the lines between the #'s into $HOME/.config/neofetch/bedrock (Don't include the #'s).
#######################################################################################
${c3}██${c4}████████${c3}██${c1}████${c5}██${c1}██${c3}██${c4}████████${c3}██
${c3}████${c1}████████████${c4}██${c1}██████${c5}██${c3}████${c4}██
${c3}██${c5}██${c4}████${c5}██${c4}██████${c1}██${c4}██${c3}██████${c1}██${c3}████
${c3}██${c1}██${c3}██████${c5}██${c3}██${c1}██${c3}████${c4}██████████${c3}██
${c3}██${c1}████${c4}██████████████${c1}██████████${c5}██
${c4}████${c3}██████${c4}██████${c3}██${c5}██${c3}████${c4}████${c5}██${c3}██
${c1}████${c3}██${c2}██${c3}██${c4}██${c1}████${c3}████████${c1}██████${c5}██