flowchart LR
%% Configuration for better alignment
linkStyle default interpolate basis
FAB_MATS["<div style='padding:8px;min-width:140px;text-align:right;' class='node-container '><div class='node-title' style='text-align:center !important;font-size:0.9em;'>FAB_MATS</div><div class='node-details' style='text-align:right !important;'><div style='text-align:right !important;'><span class='supply-abundant'>ABUNDANT</span> · <span class='activity-restricted'>RESTRICTED</span></div><div style='text-align:right !important;'>1,170c · v:20</div><div style='text-align:right !important;'>X1-RX40-F49</div></div><div style='text-align:right !important;'>RX40</div></div>"]
class FAB_MATS activity-restricted
class FAB_MATS export-item
IRON["<div style='padding:8px;min-width:140px;text-align:right;' class='node-container '><div class='node-title' style='text-align:center !important;font-size:0.9em;'>IRON</div><div class='node-details' style='text-align:right !important;'><div style='text
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
SELECT DISTINCT Dependent.Name AS package_name, Dependent.Version AS pkg_version | |
FROM `bigquery-public-data.deps_dev_v1.DependentsLatest` | |
WHERE System = 'NPM' | |
AND Name = 'tape' | |
AND Version LIKE '4.%' -- resolved to tape 4.x | |
AND MinimumDepth = 1 -- direct dependents only | |
AND DependentIsHighestReleaseWithResolution; -- latest release of each dependent |
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
-- Largest single semver component seen for npm packages | |
WITH parsed AS ( | |
SELECT | |
Name, | |
Version, | |
SAFE_CAST(REGEXP_EXTRACT(Version, r'^(\d+)') AS INT64) AS major, | |
SAFE_CAST(REGEXP_EXTRACT(Version, r'^\d+\.(\d+)') AS INT64) AS minor, | |
SAFE_CAST(REGEXP_EXTRACT(Version, r'^\d+\.\d+\.(\d+)') AS INT64) AS patch | |
FROM `bigquery-public-data.deps_dev_v1.PackageVersionsLatest` | |
WHERE System = 'NPM' |
Operator | Meaning |
---|---|
= |
Defines a rule. Example: rule-name = value |
/ |
Logical OR (choice). Example: A / B means "A or B". |
* |
Zero or more occurrences. Example: *DIGIT means "0 or more DIGITs". |
1* |
One or more occurrences. Example: 1*DIGIT means "1 or more DIGITs". |
[ ] |
Optional (zero or one occurrence). Example: [DIGIT] means "optional DIGIT". |
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
#!/bin/sh | |
# Check if gh CLI is installed | |
if ! command -v gh >/dev/null 2>&1; then | |
echo "Error: GitHub CLI (gh) is not installed. Please install it to continue." >&2 | |
exit 1 | |
fi | |
# Check if a repository identifier was provided | |
if [ -z "$1" ]; then |
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
#!/bin/bash | |
# Exit on error, uninitialized variable use, and catch errors in pipelines | |
set -euo pipefail | |
# set -x | |
# Initialize the DEBUG flag | |
DEBUG=false | |
# Process command-line arguments |
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
{ | |
"jshttp": [ | |
"accepts", | |
"content-disposition", | |
"content-type", | |
"cookie", | |
"etag", | |
"fresh", | |
"http-errors", | |
"methods", |
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
[alias] | |
root = rev-parse --show-toplevel | |
pr = "!f() { git fetch -fu ${2:-upstream} refs/pull/$1/head:pr/$1 && git checkout pr/$1; }; f" | |
conflicts = diff --name-only --diff-filter=U | |
fix = "!f() { ${EDITOR} `git conflicts`; }; f" |
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
/** | |
* Reads the first 8 bytes (magic bytes) from the provided file. | |
* | |
* @param {File} file - The file from which the magic bytes are to be read. | |
* @returns {Promise<Uint8Array>} A promise that resolves to a `Uint8Array` containing the first 8 bytes of the file. | |
* @throws {Error} Throws an error if the file cannot be read or if there's another reading issue. | |
* | |
* @example | |
* const file = new File(["content"], "filename.txt"); | |
* sniffMagicBytes(file).then(bytes => { |
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
#!/bin/sh | |
# Called by "git commit" with no arguments. The hook should | |
# exit with non-zero status after issuing an appropriate message if | |
# it wants to abort the commit. | |
# | |
# Will skip linting if the commit is a merge commit | |
# to avoid introducing formatting diffs on already committed code | |
PATH=$PATH:/usr/local/bin:/usr/local/sbin | |
echo -------------------------------------------- |
NewerOlder