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
// | |
// serviceWorkerService.js | |
// | |
'use strict'; | |
angular.module('myApp.serviceWorker', []) | |
.service('serviceWorkerService', ['$q', '$http', '$location', '$timeout', | |
function($q, $http, $location, $timeout) { | |
var noTokenError = new Error('No Instance ID token available'); | |
var noPermissionError = new Error('Unable to get permission to notify'); |
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
#! /bin/sh | |
usage_error () { | |
echo 'Usage: sh migrator.sh <path to sqlite_to_postgres.py> <path to sqlite db file> <an empty dir to output dump files>' | |
echo | |
echo 'Example:' | |
echo '>sh migrator.sh sqlite_to_postgres.py ~/reviewboard.db /tmp/dumps' | |
echo | |
echo 'Tested on:' | |
echo 'Python 2.7.3' |