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
aaron-bond.better-comments | |
AbhijoyBasak.nestjs-files | |
atomiks.moonlight | |
bradlc.vscode-tailwindcss | |
BriteSnow.vscode-toggle-quotes | |
Cardinal90.multi-cursor-case-preserve | |
cipchk.cssrem | |
DavidAnson.vscode-markdownlint | |
devine-davies.make-hidden | |
eamodio.gitlens |
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
git fsck --unreachable | grep commit | cut -d" " -f3 | xargs git log --merges --no-walk --grep=WIP | |
// WIP is for unnamed stashes, if you named your stash then you can find it with grep |
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
// Usage example: | |
// node updateTranslations.js COMMON are_you_sure "Are you sure?" az,en,ru | |
// or | |
// node updateTranslations.js COMMON are_you_sure "Are you sure?" // this will update all three languages. it's the same as above | |
const fs = require("fs"); | |
const path = require("path"); | |
// Get command-line arguments | |
const args = process.argv.slice(2); |
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
if (pm.response.code !== 200) { | |
return; | |
} | |
const response = pm.response.json(), | |
accessToken = response.data.token; | |
// Storing the access token in the environment to be used in other endpoints | |
pm.collectionVariables.set('accessToken', accessToken); |
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
name: Node.js CI | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [10.x, 12.x, 14.x, 15.x] |
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
import type { Middleware } from 'redux' | |
import { logger } from 'redux-logger' | |
const customLogger: Middleware = (api) => (next) => (action) => { | |
if (window.__REDUX_LOGGER__) return logger(api)(next)(action) | |
return next(action) | |
} | |
export default customLogger |
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
name: Node Continuous Integration | |
on: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
test_pull_request: | |
runs-on: ubuntu-latest |
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
function syntaxHighlight(json) { | |
if (typeof json != 'string') { | |
json = JSON.stringify(json, undefined, 2); | |
} | |
json = json.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>'); | |
return json.replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g, function (match) { | |
let cls = 'number'; | |
if (/^"/.test(match)) { | |
if (/:$/.test(match)) { | |
cls = 'key'; |
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
import type { KeyboardEvent } from 'react' | |
import { useCallback, useEffect, useRef, useState } from 'react' | |
import type { FieldError, Path, UseFormClearErrors, UseFormSetValue } from 'react-hook-form' | |
import OutsideClickHandler from 'react-outside-click-handler' | |
import styled from 'styled-components' | |
import InputError from '@/components/shared/InputError' | |
type SelectOption = { | |
value: string |
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
type Without<T, U> = { [P in Exclude<keyof T, keyof U>]?: never } | |
export type XOR<T, U> = T | U extends object ? (Without<T, U> & U) | (Without<U, T> & T) : T | U |
NewerOlder