Skip to content

Instantly share code, notes, and snippets.

@bowmanjd
bowmanjd / Makefile
Last active August 26, 2018 09:25
Makefile for a Hugo project, automating Sass builds, Javascript bundling, minification, etc.
# Makefile for a Hugo project, for build automation
# Copyright 2015 Jonathan Bowman. Licensed under the Apache License,
# Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
# distributed "AS IS" WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
# target file for bundled Javascript
JS_TARGET = static/assets/bundle.js
# Javascript file to be passed to bundler as entry point
"""Send greetings."""
import time
import arrow
def greet(tz, repeat=1, interval=3):
"""Parse a timezone and greet a location a number of times."""
for i in range(repeat):
if i > 0: # no delay needed on first round
"""Proof-of-concept asynchronous Wikipedia search tool."""
import asyncio
import logging
import time
import httpx
EMAIL = "your_email@provider" # or Github URL or other identifier
USER_AGENT = {"user-agent": f"pypedia/0.1.0 ({EMAIL})"}
darglint
flake8
flake8-bandit
flake8-bugbear
flake8-builtins
flake8-comprehensions
flake8-docstrings
flake8-eradicate
flake8-isort
flake8-pytest-style
@bowmanjd
bowmanjd / init.vim
Created September 7, 2020 01:44
Neovim config pointing to ~/.vimrc
set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath = &runtimepath
source ~/.vimrc
@bowmanjd
bowmanjd / oldvimrc.vim
Last active September 9, 2020 17:57
Old vimrc 2020-08-07
" Copyright (c) 2020 Jonathan Bowman
"
" Permission to use, copy, modify, and/or distribute this software for any
" purpose with or without fee is hereby granted.
"
" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
" REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
" AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
" INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
" LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
@bowmanjd
bowmanjd / keybase.md
Created September 17, 2020 09:47
Keybase

Keybase proof

I hereby claim:

  • I am bowmanjd on github.
  • I am bowmanjd (https://keybase.io/bowmanjd) on keybase.
  • I have a public key ASC--E0EPhO1uXxodHiP2U8E6gzAypfdQKrbQPoqorhrxgo

To claim this, I am signing this object:

@bowmanjd
bowmanjd / snippet.csv
Last active September 19, 2020 09:54
Short CSV Sample
Last name First name Middle name Role School Grade
Herman Preston Elliott Teacher Southside
Randolph Finnegan Braylon Student Eastside 12
Hood Easton Fernando Student Southside 7
Kemp Logan Kinsley Teacher Southside
@bowmanjd
bowmanjd / dotfiles.ps1
Last active January 15, 2021 13:34
Adds two functions for instantiating dotfile management with git
# Set-ExecutionPolicy RemoteSigned -scope CurrentUser
# iwr -useb https://gist.githubusercontent.com/bowmanjd/14d5df511548a39cd5c53dff4f3df3f5/raw/61ac0e7b2298789bc4b35d988597989c15dadf62/dotfiles-ps.ps1 | iex
function dtfnew
{
Param ([string]$repo)
git init -b base
git remote add origin $repo
# Uncomment one of the following 3 lines
@bowmanjd
bowmanjd / dotfiles.sh
Last active January 15, 2021 13:59
Adds two functions for instantiating dotfile management with git
# OUT="$(mktemp)"; wget -q -O - https://gist.github.com/bowmanjd/3d56cf4e2fc11cba2137cb7ce36c4de6/raw > $OUT; . $OUT
dtfnew () {
git init -b base
git remote add origin $1
# Uncomment one of the following 3 lines
git config --local status.showUntrackedFiles no
# echo '/**' >> .git/info/exclude
# echo '/**' >> .gitignore; git add -f .gitignore