Tutorial and tips for GitHub Actions workflows
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
let layer = figma.currentPage.selection[0]; | |
let vectorPaths = layer.vectorPaths.map(item => { | |
return {windingRule: 'NONZERO', data: item.data} | |
}) | |
layer.vectorPaths = vectorPaths | |
layer.exportAsync({ | |
format: 'SVG' | |
}).then(uint8Array => { |
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
import { GCS_BUCKET_NAME_MEDIA } from '../config/storage'; | |
import { MediaGenerateThumbsOnWrite } from './media-thumbs.function'; | |
import { ObjectMetadata } from 'firebase-functions/lib/providers/storage'; | |
import { ObjectWritableMock } from 'stream-mock'; | |
import { DownloadResponse } from '@google-cloud/storage'; | |
// tslint:disable-next-line | |
const { Storage } = require('@google-cloud/storage'); | |
jest.mock('@google-cloud/storage'); |
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
# prerequisites: `httpie`, `jq`, GNU's `parallel`. e.g. brew install <package> | |
# there is max 100 page length n pages where n is 100 length page. Execute one one by one (there is no way you'll get more than 100 times parallelization) | |
# in `.values[].links.clone[1].href` `1` is for SSH, where `0` would be for HTTPS. | |
http https://<user>:<pass>@api.bitbucket.org/2.0/repositories/<account_name> pagelen==100 page==<page_num> | jq -r '.values[].links.clone[1].href' | parallel git clone | |
# Voila it takes approx 1-2 minutes to clone a 100 repos. |
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
name: Test | |
on: | |
push: | |
branches: | |
- main | |
- features/** | |
- dependabot/** | |
pull_request: | |
branches: |
The package that linked you here is now pure ESM. It cannot be require()
'd from CommonJS.
This means you have the following choices:
- Use ESM yourself. (preferred)
Useimport foo from 'foo'
instead ofconst foo = require('foo')
to import the package. You also need to put"type": "module"
in your package.json and more. Follow the below guide. - If the package is used in an async context, you could use
await import(…)
from CommonJS instead ofrequire(…)
. - Stay on the existing version of the package until you can move to ESM.
OlderNewer