Given this JSON + ICU Message:
{
"uploaded": {
"message": "Your <photoLink>photo</photoLink> has been uploaded.",
"backend": "tsx"
}
}
// Expand all collapsed commits | |
$$('.js-timeline-progressive-disclosure-button').forEach(el => el.click()); | |
// Expand all collapsed conversations | |
$$('button') | |
.filter(el => el.innerText === 'Load more…') | |
.forEach(el => el.click()); |
Given this JSON + ICU Message:
{
"uploaded": {
"message": "Your <photoLink>photo</photoLink> has been uploaded.",
"backend": "tsx"
}
}
const { getTypeServices } = require('eslint-etc'); | |
const { | |
ESLintUtils, | |
TSESTree, | |
TSESLint, | |
} = require('@typescript-eslint/experimental-utils'); | |
const ruleCreator = ESLintUtils.RuleCreator( | |
(_name) => | |
// This should be the URL of the docs for this rule, but since this is a custom/local rule, we |
#!/bin/bash | |
# Exit immediately if a command exits with a non-zero status, amongst other improvements | |
# https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/ | |
set -eux | |
# | |
# Example usage: | |
# ./prettier-diff.sh --no-index my-minified-file-before.js my-minified-file-after.js | |
# |
// @ts-check | |
const treeify = require('treeify'); | |
/** | |
* @param {import('webpack').StatsCompilation} stats | |
* @param {string | number} id | |
*/ | |
const getModuleById = (stats, id) => stats.modules.find((module) => module.id === id); |
return (0, a.jsxs)( | |
ae.im, | |
{ | |
id: s, | |
style: { marginLeft: -ve }, | |
popoverProps: c, | |
children: [ | |
(0, a.jsx)( | |
ae.xz, | |
{ showDropdownSymbol: !0, className: (0, ne.Bt)({}), children: t(d) }, |
class FunctifiedAsync { | |
constructor(iterable) { | |
this.iterable = iterable; | |
} | |
async *[Symbol.asyncIterator]() { | |
for await (const value of this.iterable) { | |
yield value; | |
} | |
} |
import { pipe } from 'fp-ts/function'; | |
import * as NonEmptyArray from 'fp-ts/NonEmptyArray'; | |
import * as O from 'fp-ts/Option'; | |
const runMain = () => { | |
require('./main'); | |
}; | |
const createTimeoutPromise = (timeout: number): Promise<void> => | |
new Promise<void>((resolve) => |
#compdef git-merge-pr | |
_git-merge-pr () { | |
# Multiple lines = -l | |
# compadd -l -d "('foo:a b c' 'bar:d e f')" foo bar | |
# lines=('foo:a b c' 'bar:d e f') | |
# compadd -l -d lines foo bar | |
# lines=('foo:a b c' 'bar:d e f') |