Skip to content

Instantly share code, notes, and snippets.


Dan Mercer drmercer

View GitHub Profile
ccarnley7 /
Last active Feb 3, 2022
A dark theme for Slack
  • 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: '',
mmrko /
Last active May 31, 2022
List only local branches when autocompleting git checkout (Zsh)
git config --global alias.checkoutr checkout
$EDITOR /usr/local/share/zsh/site-functions/git-completion.bash

...and then modify the file as follows...

-__gitcomp_nl "$(__git_refs '' $track)"
+if [ "$command" = "checkoutr" ]; then
+    __gitcomp_nl "$(__git_refs '' $track)"
thejmazz / .babelrc
Created Feb 16, 2016
async/await with webpack+babel
View .babelrc
"presets": ["es2015"],
"plugins": ["transform-async-to-generator"]
asabaylus / gist:3071099
Created Jul 8, 2012
Github Markdown Heading Anchors
View gist:3071099

Anchors in Markdown

To create an anchor to a heading in github flavored markdown. Add - characters between each word in the heading and wrap the value in parens (#some-markdown-heading) so your link should look like so:

[create an anchor](#anchors-in-markdown)