Skip to content

Instantly share code, notes, and snippets.

View gpadd's full-sized avatar

Andreas Wilfer gpadd

View GitHub Profile
@gpadd
gpadd / .vimrc
Last active December 16, 2025 12:49
My current _simple_ vimrc (2025-12-16); back to legacy vim script (for vim and neovim)
" Vim mode instead Vi compatible mode (must be first because of side effects)
set nocompatible
" Leaders
let mapleader = " "
" let maplocalleader="<BS>"
" Filetype based config
filetype plugin indent on
syntax on
@gpadd
gpadd / caps_2_ctrl_or_esc.ahk
Created March 7, 2024 10:25
Remap CAPS to be either CTRL or ESC depending on if you are holding it down or not. Tweaked For AutoHotkey v2. Original from https://superuser.com/a/581988
#Requires AutoHotkey v2.0
*CapsLock::
{
Send "{Blind}{Ctrl Down}"
global cDown := A_TickCount
}
*CapsLock up::
{
@gpadd
gpadd / flyer-mwe.tex
Last active April 20, 2017 11:35
Stupid dot and "empty" first page latex (lualatex)
%%%%%----------------------------------------------------------------------%%%%%
%\documentclass[12pt,a4paper,titlepage,draft]{article}
\documentclass[12pt,a4paper]{article}
%%%%%----------------------------------------------------------------------%%%%%
\usepackage{mwe}
\usepackage[a4paper,total={6in, 8in}]{geometry}
\usepackage[export]{adjustbox}
\usepackage{luaotfload}
\usepackage{fontspec}
%%%%%----------------------------------------------------------------------%%%%%
@gpadd
gpadd / fix_telegram.md
Last active January 12, 2017 23:50 — forked from 9ary/fix_telegram.md
How to fix the really really round telegram bubbles and avatars and << >> -- stuff
@gpadd
gpadd / casting-spels.scm
Created September 2, 2013 07:52
Casting SPELs in LISP, Scheme version.
;; Casting SPELs in LISP, scheme version
(define *objects* '(whiskey-bottle bucket frog chain))
(define *map* '((living-room (Your in the living room. Its dusty and dirty.)
(west door garden)
(upstairs stairway attic))
(garden (Your in the garden. There stands a well.)
(east door living-room))
(attic (Your in the attic. There is a welding torch in the corner.)
@gpadd
gpadd / game.scm
Created January 5, 2012 20:38
Lame unfinished game
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;
;;;;;;add's contribution
;;;;;;
;;;;;;
;;;;;;
;;;;;;