Skip to content

Instantly share code, notes, and snippets.

View met's full-sized avatar
:octocat:

Martin Hassman met

:octocat:
View GitHub Profile
@tichytom
tichytom / PID.md
Last active March 15, 2025 17:50
Prague Public transport departure board for BASH
@sonkol
sonkol / next_stops.sql
Created October 9, 2024 14:33
Given a stop from which connections departure, return a list of following stops
-- Query GTFS tables
SELECT DISTINCT
x.stop_id,
next_stop,
stops.stop_name
FROM
(
SELECT
stop_id,
stop_sequence,
@mormegil-cz
mormegil-cz / most_edited_articles_cswiki_2022.tsv
Created December 15, 2022 08:13
Nejeditovanější články na cswiki v roce 2022
Článek Editací
Ruská invaze na Ukrajinu (2022) 1674
Časová osa ruské invaze na Ukrajinu (2022) 731
Mistrovství světa ve fotbale 2022 483
Survivor Česko & Slovensko 352
Úmrtí v roce 2022 342
Seznam fotbalistů s 500 a více vstřelenými brankami 331
Tvoje tvář má známý hlas (9. řada) 325
2022 316
Seznam zájemců o kandidaturu ve volbě prezidenta České republiky 2023 311
@AvidDabbler
AvidDabbler / gtfs-feeds.json
Created July 28, 2021 03:16 — forked from yocontra/gtfs-feeds.json
huge collection of gtfs and gtfs-rt feeds, updated regularly
[{"id":"roam-transit/953","type":"gtfs","name":"Roam Transit GTFS","raw":"http://data.trilliumtransit.com/gtfs/roamtransit-banff-ab-ca/roamtransit-banff-ab-ca.zip","location":{"type":"Point","properties":{"name":"Banff, AB, Canada","shortName":"Banff"},"coordinates":[-115.570769,51.178363]}},{"id":"mission-bay-tma/952","type":"gtfs","name":"Mission Bay TMA GTFS","raw":"http://data.trilliumtransit.com/gtfs/missionbay-ca-us/missionbay-ca-us.zip","location":{"type":"Point","properties":{"name":"San Francisco, CA, USA","shortName":"San Francisco"},"coordinates":[-122.419415,37.774929]}},{"id":"avalon-transit/951","type":"gtfs","name":"Avalon Transit","raw":"http://data.trilliumtransit.com/gtfs/avalon-ca-us/avalon-ca-us.zip","location":{"type":"Point","properties":{"name":"Santa Catalina Island, California 90704, USA","shortName":"Santa Catalina Island"},"coordinates":[-118.41631,33.387886]}},{"id":"blue-grass-ultra-transit-service/950","type":"gtfs","name":"Blue Grass Ultra-Transit Service GTFS","raw":"http://dat
@rauschma
rauschma / impatient-js-es2021.md
Last active August 31, 2023 07:02
ES2021 edition of “JavaScript for impatient programmers”

What is new in the ES2021 edition of “JavaScript for impatient programmers”?

Free to read online: exploringjs.com/impatient-js/

  • The exercises now run as native ESM modules on Node.js. Previously, they were run via the esm package.
  • Material on new ES2021 features:
    • String.prototype.replaceAll()
    • Promise.any()
    • Logical assignment operators
  • Underscores (_) as separators in number literals and bigint literals
alias ls='ls --color=auto'
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
# Add an "alert" alias for long running commands. Use like so:
@timvisee
timvisee / falsehoods-programming-time-list.md
Last active April 27, 2025 01:29
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).
@dimapaloskin
dimapaloskin / Netflix.seek.js
Created October 18, 2017 18:32
Netflix seek
const videoPlayer = netflix
.appContext
.state
.playerApp
.getAPI()
.videoPlayer;
// Getting player id
const videoPlayer = videoPlayer
.getAllPlayerSessionIds()[0]

Upload images to GitHub

  1. Create a new issue on GitHub.

  2. Drag an image into the comment field.

  3. Wait for the upload process to finish.

  4. Copy the URL and use it in your Markdown files on GitHub.

@tomrus88
tomrus88 / gist:28fa1a4a25271e04616e
Last active August 2, 2023 01:35
WoW Lua Globals
_ERRORMESSAGE
AbandonQuest
AbandonSkill
AbbreviateLargeNumbers
AbbreviateNumbers
abs
AcceptAreaSpiritHeal
AcceptBattlefieldPort
AcceptDuel
AcceptGroup