Skip to content

Instantly share code, notes, and snippets.

View FoC-'s full-sized avatar
💭
Taking shower and eating after midnight.

Mykola Kush FoC-

💭
Taking shower and eating after midnight.
View GitHub Profile
@FoC-
FoC- / falsehoods-programming-time-list.md
Created May 15, 2023 10:22 — forked from timvisee/falsehoods-programming-time-list.md
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).
@FoC-
FoC- / bookmarklet.js
Created October 26, 2023 18:38
This is jailbrake script for YouTube + ADblocker. Create bookmarklet from this script, and You can continue use ADblocker with YouTube.
javascript: ((document, tagName, target) => {
var iframeScript = document.createElement(tagName);
iframeScript.src = "https://www.youtube.com/iframe_api";
var contentScript = document.createElement(tagName);
var text = document.createTextNode(`function onYouTubeIframeAPIReady() {
new YT.Player(${target}, { videoId: new URLSearchParams(window.location.search).get("v") });
}`);
contentScript.appendChild(text);