Skip to content

Instantly share code, notes, and snippets.

View xPMo's full-sized avatar

Gamma xPMo

View GitHub Profile
" removed the first page from a pdf with pdftk, but you want to keep the outline?
" change the info file like this:
% s/Number: \(\d\d*\)/\="Number: " . submatch(1)-1/
" You still need to go through and remove (what is now) page 0
# change prefix to Alt+a
unbind-key C-b
set -g prefix 'M-a'
bind-key 'M-a' send-prefix
# escape time of 50 ms
set -sg escape-time 50
set -g default-terminal "screen-256color"
@xPMo
xPMo / newtonsfractal.py
Last active October 1, 2021 21:19
Calculates Newton's Fractal
#!/usr/bin/env python3
# Author: @xPMo
# Based on previous work by: Jordan Atlas
#
# Purpose: creates a fractal using the Newton-Raphson
# root-finding method. The polynomial is derived from the
# given roots in commandline args, or the roots of unity
# are used
#
# Based on listing 7.1 from "Beginning Python Visualization"
@xPMo
xPMo / keybase.md
Created October 12, 2017 06:08
keybase.md

Keybase proof

I hereby claim:

  • I am xPMo on github.
  • I am gammafunction (https://keybase.io/gammafunction) on keybase.
  • I have a public key whose fingerprint is 7ABE AF8A 5895 B177 9999 D5A0 61DF 2393 78F6 CA80

To claim this, I am signing this object:

:root {
--height: 16px; --icon-size: 16px; --margin: -8px;
--font-size: pt;
--align: left; /* left | center | right */
}
@-moz-document url(chrome://browser/content/browser.xul) {
#nav-bar {
margin: -3px !important;
margin-left: var(--margin) !important;
height: 30px !important;