GIT_SSH_COMMAND='ssh -i PATH/TO/KEY/FILE -o IdentitiesOnly=yes' git clone [email protected]:OWNER/REPOSITORY
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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(); | |
}) |
in the past I used to use the Balsamiq to do visual thinking and UI/UX planning
Content CMS
Content processor
javascript key/value database that store the values in multiple directores where the key is used to calcula the partition dire / file name
-
[GitHub] c0d3r111/json.db.js - A flat key value json store
-
[GitHub] c0d3r111/kv.db - A simple node.js embedded key value database
useful tools to generate fake or do mock data
-
Random users - Generate random user profile pictures and names to use them as placeholders for your prototypes and design projects
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const LOOKUP = | |
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; | |
export function encodeBase64(buffer) { | |
const view = new Uint8Array(buffer); | |
let out = []; | |
for (let i = 0; i < view.length; i += 3) { | |
const [b1, b2 = 0x10000, b3 = 0x10000] = view.subarray(i, i + 3); | |
out.push( | |
b1 >> 2, |
NewerOlder