View gist:ba250e1c9231fad05e2a
function git-branch-current() { | |
printf "%s\n" $(git branch 2> /dev/null | grep -e ^* | tr -d "\* ") | |
} | |
function git-branch-cleanup() { | |
local currentBranch=$(git-branch-current) | |
local otherBranch= | |
for otherBranch in $(git branch | grep -v $currentBranch) ; do | |
printf "Branch %s:\n" "$otherBranch" | |
printf " HEAD commit is: %s\n" "$(git log --oneline -n 1 $otherBranch)" |
View cordova-device-ready.js
import isOnCordova from '../utils/is-on-cordova'; | |
export function initialize(container, application) { | |
application.deferReadiness(); | |
document.addEventListener('deviceready', function() { | |
application.advanceReadiness(); | |
}, false); | |
if(!isOnCordova()){ | |
document.dispatchEvent(new Event('deviceready')); | |
} |