Skip to content

Instantly share code, notes, and snippets.


Dan Mercer drmercer

View GitHub Profile
drmercer / pre-commit
Last active Apr 19, 2017 — forked from wesbos/commit-msg
ESLint 3.0 Git Pre Commit Hook
View pre-commit
# Get a list of all JS files currently staged for commit
files=$(git diff --cached --name-only | grep '\.jsx\?$')
# Prevent ESLint help message if no files matched
if [ -z "$files" ] ; then
echo "(No JavaScript files to lint.)"
exit 0
drmercer /
Last active Jan 11, 2019 — forked from ccarnley7/
A dark theme for Slack - works with your existing sidebar theme
  • Open the “ssb-interop.js” file
  • Mac: Applications/
  • Windows: C:\Users\<USERNAME>\AppData\Local\slack\app-<VERSION>\resources\app.asar.unpacked\src\static\ssb-interop.js
  • Add this snippet of code at the bottom:
document.addEventListener('DOMContentLoaded', function() {
        url: '',