Skip to content

Instantly share code, notes, and snippets.

View amacfie's full-sized avatar

Andrew amacfie

View GitHub Profile
(function(){
//YouTube:
if(document.getElementById("channel-body")){
document.getElementById("channel-body").style.cssText = "background-image: none";
};
//http://algo.inria.fr/flajolet/Publications/index.html:
document.body.background = "";
//Twitter:
document.body.style.cssText = "background-image: none";
})();
@amacfie
amacfie / .vimrc
Created December 8, 2015 15:29
.vimrc snapshot at 2015.Dec.8
" <neobundle>
" Note: Skip initialization for vim-tiny or vim-small.
if 0 | endif
if has('vim_starting')
if &compatible
set nocompatible " Be iMproved
endif
" Required:
@amacfie
amacfie / .gitconfig
Created July 28, 2017 16:11 — forked from 3v1n0/.gitconfig
git-human-aliases
[alias]
added = diff --cached
br = branch
ci = commit
co = checkout
contains = branch --contains
di = diff
diffc = diff --cached
discard = checkout --
distclean = "clean -dxfi"
@amacfie
amacfie / next_focus.user.js
Last active February 11, 2021 15:55
Greasemonkey script to add keybindings for focusing the next/previous form element
// ==UserScript==
// @namespace https://gist.github.com/amacfie/04b1da41137ed0bb20c554468f34b67c
// @description Add keybindings for focusing the next/previous form element
// @include http*
// @run-at document-start
// @noframes
// ==/UserScript==
var isGoodEl = function (node) {
var formTags = ['INPUT', 'SELECT', 'BUTTON', 'TEXTAREA'];
r"""
requires:
pydantic==1.*
numpy==1.*
scipy==1.*
"""
from abc import ABC, abstractmethod
import math