Skip to content

Instantly share code, notes, and snippets.

View rajsite's full-sized avatar
🐣
ʕ•ᴥ•ʔ

Milan Raj rajsite

🐣
ʕ•ᴥ•ʔ
View GitHub Profile
@rajsite
rajsite / confetti.js
Created January 17, 2023 20:43
Confetti effect bookmarklet to use in Lucid (or any page)
// Create a new bookmark and use the following as the url for a confetti efect:
javascript:(function()%7Bvar a %3D document.createElement('script')%3B%0Aa.src %3D 'https%3A%2F%2Fcdn.jsdelivr.net%2Fnpm%2Fcanvas-confetti%401.5.1%2Fdist%2Fconfetti.browser.min.js'%3B%0Aa.onload %3D () %3D> confetti(%7BparticleCount%3A100%2Cspread%3A70%2C origin%3A %7B y%3A 0.6 %7D%7D)%0Adocument.body.append(a)%7D)()%3B
@rajsite
rajsite / beachball.config.js
Last active December 9, 2021 20:07
Beachball postbump hook to update a npm 7 monorepo package-lock.json during version bumps
const path = require('path');
const fs = require('fs');
const os = require('os');
// Workaround for the following issues:
// Beachball issue: https://github.com/microsoft/beachball/issues/525
// NPM issue 1: https://github.com/npm/cli/issues/3756
// NPM issue 2: https://github.com/npm/cli/issues/3757
/**