This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
# Deletes local branches that have been deleted on the remote | |
function pruneLocalBranches { | |
# Get the main branch name (the one checked out on the remote) | |
mainBranch=$(git rev-parse --abbrev-ref origin/HEAD | cut -d "/" -f 2) | |
# Check out that branch because it should never get pruned | |
git checkout $mainBranch &> /dev/null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
var React = require('react'); | |
/** | |
* SVG icon component | |
* | |
* Renders an icon with the given symbol id. Assumes you have a SVG definitions | |
* document with symbols defined. React sometimes chokes on SVGs defined in | |
* JSX, so a workaround is to wrap it in a tag and set the inner HTML of that |