Skip to content

Instantly share code, notes, and snippets.

Avatar
🕉️
幸せになりなさい

Sean Haugh furrycatherder

🕉️
幸せになりなさい
  • Austin, TX
View GitHub Profile
View gist:1fffd914a04f5caf38ee36dba72cc262
#!/bin/sh
set -e
# Automatically added by dh_python3
if command -v py3compile >/dev/null 2>&1; then
py3compile -p helix -V 3.2-
fi
if command -v pypy3compile >/dev/null 2>&1; then
pypy3compile -p helix -V 3.2- || true
fi
View forms.py
from base64 import b64decode
from functools import wraps
from io import BytesIO, StringIO
from werkzeug.datastructures import Headers
from werkzeug.formparser import parse_form_data
def use_form(func):
@wraps(func)
@furrycatherder
furrycatherder / forms.py
Created October 10, 2021 14:58
Form submission with Werkzeug
View forms.py
from base64 import b64decode
from functools import wraps
from io import BytesIO, StringIO
from werkzeug.datastructures import Headers
from werkzeug.formparser import parse_form_data
def use_form(func):
@wraps(func)
View gist:f39be04c3e7065013bf03e9eba726e83
-- install packer
local install_path = vim.fn.stdpath 'data' .. '/site/pack/packer/start/packer.nvim'
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
vim.fn.execute('!git clone https://github.com/wbthomason/packer.nvim ' .. install_path)
end
vim.api.nvim_exec(
[[
augroup Packer
View gist:8512ea367796cef5c1569411bd4a467f
-- install packer
local install_path = vim.fn.stdpath 'data' .. '/site/pack/packer/start/packer.nvim'
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
vim.fn.execute('!git clone https://github.com/wbthomason/packer.nvim ' .. install_path)
end
vim.api.nvim_exec(
[[
augroup Packer
View gist:e4c14f59fc3cd9068c80462cf68dd960
-- install packer
local install_path = vim.fn.stdpath 'data' .. '/site/pack/packer/start/packer.nvim'
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
vim.fn.execute('!git clone https://github.com/wbthomason/packer.nvim ' .. install_path)
end
vim.api.nvim_exec(
[[
augroup Packer
View init.vim
call plug#begin('~/.config/nvim/plug')
" style plugins
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'xero/sourcerer.vim'
Plug 'folke/tokyonight.nvim'
Plug 'deviantfero/wpgtk.vim'
" editor plugins
Plug 'tpope/vim-vinegar'
View gist:1ba4617b08a6f079e96d3e5700fc349e
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing setuptools-build-hook
Using setuptoolsBuildPhase
Using setuptoolsShellHook
Sourcing pip-install-hook
Using pipInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
View gen-docs.nix
with import ./. {};
let
extraSources = [];
lib = pkgs.lib;
optionsListVisible =
lib.filter (opt: opt.visible && !opt.internal)
(lib.optionAttrSetToDocList options);