Skip to content

Instantly share code, notes, and snippets.

View uncletomiwa's full-sized avatar
🏠
Working from home

Tomiwa Ijaware uncletomiwa

🏠
Working from home
View GitHub Profile
import json
import datetime
from time import mktime
from google.appengine.ext import ndb
__author__ = 'oyewale'
class GeoDateEncoder(json.JSONEncoder):
controllers.controller('MainCtrl', function($scope, $location, Facebook, $rootScope, $http, $location, Upload, Auth, User, Question, Category, Serie, Record, Location, Popup, Process, Card, Question) {
$scope.$on('authLoaded', function() {
$scope.isExpert($scope.main.serieId);
$scope.isMember($scope.main.serieId);
});
$scope.loadAuth = function() {
Auth.load().success(function(data) {
$scope.main.user = data.user;
$scope.$broadcast("authLoaded");