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 fs from 'node:fs'; | |
import path from 'node:path'; | |
import * as R from 'remeda'; | |
import type { ArrayValues } from 'type-fest'; | |
import { exhaustiveCheck } from 'shared/helpers/exhaustiveCheck'; | |
const INPUT_FILE = 'input.csv'; |
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
/** | |
* @fileoverview The default export should include type checking using `satisfy Meta` | |
* @author Sergey Kozlov | |
*/ | |
"use strict"; | |
module.exports = { | |
/** | |
* @type { import('eslint').Rule.RuleMetaData } | |
*/ |
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 { caseInsensitiveProxy } from '../caseInsensitiveProxy'; | |
describe('caseInsensitiveProxy', () => { | |
it('set and get', () => { | |
const proxy = caseInsensitiveProxy<Record<string, unknown>>(); | |
proxy.someValue = 1; | |
expect(proxy.someValue).toBe(1); | |
expect(proxy.SomeValUE).toBe(1); | |
expect(proxy.somevalue).toBe(1); |
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 * as React from 'react'; | |
export const MemoryUsage = () => { | |
const [percent, setPercent] = React.useState<string | number>('-'); | |
const color = (() => { | |
if (typeof percent === 'string') { | |
return 'white'; | |
} | |
if (percent < 50) { |
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 { RangesManager } from '../RangesManager'; | |
/* | |
About test cases: | |
There are three equivalence classes with respect to any range. | |
Using the range from 5 to 10 as an example (or [5; 10]) | |
- to the left of the range: [-∞; 4] | |
- the range itself: [5; 10] | |
- to the right of the range: [11; ∞] |
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
var browsers = [ | |
['Google Chrome', 57], | |
['Chrome Mobile', 57], | |
['Яндекс.Браузер', 18], | |
['Mobile Safari', 11], | |
['Firefox', 50], | |
['Opera', 44], | |
['Samsung Internet', 7], | |
['MSIE', 9999], | |
['Edge', 17], |
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
<!DOCTYPE html> | |
<html lang="ru"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Form demo</title> | |
</head> | |
<body> | |
<form class="form" method="POST"> |