Skip to content

Instantly share code, notes, and snippets.

View wopian's full-sized avatar
🦑

James Harris wopian

🦑
View GitHub Profile

In the TrainMultipleUnit, it will be possible to have one or more composition lines, with this syntax:

composition=translation_id,English name of composition,<unit spec 1>,<unit spec 2>,<unit spec 3>,...

Where a unit spec is defined as either just the TrainUnit ID:

unit_id1

Or a TrainUnit ID followed by a min, default and max number of duplications. 0 is allowed as the min and default number:

TrainUnit tags: coach, restaurant, bar, lounge, observation, baggage, sleeper, sitting, standing, tram, cable-car,
control, end-of-train, railbus, locomotive, deposit, tender, generator
The gauge and power tags from TMU are also allowed
TrainMultipleUnit new fields
introduced: year introduced, integer
retired: year retired, integer
country/ies built by: Alpha-2 from https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes
country/ies operated: Alpha-2 from https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes
@tomhicks
tomhicks / plink-plonk.js
Last active March 18, 2024 02:23
Listen to your web pages
@gorhill
gorhill / imgur.filters.txt
Created July 16, 2017 12:48
Clean imgur on mobile
m.imgur.com##.GalleryHandler-postContainer ~ .GalleryHandler-postContainer
m.imgur.com##.getTheApp
m.imgur.com##.FloatingOIA-container
m.imgur.com##.GalleryInfiniteScroll > div > div[style^="width: 100%; height:"]
anonymous
anonymous / gist:9803808
Created March 27, 2014 09:37
"swimmers"
float t, r1, r2, d, time;
float q = 0.001;
void setup() {
smooth(8);
size(500, 500);
fill(240);
noStroke();
}