Skip to content

Instantly share code, notes, and snippets.

Avatar

Dan Mercer drmercer

View GitHub Profile
@ccarnley7
ccarnley7 / instructions.md
Last active Feb 7, 2019
A dark theme for Slack
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.githubusercontent.com/ccarnley7/f245c47c6f265d8cfb7a3247f3429ac6/raw/e092fde4da3a93175a39ce1e4dafb547720af730/slackDarkTheme.css',
@thejmazz
thejmazz / .babelrc
Created Feb 16, 2016
async/await with webpack+babel
View .babelrc
{
"presets": ["es2015"],
"plugins": ["transform-async-to-generator"]
}
@mmrko
mmrko / git-zsh-checkout-autocomplete-local-only.md
Last active Sep 18, 2021
List only local branches when autocompleting git checkout (Zsh)
View git-zsh-checkout-autocomplete-local-only.md
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)"
+else
@asabaylus
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)