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
@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.
Delivered-To: shawn.webb@hardenedbsd.org
Received: by 2002:a05:6e04:81d:0:0:0:0 with SMTP id m29csp2761731imz;
Sat, 24 Apr 2021 14:30:20 -0700 (PDT)
X-Google-Smtp-Source: ABdhPJxMCxhTldBA8rP/kPZJJwgcJXsyGdm4lDd9HwMSjKNFnpqg74+32TyctDt/s7vVEfaSiBhJ
X-Received: by 2002:a05:6214:1470:: with SMTP id c16mr11201345qvy.60.1619299819931;
Sat, 24 Apr 2021 14:30:19 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1619299819; cv=none;
d=google.com; s=arc-20160816;
b=R+rRdnvpN0QetcNLWfgeAdLiqrbg69XcZApGynPOxVxTMOLHRvPpmrb1r4YccIXXWD
dBdDe2AZrV6eoawy6sGsNnsDRXTQv8nvJrDgXIMmZOF/MnQBTCWW7+iW/W98xw47OJVm
@tdeck
tdeck / gist:58bd5c1f86a27b212811
Created December 1, 2014 21:42
Brainfuck interpreter in bash
#! /bin/bash
# Brainfuck - Troy Deck
#############
# Constants #
#############
CELLS=500
###########
# Globals #

hi, and goodbye

The past few weeks has not been fun on IRC, the drama based on false information and assumptions has been insane. I've almost entirely been silent on the drama because I know the fallout that would happen if I spoke up.

A quick TLDR - I'm quitting all IRC development. KiwiIRC project lead, IRCv3 technical board, supporting the multitude of IRC networks, the lot.

Many people seem to think that I am supporting one side in everything that is going on, so just to be clear: I am not supporting any side of the current freenode drama - there is so much false information going around from everywhere that it is impossible to support anybody.

Woo freenode drama

@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}██
@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
@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={
@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:
@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