Skip to content

Instantly share code, notes, and snippets.

View Libbum's full-sized avatar
👾
👽🛸 ➤ 🌍🔥💀

Tim DuBois Libbum

👾
👽🛸 ➤ 🌍🔥💀
View GitHub Profile
@Libbum
Libbum / public.key
Created March 2, 2013 09:49
0xC1DCC569 Tim DuBois <tim@neophilus.net>
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2.0.19 (GNU/Linux)
mQENBFEgHnQBCACzaPOj5eMdYT4H8iB3mobWm0k11n64ETYGahaBK45Zm3M9r7lx
GVGrkfwejnl9iqRPLbTltLwRMa8ewkIE3RkUBxYty6ssveOLpuRygD/GvlkdC2OJ
OTd2HL49/3EMcWHHz95y1d5/1kS8s2yzGlS1KET0QI6sGaDjOtbIZyHEWcoiym2b
6E8FrD173r+Iog3+Dqaui1azieg+3AnaMR2vZd+wCiCfW/H0cTsvGGzkffBo4F2z
S2ymAxdxlGXgmt5G+mlqeJwQWvvlOmQYd/7TkaGZdMZvTGyFuYRwZ/zmZ4zFpEwT
3aTiiqcXbtsQOPYUURSkqz4z6w6nGlQuqM17ABEBAAG0HlRpbSBEdUJvaXMgPHRp
bUBuZW9waGlsdXMubmV0PokBPgQTAQIAKAUCUSAedAIbAwUJAeEzgAYLCQgHAwIG
@Libbum
Libbum / Apoklinon PuTTY ANSI Colours
Last active December 16, 2015 13:19
Allows full RGB Apoklinon colours when using putty. See README at https://github.com/Libbum/vim-apoklinon for more information.
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\Apoklinon]
"Answerback"="ApokPuT"
"Colour0"="212,212,212"
"Colour1"="255,255,255"
"Colour2"="0,0,0"
"Colour3"="85,85,85"
"Colour4"="0,0,0"
"Colour5"="0,255,0"
@Libbum
Libbum / Apoklinon .Xresources
Created April 25, 2013 05:24
Allows full RGB Apoklinon colours when using 8 bit terminals under X. See README at https://github.com/Libbum/vim-apoklinon for more information.
! Apoklinon colours
! vim: ft=xdefaults
#define a_div01 #9E0142
#define a_div02 #D53E4F
#define a_div03 #F46D43
#define a_div04 #FDAE61
#define a_div05 #FEE08B
#define a_div06 #FFFFBF
#define a_div07 #E6F598
@Libbum
Libbum / index.html
Last active January 1, 2016 10:19
Problematic mouse zoom after globe scale
<!DOCTYPE html>
<meta charset="utf-8">
<style>
#map {
width: 600px;
margin: 0 auto;
}
.foreground {

Keybase proof

I hereby claim:

  • I am Libbum on github.
  • I am libbum (https://keybase.io/libbum) on keybase.
  • I have a public key whose fingerprint is 963F 81E8 3005 A890 AB2E AB7E 4D31 83C1 C5D8 A54F

To claim this, I am signing this object:

@Libbum
Libbum / index.html
Created May 7, 2016 22:31
1:110m Globe with visible tiny countries.
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
background: #fcfcfa;
}
.fill {
fill: #fff;
}
@Libbum
Libbum / index.html
Created May 8, 2016 08:28
World tour of Tiny Countries
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
background: #fcfcfa;
}
.fill {
fill: #fff;
}
@Libbum
Libbum / nchoosek.rs
Created January 8, 2018 10:04
Binomial Coefficient
/// Calculate the number of combinations when choosing k values from n elements.
fn nchoosek(n: u64, k: u64, scale: f64) -> f64 {
if k > n {
0.0
} else if k == 0 || k == 1 {
1.0
} else {
let mut comb = 1.0;
for j in 0..cmp::min(k, n - k) {
comb /= (j + 1) as f64;
@Libbum
Libbum / PKGBUILD
Created March 11, 2018 16:48
rustup-dummy
pkgname=rustup-dummy
pkgver=0.0.1
pkgrel=1
pkgdesc='Makes pacman think that rustup, rust, and cargo are installed. (For users who installed via rustup.rs)'
arch=('any')
license=('custom:CC0')
provides=('cargo' 'rust' 'rustup')
source=('https://creativecommons.org/publicdomain/zero/1.0/legalcode.txt')
md5sums=('65d3616852dbf7b1a6d4b53b00626032')
@Libbum
Libbum / getxkblayout.c
Created March 13, 2018 11:30
`gcc -I/usr/include getxkblayout.c -lX11 -lxkbfile`
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <X11/XKBlib.h>
#include <X11/extensions/XKBrules.h>
int main(int argc, char **argv) {
Display *dpy = XOpenDisplay(NULL);