Skip to content

Instantly share code, notes, and snippets.

View drmercer's full-sized avatar

Dan Mercer drmercer

View GitHub Profile
@asabaylus
asabaylus / gist:3071099
Created July 8, 2012 14:12
Github Markdown Heading Anchors

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)

@mmrko
mmrko / git-zsh-checkout-autocomplete-local-only.md
Last active July 20, 2023 08:48
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)"
+else
@christiancarnley
christiancarnley / instructions.md
Last active February 3, 2022 03:03
A dark theme for Slack
  • 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 February 16, 2016 18:17
async/await with webpack+babel
{
"presets": ["es2015"],
"plugins": ["transform-async-to-generator"]
}