This file contains 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
package main | |
import ( | |
"go/ast" | |
"go/parser" | |
"go/token" | |
"io/ioutil" | |
"os" | |
) |
This file contains 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
# For use with chrome extension JavaScript Injector | |
# pattern: https://github.*/*/*/pull/*/files | |
var divs = document.getElementsByClassName("container new-discussion-timeline experiment-repo-nav") | |
for (let i = 0; i < divs.length; i++) { | |
divs[i].style.width = 'auto'; | |
divs[i].style.marginLeft = '25px'; | |
divs[i].style.marginRight = '25px'; | |
} |
This file contains 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
# Based on http://www.terminally-incoherent.com/blog/2013/01/14/whats-in-your-bash-prompt/ | |
# Requires Bash >= 4.2 | |
# Colors | |
Color_Off='\033[0m' | |
Red='\033[0;31m' | |
Green='\033[0;32m' | |
Purple='\033[0;35m' | |
LightBlue='\e[94m' | |
Dim='\e[2m' |
This file contains 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
# prints the underlying command for an alias | |
function print_alias() { | |
BLUE="\033[1;34m" # Light Blue | |
NC='\033[0m' # No Color | |
printf ">>> Running ${BLUE}$(alias $@ | cut -d"'" -f2 | cut -d";" -f2- | cut -d'&' -f3-| xargs)${NC}\n" | |
} | |
### source aliases to decorate | |
source ~/.bash_aliases_decorated |