export user=NameOrOrgName
export repo=RepoName
gh api repos/$user/$repo/actions/runs --paginate -q '.workflow_runs[] | "\(.id)"' | xargs -n1 -I % gh api repos/$user/$repo/actions/runs/% -X DELETE
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
#!/usr/bin/expect | |
set USERNAME "<user>" | |
set PASSWORD [lindex $argv 0] | |
eval spawn /opt/cisco/anyconnect/bin/vpn connect vpn.mysite.com | |
expect "Connect Anyway" { send "y\r" } | |
expect "import the certificate" { send "n\r" } |
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
#!/bin/bash | |
if [[ -z "$NGROK_TOKEN" ]]; then | |
echo "Please set 'NGROK_TOKEN'" | |
exit 2 | |
fi | |
if [[ -z "$USER_PASS" ]]; then | |
echo "Please set 'USER_PASS' for user: $USER" |
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
declare module 'react-native-branch' { | |
// https://github.com/BranchMetrics/react-native-branch-deep-linking-attribution#content-schema | |
export type ContentSchema = | |
| 'COMMERCE_AUCTION' | |
| 'COMMERCE_BUSINESS' | |
| 'COMMERCE_OTHER' | |
| 'COMMERCE_PRODUCT' | |
| 'COMMERCE_RESTAURANT' | |
| 'COMMERCE_SERVICE' | |
| 'COMMERCE_TRAVEL_FLIGHT' |
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
/// <reference types="react" /> | |
declare namespace FBT { | |
type $Values<T> = T[keyof T]; | |
// https://github.com/facebookincubator/fbt/blob/e9c591f451dbfc91852e316869ae39ad41848c55/runtime/nonfb/GenderConst.js#L9-L23 | |
interface GenderConst { | |
NOT_A_PERSON: 0; | |
FEMALE_SINGULAR: 1; | |
MALE_SINGULAR: 2; |
In file node_modules/@babel/plugin-transform-typescript/lib/index.js
For a function isImportTypeOnly
add code:
function isImportTypeOnly({
binding,
programPath,
jsxPragma
}) {
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
#!/bin/bash | |
BIN=./node_modules/babel-plugin-fbt/bin | |
TMP_ROOT=./.i18n-cache | |
SRC_ROOT=./src | |
SRC_MANIFEST=${TMP_ROOT}/src-manifest.json | |
ENUM_MANIFEST=${TMP_ROOT}/enum-manifest.json | |
SOURCE_STRINGS=${TMP_ROOT}/source-strings.json |
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
const axios = require('axios'); | |
const a= axios.create() | |
a.interceptors.request.use( | |
(v) => (console.log('request 1 start'),v), | |
(v) => (console.log('request 1 end '),v) | |
) |
Module | Definition | Download |
---|---|---|
@nx-js/observer-util_v4.x.x | v0.104.x-: ❌; v0.25.x-v0.103.x: ❌ | |
@turf/distance_v4.x.x | v0.25.x-v0.103.x: ❌ | |
alasql_v0.3.x | v0.25.x-v0.103.x: ❌ |
These examples for:
- [email protected]
[email protected]
and above
flow-typed install # for initial run
NewerOlder