Skip to content

Instantly share code, notes, and snippets.

View andrew222651's full-sized avatar

Andrew andrew222651

View GitHub Profile
r"""
requires:
pydantic==1.*
numpy==1.*
scipy==1.*
"""
from abc import ABC, abstractmethod
import math
@andrew222651
andrew222651 / 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'];
@andrew222651
andrew222651 / .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:
(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";
})();