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
apiVersion: v1 | |
kind: PersistentVolumeClaim | |
metadata: | |
name: tt-pg-data-claim | |
spec: | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: | |
storage: 200Gi |
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
apiVersion: v1 | |
kind: Deployment | |
metadata: | |
name: traintracks-api | |
spec: | |
replicas: 3 | |
template: | |
metadata: | |
labels: | |
app: traintracks-api |
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
mapboxgl.accessToken = 'secret'; | |
var map = new mapboxgl.Map({ | |
container: 'map', // container id | |
style: 'mapbox://styles/duizendnegen/cioiucbsl001yrcm6yanzs2yi', //stylesheet location | |
center: [5.1097, 52.0901], // starting position | |
zoom: 9 // starting zoom | |
}); | |
map.on('load', function() { | |
map.setFilter("railmap_all", ["all", |
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
FROM debian:jessie | |
RUN apt-get update && apt-get install -y gdal-bin curl | |
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash | |
RUN apt-get install -y nodejs | |
RUN mkdir -p /docker-entrypoint | |
COPY ./docker-entrypoint.sh /docker-entrypoint/docker-entrypoint.sh | |
CMD ["sh", "/docker-entrypoint/docker-entrypoint.sh"] |
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
\copy (SELECT tags -> 'to' AS route_to, tags -> 'from' AS route_from, tags -> 'to' AS route_to2, tags -> 'from' AS route_from2 FROM railmap_line WHERE tags -> 'route' = 'train' AND tags -> 'from' != '' AND tags -> 'to' != '') TO /psql/dump.csv CSV DELIMITER ',' |
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
FROM debian:jessie | |
RUN apt-get update && apt-get install -y osm2pgsql osmctools postgresql postgresql-client python2.7-minimal python-pip | |
RUN mkdir -p /docker-entrypoint-initdb.d | |
COPY ./run-importer.sh /docker-entrypoint-initdb.d/run-traintracks-importer.sh | |
RUN mkdir -p /traintracks-data | |
COPY ./data/railmap.style /traintracks-data/railmap.style | |
COPY ./data/railways.osm /traintracks-data/railways.osm |
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
FROM mdillon/postgis:9.4 | |
RUN apt-get update && apt-get install -y osm2pgsql osmctools | |
RUN mkdir -p /docker-entrypoint-initdb.d | |
COPY ./install-traintracks-db.sh /docker-entrypoint-initdb.d/install-traintracks-db.sh | |
RUN mkdir -p /traintracks-data | |
COPY ./railmap.style /traintracks-data/railmap.style | |
COPY ./railways.osm /traintracks-data/railways.osm |
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 rate = this.get('rate'); | |
var booking = this.get('booking'); | |
window._adftrack = { | |
pm: 400465, | |
divider: encodeURIComponent('|'), | |
pagename: encodeURIComponent('Booking_DCMN'), | |
order : { | |
sales: rate, | |
orderid: booking |
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 Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
model: [{love: true, content: "Mi amore"}, {love: true, content: "Schmetterling"}, {love: true, content: "Cupido"}], | |
usedComponent: 'love-component' | |
}); |
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 Ember from 'ember'; | |
import { module, test } from 'qunit'; | |
import startApp from 'tr-cli/tests/helpers/start-app'; | |
var application; | |
module('Acceptance | index', { | |
beforeEach: function() { | |
application = startApp(); | |
}, |