Skip to content

Instantly share code, notes, and snippets.

View gotgenes's full-sized avatar

Chris Lasher gotgenes

View GitHub Profile
!_TAG_FILE_ENCODING utf-8 //
bats.vim-bats-vim bats.vim.md /# bats.vim
bats.vim-configuration bats.vim.md /## Configuration
bats.vim-g-bats-vim-consider-dollar-as-part-of-word bats.vim.md /### `g:bats_vim_consider_dollar_as_part_of_word`
bats.vim-installation bats.vim.md /## Installation
bats.vim-license bats.vim.md /## License
bats.vim-or bats.vim.md /# OR
better-escape.nvim-api better-escape.nvim.md /## API
better-escape.nvim-better-escape-nvim better-escape.nvim.md /# 🚪better-escape.nvim
better-escape.nvim-customization better-escape.nvim.md /## ⚙️Customization

Keybase proof

I hereby claim:

  • I am gotgenes on github.
  • I am chrislasher (https://keybase.io/chrislasher) on keybase.
  • I have a public key ASDvna7CwPUAdj7UO_sOO8Ky0MatlRBrbC-Mu3JdZDuRZgo

To claim this, I am signing this object:

@gotgenes
gotgenes / prepare-commit-msg.sh
Last active September 26, 2016 19:04 — forked from bartoszmajsak/prepare-commit-msg.sh
How to automatically prepend git commit with a branch name
#!/bin/bash
# This way you can customize which branches should be skipped when
# prepending commit message.
if [ -z "$BRANCHES_TO_SKIP" ]; then
BRANCHES_TO_SKIP=(master develop test)
fi
BRANCH_NAME=$(git symbolic-ref --short HEAD)
BRANCH_NAME="${BRANCH_NAME##*/}"
@gotgenes
gotgenes / install_python_env_osx.sh
Last active December 23, 2015 10:59
Install setuptools, pip, and virtualenvwrapper for OS X.
#!/bin/bash
set -e
set -u
PYTHON_VERSION='2.7' # Change this value if you use a different version of python, e.g., 3.3
PYTHON="python${PYTHON_VERSION}"
PIP="pip-${PYTHON_VERSION}"
echo "Installing most recent version of setuptools."
sudo bash -c 'curl https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py | "${PYTHON}"'
@gotgenes
gotgenes / install_python_dependencies.sh
Last active December 11, 2015 17:48
Quick installation of Python dependencies and settings.
#!/bin/bash
set -e
set -u
curl http://python-distribute.org/distribute_setup.py | python
curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python
pip install nose
easy_install readline
pip install ipython
echo 'export PATH="${HOME}/.local/bin:${PATH}"' >> ~/.bashrc
@gotgenes
gotgenes / linklocalbin.sh
Created November 1, 2012 13:53
A script to link executables into the local bin directory.
#!/bin/bash
# A simple script to symlink executables to the local bin directory
set -e
LOCAL_BIN_DIR="$HOME/.local/bin"
ln_flags="-sn"
while getopts "fd:" OPTION; do
@gotgenes
gotgenes / get_ropevim.sh
Created October 31, 2012 19:01
Get the latest ropevim
set -e
pip install -e hg+https://bitbucket.org/agr/rope#egg=rope
pip install --no-deps -e hg+https://bitbucket.org/agr/ropemode#egg=ropemode
pip install --no-deps -e hg+https://bitbucket.org/agr/ropevim#egg=ropevim
@gotgenes
gotgenes / edgeswap.py
Created May 22, 2012 16:12
Edge swap graph.
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# Copyright (c) 2011-2012 Christopher D. Lasher
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to