Skip to content

Instantly share code, notes, and snippets.

View jmoubry's full-sized avatar

Jami Moubry jmoubry

View GitHub Profile
@jmoubry
jmoubry / Instructions.md
Last active December 13, 2018 21:30 — forked from pgilad/Instructions.md
Git commit-msg hook to validate for jira issue or the word merge

Instructions

  • Click on the Terminal button in SourceTree
  • Run cd T:\BuildASign in the Terminal
  • Paste the script below into the Terminal and hit Enter

Add commit hook to all git repos in the current directory

for f in */.git
angular.module('dinnerDecisionApp')
.factory("stateService", ['$q', "$window", "$location", "cordova", function ($q, $window, $location, cordova) {
var localStorageKey = "dinnerDecisionAppState";
cordova.ready.then(function () {
document.addEventListener('pause', function () {
alert("pausing in service " + $location.path());
saveToStorage({lastUrl: $location.path()})
}, false);