GIT_SSH_COMMAND='ssh -i PATH/TO/KEY/FILE -o IdentitiesOnly=yes' git clone [email protected]:OWNER/REPOSITORY
| // Automatically use pino-pretty if available in Cloudflare Workers | |
| // Note that pino-pretty needs to be installed in prod too with this solution, but it will not be used | |
| // https://gist.github.com/iTrooz/179e498d181f811ec6ebc30396a73f51 | |
| import { pino, type DestinationStream } from "pino"; | |
| import { Writable } from "stream"; | |
| import pinoPretty from "pino-pretty"; | |
| // Setup pino logger, using pino-pretty if available (should only be used for dev, not prod !) | |
| export function setupLogger() { | |
| // See later |
| /* | |
| useful references: | |
| https://github.com/erkobridee/lab-pdf-lib/blob/83ef7e53e61227cef4293a6294979b1e551a3603/src/helpers/random.js#L4 | |
| https://github.com/erkobridee/nx-todos/blob/1647f66518a6def9ddf7569ca7a2b6397337d09c/libs/shared/helpers/src/lib/values.ts#L25 | |
| https://github.com/erkobridee/gatsby-typescript-app-starter/blob/5a7bcfbbe6ff014ecb360da35a3e8255fe80bf9e/src/helpers/values.ts#L21 | |
| https://gist.github.com/rubinchyk/46d9868e2eb86d744abcb83b5b6d8d29 |
| import { useMouse } from '@uidotdev/usehooks'; | |
| import * as React from 'react'; | |
| interface Positions { | |
| /* Sub-menu height */ | |
| h: number; | |
| /* Mouse x */ | |
| mouseX: number; | |
| /* Mouse y */ | |
| mouseY: number; |
| /* | |
| from: | |
| Enums considered harmful | Matt Pocock | |
| https://www.youtube.com/watch?v=jjMbPt_H3RQ | |
| */ | |
| const LogLevel = { | |
| DEBUG: "DEBUG", | |
| INFO: "INFO", |
Arthur C. Clarke was a scientist, science writer and author of science fiction stories and novels. This quote of his reflects on the early beginnings of technology and offers us a way of linking up the two exhibitions that have been held this year at the CCCB: Black Light and Stanley Kubrick.
this quote it's also refered on [YouTube] Why Magic Systems don't feel Magical | Tale Foundry - 2023/05/31
| // Note: this gist is a part of this OSS project that I'm currently working on: https://github.com/steven-tey/dub | |
| export default async function getTitleFromUrl (url: string) { | |
| const controller = new AbortController(); | |
| const timeoutId = setTimeout(() => controller.abort(), 2000); // timeout if it takes longer than 2 seconds | |
| const title = await fetch(url, { signal: controller.signal }) | |
| .then((res) => { | |
| clearTimeout(timeoutId); | |
| return res.text(); | |
| }) |
"First we put it to flight, then we finish it"
"First do it. Then do it right. Then do it better!" - @addyosmani
-
Building a Second Brain: The Book - The step-by-step guide to building a Second Brain. Based on 10+ years of research & experiments with organizing our digital lives & improving our productivity.
-
Building a Second Brain: The Definitive Introductory Guide | Forte Labs - (2023/05/01) This is an introduction to Building a Second Brain, the proven method to organize your digital life and unlock your creative potential.