Skip to content

Instantly share code, notes, and snippets.

Avatar

Dan Mercer drmercer

View GitHub Profile
@drmercer
drmercer / pre-commit
Last active Apr 19, 2017 — forked from wesbos/commit-msg
ESLint 3.0 Git Pre Commit Hook
View pre-commit
#!/bin/sh
# 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
fi
@drmercer
drmercer / instructions.md
Last active Jan 11, 2019 — forked from ccarnley7/instructions.md
A dark theme for Slack - works with your existing sidebar theme
View instructions.md
  • Open the “ssb-interop.js” file
  • Mac: Applications/Slack.app/Contents/Resources/app.asar.unpacked/src/static/ssb-interop.js
  • 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() {
    $.ajax({
        url: 'https://gist.github.com/drmercer/003815071f3bddc581107a38e602e59e/raw/d279c406ae85428555d6ced1c3d16b30b37bd8b0/slackDarkTheme.css',