Test
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
Show hidden characters
{ | |
"presets": ["next/babel", "@emotion/babel-preset-css-prop"], | |
"plugins": [ | |
[ | |
"prismjs", | |
{ | |
"languages": [ | |
"javascript", | |
"css", | |
"markup", |
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
module.exports = { | |
overwrite: true, | |
generates: { | |
"./data/index.tsx": { | |
schema: [ | |
{ | |
"http://localhost:8081/v1/graphql": { | |
headers: { | |
"x-hasura-role": "anonymous" | |
} |
#PDXLiveBus
This is a quick tutorial. It's a 2 parter, the first part explaining the concept, how I got the data, and other misc things. The second part is going to be technical. I'll walk you through launching your own PDXLiveBus, and then building it from scratch. Hopefully this can help you implemnet one for your own city.
#The Concept The concept was actually built from SFLiveBus and I just happened to see it and said I could do that. It also helped that I took TriMet and was a little frustrated in that the bus was always late and all I ever wanted to know was where it was at.
#The Vehicles
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
import { StyleSheet, View, Text, ActivityIndicator } from "react-native"; | |
import Sizer from "react-native-size"; | |
import { | |
VictoryChart, | |
VictoryLine, | |
VictoryTheme, | |
VictoryAxis, | |
VictoryContainer, | |
VictoryCursorContainer, | |
Line, |
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
import React from "react"; | |
import ReactModal from "react-modal"; | |
import styled from "react-emotion"; | |
export interface ModalProps { | |
open: boolean; | |
contentLabel?: string; | |
onClose: Function; | |
} |
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
import React from "react"; | |
import { render } from "react-dom"; | |
import { BrowserRouter, Switch, Route } from "react-router-dom"; | |
import RenderTo from "./render_to"; | |
import Header from "./components/header"; | |
import Nav from "./components/nav"; | |
import Home from "./pages/home"; | |
import AccountsReview from "./pages/accounts_review"; |
NewerOlder