Skip to content

Instantly share code, notes, and snippets.

View fjpedrosa's full-sized avatar

F.J. Pedrosa fjpedrosa

View GitHub Profile
@fjpedrosa
fjpedrosa / .env.example
Last active July 31, 2024 16:37
Deploy Docker image to DigitalOcean and run services
export IMAGE_NAME="your_image_name"
export USER="your_user"
export ADDRESS="your_address"
export KEY_FILE="your_key_file"
@fjpedrosa
fjpedrosa / blurhashDataURL.ts
Created June 16, 2024 08:59 — forked from gxvxc/blurhashDataURL.ts
Convert blurhash to a base64 DataURL string (no canvas or node-canvas)
import { decode } from "blurhash"
const cache: Record<string, string> = {}
export function blurHashToDataURL(hash: string | undefined): string | undefined {
if (!hash) return undefined
const cachedBlurDataURL = cache[hash]
if(cachedBlurDataURL) {
@fjpedrosa
fjpedrosa / History|-10234a1e|entries.json
Last active October 28, 2022 12:25
Visual Studio Code Settings Sync Gist
{"version":1,"resource":"file:///Users/javi/projects/frontend-portal-react/src/utils/helpers.js","entries":[{"id":"LA29.js","source":"Fix all ESLint auto-fixable problems","timestamp":1655907016664},{"id":"Sf7t.js","timestamp":1655927885109},{"id":"U6Mz.js","timestamp":1655927951063},{"id":"C1At.js","timestamp":1655927969013},{"id":"2ood.js","timestamp":1655927993963},{"id":"Z0lw.js","source":"Fix all ESLint auto-fixable problems","timestamp":1655927997728},{"id":"W4sH.js","timestamp":1657035718576},{"id":"957w.js","timestamp":1657135993497},{"id":"63ab.js","source":"Fix all ESLint auto-fixable problems","timestamp":1657136891477},{"id":"TQcL.js","timestamp":1657136899995},{"id":"6wRL.js","source":"Workspace Edit","timestamp":1657180713962},{"id":"5bXV.js","timestamp":1657193235152},{"id":"Jfve.js","source":"Fix all ESLint auto-fixable problems","timestamp":1657195227903},{"id":"j0me.js","timestamp":1657205650041},{"id":"Z9r4.js","source":"Fix all fixable ESLint issues","timestamp":1657918856240},{"id":"li3Z.
@fjpedrosa
fjpedrosa / History|-10772120|NWxv.json
Last active May 18, 2022 23:26
Visual Studio Code Settings Sync Gist
{
"extends": "stylelint-config-sass-guidelines",
"plugins": ["stylelint-scss"],
"rules": {
"dollar-variable-pattern": null,
"at-rule-no-unknown": null,
"scss/at-rule-no-unknown": true,
"indentation": 2,
"number-leading-zero": null,
"max-nesting-depth": 10,