Skip to content

Instantly share code, notes, and snippets.

View rmaceissoft's full-sized avatar

Reiner Marquez rmaceissoft

View GitHub Profile
/*global module, require, console*/
/*jslint nomen: false*/
var properties = {
// global properties go here
appName: "tidalwavez",
logs : {
folder : './log',
'use strict';
// Load Dependencies
var $ = require('jquery');
require('jquery-guillotine');
var angular = require('angular');
var _ = require('lodash');
var app = angular.module('pageApp', []);
@rmaceissoft
rmaceissoft / engine.md
Last active August 11, 2016 16:58 — forked from douglasgoodwin/engine.md
What's under the hood?

What's under the hood?

(in progress)

  1. GTFS Schedule data
  2. Open Trip Planner
  3. Application Programming Interfaces (APIs)
  4. Mapbox map tiles
  5. Database
  6. Backend framework
HASTUS_ID, Station title ////// Title of GTFS Stop linked
15432 Canoga Station ///////// Canoga Station
5030 Figueroa Wy/Adams ///////// Figueroa / Adams
5019 Figueroa/7th ///////// Figueroa / 7th
13489 Flower/7th ///////// Flower / 7th
80123 23rd St Station ///////// LATTC / Ortho Institute Station
1813 Flower/23rd ///////// Flower / 23rd
80127 Expo/Western Station ///////// Expo / Western Station
15535 Sepulveda Station ///////// Sepulveda Station
5040 Figueroa/Olympic ///////// Figueroa / Olympic
@rmaceissoft
rmaceissoft / gist:ba5be255be4a3adfee7116651fafd039
Created August 27, 2018 21:25
OTPClient is a python class to make requests to the OTP API and process the response according to our needs:
import math
import re
import time
from django.conf import settings
import requests
# used to remove stop id from stop names included into pattern description
regex_stop_id = re.compile('(\(\w+:\d+\))')
@rmaceissoft
rmaceissoft / gist:7212a82149efe7518ce0a378cb2cc6e3
Created August 27, 2018 21:25
OTPClient is a python class to make requests to the OTP API and process the response according to our needs from the server side:
import math
import re
import time
from django.conf import settings
import requests
# used to remove stop id from stop names included into pattern description
regex_stop_id = re.compile('(\(\w+:\d+\))')