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
var Q = require("q"); | |
var slowFunction1 = function( myObject ) { | |
console.log("\nRunning slowFunction1"); | |
console.log(myObject); | |
var deferred = Q.defer(); | |
setTimeout( function() { |
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
/*! | |
* Copyright 2013 Drifty Co. | |
* http://drifty.com/ | |
* | |
* Ionic, v0.9.17 | |
* A powerful HTML5 mobile app framework. | |
* http://ionicframework.com/ | |
* | |
* By @maxlynch, @helloimben, @adamdbradley <3 | |
* |
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
/*! | |
* Copyright 2013 Drifty Co. | |
* http://drifty.com/ | |
* | |
* Ionic, v0.9.17 | |
* A powerful HTML5 mobile app framework. | |
* http://ionicframework.com/ | |
* | |
* By @maxlynch, @helloimben, @adamdbradley <3 | |
* |
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
form i.icon.error { | |
color: $assertive; | |
} | |
form input + i.icon.error { | |
display: none; | |
margin-left: 8px; | |
} | |
form.ng-submitted input.ng-invalid + i.icon.error { |
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
var gulp = require('gulp'); | |
var minifyCss = require('gulp-minify-css'); | |
var jshint = require('gulp-jshint'); | |
var uglify = require('gulp-uglify'); | |
var rename = require('gulp-rename'); | |
var concat = require('gulp-concat'); | |
var gulpIgnore = require('gulp-ignore'); | |
var rimraf = require('rimraf'); | |
var gutil = require('gulp-util'); | |
var bower = require('bower'); |
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
// Outside of angular, need to listen for `push-notification` event. | |
document.addEventListener('push-notification', function(event) { | |
// Get access to angular to report event. | |
var body = document.getElementsByTagName("body")[0]; | |
var appController = angular.element(body).scope(); | |
appController.processPushnotification(event); | |
}); |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Girl Scout Class</title> | |
<link rel="stylesheet" href="reset.css"/> | |
<link rel="stylesheet" href="style.css"/> | |
</head> |
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
{ | |
"rules": { | |
".read": false, | |
".write": false, | |
"users" : { | |
"$userId" : { | |
".write" : "$userId === auth.uid && !data.exists() && newData.exists() && auth.uid !== 'anonymous'", | |
// Can only read if the node is the same as the uid |
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
// Right click an element and select "Inspect Element" | |
// Courtesy : http://michalostruszka.pl/blog/2013/09/24/angularjs-in-browsers-console/ & | |
// http://ionicframework.com/blog/angularjs-console/ | |
var scope = angular.element($0).scope(); | |
var rootScope = scope.$root | |
scope.$apply( function() { | |
rootScope.$broadcast('showOffline', {msg : 'goes here', duration : 1230}); | |
}) |
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
``` | |
(function() { | |
/** | |
* @ngInject | |
*/ | |
function ius($q, $ionicLoading, $cordovaFile, $translate, CLOUDINARY_CONFIGS) { | |
var service = {}; |
OlderNewer