Skip to content

Instantly share code, notes, and snippets.

View jonpecson's full-sized avatar
💻
In permanent beta: learning, improving, evolving...

John Pecson jonpecson

💻
In permanent beta: learning, improving, evolving...
View GitHub Profile
function go() {
var userId = prompt('Username?', 'Guest');
checkIfUserExists(userId);
}
var USERS_LOCATION = 'https://SampleChat.firebaseIO-demo.com/users';
function userExistsCallback(userId, exists) {
if (exists) {
alert('user ' + userId + ' exists!');
@jonpecson
jonpecson / app.js
Created August 1, 2014 01:10 — forked from jgoux/app.js
angular.module('myApp', ['ionic', 'myApp.services', 'myApp.controllers'])
.run(function(DB) {
DB.init();
});