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
Corrected Biberstrasse 15 into Biberstraße 15 | |
Corrected Franz Josefs Kai 29 into Franz-Josefs-Kai 29 | |
Stripping tail Mahler from Kaerntnerring 9-13/Mahler | |
Stripping tail Herrnhuterhaus from Neuer Markt 17 / Herrnhuterhaus | |
Corrected Neuer Markt 17 into Neuer Markt 17 | |
Corrected Singerstrasse 6 into Singerstraße 6 | |
Corrected Engerthstrasse 160-178 into Engerthstraße 160-178 | |
Corrected Franzensbrueckenstrasse 20 into Franzensbrückenstraße 20 | |
Corrected Heinestrasse 2 into Heinestraße 2 | |
Stripping tail Schiffamtsgasse 15 from Malzgasse 8/Schiffamtsgasse 15 |
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
"use strict"; | |
const DOMAIN = "example.com"; | |
const URLS_PER_FILE = 40000; | |
const fs = require("fs"); | |
const readline = require("readline"); | |
const rd = readline.createInterface({ | |
input: fs.createReadStream(`${__dirname}/input/ids-and-dates.txt`) | |
}); |
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 = [ | |
// needs replacement of uppercase characters | |
["Stadtpark/C WC-ANLAGE" , "Stadtpark WC-Anlage" ], | |
["Franz-Josefs-Kai 6 GASTRO-KIOSK 1" , "Franz-Josefs-Kai 6 Gastro-Kiosk 1" ], | |
["Seilerstätte 3D/910(GARAGE)" , "Seilerstätte 3D/910 (Garage)" ], | |
["Parkring 12A (HOTEL)" , "Parkring 12A (Hotel)" ], | |
["Franz-Josefs-Kai TIEFGARAGE" , "Franz-Josefs-Kai Tiefgarage" ], | |
["Herbert-von-Karajan-Platz KIOSK" , "Herbert-von-Karajan-Platz Kiosk" ], | |
["Schmerlingplatz (TIEFGARAGE)" , "Schmerlingplatz (Tiefgarage)" ], | |
["Seilerstätte 3E (KUNDENEINGANG)" , "Seilerstätte 3E (Kundeneingang)" ], |
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
Achim | |
Adolf | |
Albert | |
Alexander | |
Alexandra | |
Alfred | |
Ali | |
Alois | |
Andrea | |
Andreas |
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
const Calendar = java.util.Calendar; | |
const weekdayKeys = ["mon", "tue", "wed", "thu", "fri", "sat", "sun"]; | |
const equalTimeFrames = function(a, b) { | |
if (a.length !== b.length) { | |
return false; | |
} | |
for (let i = 0; i < a.length; i++) { | |
if (a[i] !== b[i]) { |
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
{ | |
"fields": [ | |
"trip_id", | |
"arrival_time", | |
"departure_time", | |
"stop_id", | |
"stop_sequence", | |
"route_id", | |
"service_id", | |
"agency_id", |
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
const addresses = require("./wien22.json"); | |
const lookup = function(name, number) { | |
return addresses.features.find(function(feature) { | |
return feature.properties["NAME_STR"].indexOf(name) === 0 && feature.properties["NAME_ONR"].indexOf(number) === 0; | |
}); | |
}; | |
const splitAddress = function(fullName) { | |
const numberReg = /\ [1-9][0-9]?([-–][1-9][0-9]?)?/g; |
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
/** | |
* @fileoverview The main application module. Start the application with the | |
* following command line: | |
* | |
* ringo path/to/main.js | |
* | |
* This will start the application using default configuration values. To customize | |
* create a directory containing the files `config.json`, `log4j.properties`. | |
* Then start the application using the following command line: | |
* ringo path/to/main.js -h path/to/config/directory |
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
{ | |
"recipient":{ | |
"id":"12345" | |
}, | |
"message":{ | |
"attachment":{ | |
"type":"template", | |
"payload":{ | |
"template_type":"button", | |
"text":"Need a link not to share?", |
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
[Unit] | |
Description=RingoJS App | |
After=syslog.target network.target remote-fs.target nss-lookup.target | |
[Service] | |
Type=simple | |
WorkingDirectory=/usr/local/ringojs-apps/my-app-dir/ | |
ExecStart=/usr/bin/ringo --production -Dringo.home=/usr/share/ringojs -J-server -Djava.awt.headless=true \ | |
-J-Xms256M -J-Xmx256M -J-Xbootclasspath/p:/usr/share/ringojs/lib/js.jar \ | |
-m /usr/local/ringojs-apps/my-app-dir/packages/ \ |