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
passport.use('custom-login', new Custom(function (req, done) { | |
var email = req.param('email'), | |
pw = req.param('password'); | |
User.findOne({"local.email": email}, function (err, usr) { | |
if (err){ | |
console.log(err); | |
return done(err); | |
} | |
if (!usr) | |
{ |
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 LoadDetails() { | |
mEntity = GetParameterByName('addressforhistory'); | |
var apiurl = ""; | |
if (mEntity.length > 0) | |
{ | |
$(".mapWidget").hide(); | |
apiurl = "http://services.phila.gov/ULRS311/Data/LIAddressKey/" + encodeURIComponent(mEntity); | |
LIMapHistoryServiceCall(apiurl, historySearch, null); | |
} | |
else if ($("#addressHistorySearchTxt").val().replace(/^\s+|\s+$/g, "").length > 0) |
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 request = require('bluebird'), | |
bhttp = require('bhttp'), | |
cheerio = require('cheerio'), | |
fs = require('fs'), | |
formData = []; | |
bhttp.get("http://services.phila.gov/", {}, function(err, response) { | |
if (err) { | |
return console.error('ERROR! This is what went wrong:', err); | |
} |
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 request = require('bluebird'), | |
bhttp = require('bhttp'), | |
cheerio = require('cheerio'), | |
fs = require('fs'), | |
formData = []; | |
bhttp.get("http://services.phila.gov/", {}, function(err, response) { | |
if (err) { | |
return console.error('ERROR! This is what went wrong:', err); | |
} |
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 request = require('bluebird'), | |
bhttp = require('bhttp'), | |
cheerio = require('cheerio'), | |
fs = require('fs'), | |
formData = []; | |
bhttp.get("http://services.phila.gov/", {}, function(err, response) { | |
if (err) { | |
return console.error('ERROR! This is what went wrong:', err); | |
} |
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 LoadDetails() { | |
mEntity = GetParameterByName('addressforhistory'); | |
var apiurl = ""; | |
if (mEntity.length > 0) | |
{ | |
$(".mapWidget").hide(); | |
apiurl = "http://services.phila.gov/ULRS311/Data/LIAddressKey/" + encodeURIComponent(mEntity); | |
LIMapHistoryServiceCall(apiurl, historySearch, null); | |
} |
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
.controller('DashBoardCtrl', function($scope, $cordovaContacts) { | |
$scope.user = {}; | |
Parse.User.current().fetch().then(function (user) { | |
$scope.user.username = user.get('username'); | |
$scope.user.email = user.get('email'); | |
$scope.user.fname = user.get('firstName'); | |
$scope.user.lname = user.get('lName'); | |
$scope.user.draftpick = user.get('draftpick'); | |
}); | |
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
.controller('DashBoardCtrl', function($scope, $cordovaContacts) { | |
$scope.user = {}; | |
Parse.User.current().fetch().then(function (user) { | |
$scope.user.username = user.get('username'); | |
$scope.user.email = user.get('email'); | |
$scope.user.fname = user.get('firstName'); | |
$scope.user.lname = user.get('lName'); | |
$scope.user.draftpick = user.get('draftpick'); | |
}); | |
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
$scope.contactgrab = function () { | |
$cordovaContacts.pickContact().then(function (contactPicked) { | |
$scope.contact = contactPicked; | |
// Parse.User.current().then(function() { | |
Parse.User.current().set('draftpick', $scope.contact.displayName); | |
// }); | |
Parse.User.current().save(null,{ | |
success: function(){ | |
$scope.$apply(); // not yet tested | |
alert("added"); |
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
.controller('LoginCtrl', function($scope, $state) { | |
$scope.data = {}; | |
$scope.signupEmail = function(){ | |
//Create a new user on Pasre | |
var user = new Parse.User(); | |
user.set("username", $scope.data.username); | |
user.set("password", $scope.data.password); | |
user.set("email", $scope.data.email); | |