Skip to content

Instantly share code, notes, and snippets.

View joellord's full-sized avatar

Joel Lord joellord

View GitHub Profile
@joellord
joellord / index.html
Last active February 17, 2021 12:12
Accelerometer samples
<html>
<body>
<div class="row">
<div class="col-12">
<h4>Device Orientation Demo</h4>
</div>
</div>
<div class="row">
<div class="col-12 center">
<div id="room" style="text-align: center; width: 95%; height: 300px; border: solid 3px black; border-radius: 25px;">
@joellord
joellord / .bashrc
Created February 24, 2022 21:03
Code for my PS1
function parse_git_branch() {
BRANCH=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'`
if [ ! "${BRANCH}" == "" ]
then
STAT=`parse_git_dirty`
echo "[${BRANCH}${STAT}]"
else
echo ""
fi
}