Skip to content

Instantly share code, notes, and snippets.

@jude
jude / src2png.py
Created November 29, 2009 02:05
src2png.py and experiment in source code visualization
We couldn’t find that file to show.
@jude
jude / format_str_checker.py
Created September 25, 2017 03:06
pylint plugin example
"""Checker for unneccessary use of str() in format() arguments."""
import six
import astroid
from pylint.checkers import BaseChecker, utils
from pylint.interfaces import IAstroidChecker
@jude
jude / Vagrantfile
Created October 9, 2017 03:21
A Vagrantfile for building an Elixir rpm for Centos 7
$script = <<'SCRIPT'
echo "elixir packaging"
# --------------------------------------
# Change to the vagrant shared directory
# --------------------------------------
cd /vagrant
# ------------------------------------------------------
@jude
jude / .vimrc
Last active January 8, 2020 04:53
.vimrc words to avoid
syntax on
" TechWordsToAvoid: https://wynnnetherland.com/linked/2014010902/words-to-avoid-in-tech-writing
" SportsballWords: https://www.ehtc.com/resources/news-articles/bid/87767/Sports-The-Lingo-of-Business, https://www.nytimes.com/2013/07/07/jobs/going-the-distance-with-sports-analogies.html
let badwords=[ {'name': 'TechWordsToAvoid', 'regexp': '/\c\<\(obviously\|basically\|simply\|of\scourse\|clearly\|just\|everyone\sknows\|however\|so\|easy\)\>/'},
\ {'name': 'SportsballWords', 'regexp': '/\c\<\(ball\|base\|blow\|bounce\|corner\|course\|court\|dive\|dunk\|field\|game\|hit\|hitters\|home\srun\|huddle\|hurdle\|jump\|kick\|league\|lose\|nine\syards\|pace\|par\|play\|punt\|rookie\|scrum\|shot\|sprint\|strike\|swing\|tackle\|team\|throw\|touch\|win\)\>/'}
\ ]
for bw in badwords
execute 'syntax match ' . bw.name . ' ' . bw.regexp