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
#! /usr/bin/python | |
# Written by Chris Newell, May 2015 | |
# License: GPL 3.0 | |
from gps import * | |
import os | |
import time | |
import threading | |
import Adafruit_BMP.BMP085 as BMP085 | |
import sqlite3 |
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> | |
<% include ../partials/private/header.ejs %> | |
</head> | |
<body ng-app="DashboardModule"> | |
<!-- container = Fixed-width container container-fluid = full-width --> |
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
<!-- | |
/* ////////////////////////////////////////////////////////////////////////////////////////////////// */ | |
/* ///////////////////////////////////////////////////////////////////////////////////////////////// */ | |
/* //////////// ////////// MLB DFS Pitcher Projections by Swish Analytics /////// ////////////// */ | |
/* /////////////////////////////// April, 2015 //////////////////////////////// */ | |
/* ////////////////////////////////////////////////////////////////////////////////////////////// * | |
______ ___ ___ __ ______ __ __ | |
/\ ___\ /\ \ __\ \ /\ \ /\ ___\ /\ \_\ \ | |
\ \___ \ \ \ \/ _\\ \ \ \ \ \ \___ \ \ \ __ \ |
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> | |
<title>9.html</title> | |
<style type="text/css"> | |
html, body, #map-canvas { height: 50%; margin: 0; padding: 0;} | |
</style> | |
<script type="text/javascript" | |
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyD80zw7bMpGi1iSS_eL_R0RktTaxCl_ovo"> |
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 mongoSqlCompare () { | |
function doSomething(aMongoUsers) { | |
return aMongoUsers; | |
} | |
// set empty array | |
var mongo_users = [] | |
var xyz = [] |
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 mongoSqlCompare () { | |
// set empty arrays | |
var mongo_users = [] | |
var sql_users = [] | |
// find all user objects in mongo db | |
stUser.find({}, function(err, res) { | |
if (err) throw 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
/** | |
* UserController | |
* | |
* @description :: Server-side logic for managing users | |
* @help :: See http://links.sailsjs.org/docs/controllers | |
*/ | |
var qs = require('querystring'); | |
var request = require('request'); | |
var jwt = require('jwt-simple'); | |
var moment = require('moment'); |
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
/** | |
* UserController | |
* | |
* @description :: Server-side logic for managing users | |
* @help :: See http://links.sailsjs.org/docs/controllers | |
*/ | |
/* | |
|-------------------------------------------------------------------------- | |
| Login with Twitter | |
|-------------------------------------------------------------------------- |
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 getStData = function() { | |
// loading database from db.js | |
var connection = dbConnect.shoreware(); | |
//SQL Query | |
connection.query('SELECT u.UserDN, GuiLoginName, LDAPGuid, LDAPDomainName, EmailAddress, s.FirstName, s.LastName, s.WorkPhone, s.CellPhone, s.FaxPhone, s.SiteName, d.Digits, CONCAT(SUBSTR(BasePhoneNumber,3,10 - CHAR_LENGTH(d.Digits)),d.Digits) AS DID FROM shoreware.users AS u JOIN shoreware.diddigitmap AS d ON u.UserDN = d.DN JOIN systemdirectorydisplay AS s ON u.UserDN = s.dn JOIN tabaddresses AS t ON s.WorkPhone = t.WorkPhone WHERE LDAPUser = 1', function getStSqlData(err, res) { | |
if (err) throw err; | |
// parse response from sql query |
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
angular.module('app').factory('AuthService', function ($http) { | |
return { | |
signup: function (email, password, company, name) { | |
return $http.post('/api/user/email', {email, password, company, name}) | |
}, | |
currentUser: null |
OlderNewer