Skip to content

Instantly share code, notes, and snippets.

var isFullscreen = false
var originaWidths
function toggleFullscreen() {
let outerContainer = document.querySelector('#dialogueChat').style
let innerContainer = document.querySelector('#lekaneBanner_chatContentsContainer').style
if (isFullscreen) {
outerContainer.width = originalWidths.outerContainer
innerContainer.width = originalWidths.innerContainer
} else {
let outerContainer = document.querySelector('#dialogueChat').style
#You should copy-paste or source this to/from your ~/.bash_profile (or whatever you're using)
git_complete_dir="$HOME/.git-completion"
if [ ! -d "$git_complete_dir" ]; then
mkdir "$git_complete_dir"
fi
command pushd "$git_complete_dir" > /dev/null
now="$(date +%Y-%m-%d)"
if [ "$(tail -1 check.log)" != "$now" ]; then
echo "$now" >> check.log
echo "Checking for updates..."