Skip to content

Instantly share code, notes, and snippets.

@bchopson
bchopson / pre-commit
Created June 2, 2016 17:16
Pre-commit hook to enforce space after function keyword
#!/bin/sh
if grep -r --include \*.js "function(" ./app
then
echo "Put a space after the function keyword!"
echo "Run the following command in app directory to fix:";
echo "find . -name \"*.js\" -print0 | xargs -0 sed -i -e 's/function(/function (/g'"
exit 1;
else
exit 0;
@bchopson
bchopson / find-failures.sh
Created June 13, 2016 19:31
Command to find grunt test failures
grunt clean:server && grunt test | grep -i -3 failed
@bchopson
bchopson / keybase.md
Created December 10, 2018 16:27
keybase

Keybase proof

I hereby claim:

  • I am bchopson on github.
  • I am bchopson (https://keybase.io/bchopson) on keybase.
  • I have a public key ASBDZJsobzgM0joNIK81gDmY5MoaBc9Q7vHRehafvyb7JAo

To claim this, I am signing this object:

@bchopson
bchopson / empire-slack-theme.txt
Created June 25, 2019 13:40
Empire Slack Theme
#292C30,#000000,#B90508,#FFFFFF,#000000,#FFFFFF,#38FFF5,#CC4400
@bchopson
bchopson / candid-slack-theme.txt
Created July 8, 2020 19:09
candid-slack-theme.txt
#2F343F,#241D2E,#FFCE5B,#2F343F,#4C8273,#EFEEEA,#2CDA9D,#FB7DA7,#A18BD3,#1C1C1C
@bchopson
bchopson / modal.html
Created August 20, 2021 21:03
Jinja confirm dialog replacement
{%
macro confirm(
name,
title,
cancel_text='Cancel',
cancel_class='btn btn-secondary',
confirm_text='OK',
confirm_class='btn btn-primary'
)
-%}