Skip to content

Instantly share code, notes, and snippets.

View golmakov's full-sized avatar

Aleksander Golmakov golmakov

View GitHub Profile

Keybase proof

I hereby claim:

  • I am golmakov on github.
  • I am golmakov (https://keybase.io/golmakov) on keybase.
  • I have a public key ASBBUM84bJgN6lTJufgv4pksaEN_adqkJU-fO-RnTeuZbAo

To claim this, I am signing this object:

@golmakov
golmakov / pasteAnyDate.js
Created March 26, 2022 17:54
Multiformat parsing and normalisation of dates
const LENGTH_YEAR = 4;
const LENGTH_MONTH = 2;
const LENGTH_DATE = 2;
const LENGTH_SEPARATOR = 1;
const SEPARATOR = `(?:\\.|\\/|\\-|\\s|\\,)`;
/* RegExps for parsing Date formats */
const RE_ORDER_MDY = new RegExp(
@golmakov
golmakov / Launch Zoom Meeting.js
Last active October 16, 2020 10:55
Script for Scriptable. Select a next meeting in a calendar and launch Zoom in one click, regardless of where the link to a meeting was saved
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: deep-green; icon-glyph: bullhorn;
const getEventsForToday = CalendarEvent.today()
.then(result => {
return result.filter(event => {
return !event.isAllDay && event.endDate > Date.now()
})
}