Skip to content

Instantly share code, notes, and snippets.

View furrycatherder's full-sized avatar
🕉️
幸せになりなさい

Sean Haugh furrycatherder

🕉️
幸せになりなさい
  • Austin, TX
View GitHub Profile
import * as Context from "@effect/data/Context";
import * as Effect from "@effect/io/Effect";
import type { Span } from "@effect/io/Tracer";
import type { RpcResponse } from "@effect/rpc/Resolver";
import type { RpcHandlers, RpcRouter } from "@effect/rpc/Router";
import * as Server from "@effect/rpc/Server";
import * as aws from "aws-lambda";
export const ApiGatewayRequest = Context.Tag<aws.APIGatewayProxyEventV2>();
#!/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
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
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)
-- 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
-- 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
-- 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
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'
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
with import ./. {};
let
extraSources = [];
lib = pkgs.lib;
optionsListVisible =
lib.filter (opt: opt.visible && !opt.internal)
(lib.optionAttrSetToDocList options);