This file contains 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
# alias `p` to whatever the repo's current package-manager is. | |
# handles up to 3-levels deep. | |
p() { | |
( | |
if [ -f pnpm-lock.yaml ] || [ -f ../pnpm-lock.yaml ] || [ -f ../../pnpm-lock.yaml ]; then | |
pnpm $@ | |
elif [ -f yarn.lock ] || [ -f ../yarn.lock ] || [ -f ../../yarn.lock ]; then | |
yarn $@ | |
elif [ -f package-lock.json ] || [ -f ../package-lock.json ] || [ -f ../../package-lock.json ]; then | |
npm $@ |
This file contains 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
# .github/ci.rb | |
require "bundler/inline" | |
gemfile do | |
source "https://rubygems.org" | |
gem "platform-api", "~> 3.3" | |
gem "activesupport", "~> 6.1", require: false | |
end | |
require "active_support" | |
require "active_support/core_ext" |
This file contains 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
Ruby 9 hrs 46 mins ██████▊░░░░░░░░░░░░░░ 32.4% | |
JavaScript 9 hrs 16 mins ██████▍░░░░░░░░░░░░░░ 30.8% | |
Other 5 hrs 10 mins ███▌░░░░░░░░░░░░░░░░░ 17.1% | |
TypeScript 3 hrs 33 mins ██▍░░░░░░░░░░░░░░░░░░ 11.8% | |
JSON 37 mins ▍░░░░░░░░░░░░░░░░░░░░ 2.0% |
This file contains 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
/* | |
* Utility functions for mass updates to Firebase's firestore collections | |
* Methods: iterate, update, delete, copy | |
*/ | |
/** | |
* @callback IterateCollectionCb | |
* @param {import('firebase-admin').firestore.DocumentSnapshot} doc | |
* @param {import('firebase-admin').firestore.WriteBatch} [batch] |