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
| function fac(n: number) { | |
| return match (n) { | |
| 1 | 0 => 1, | |
| _ => n * fac(n-1), | |
| } | |
| } |
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
Show hidden characters
| { | |
| "compilerOptions": { | |
| "target": "ES6", | |
| "module": "CommonJS", | |
| "outDir": "./lib", | |
| "rootDir": "./src", | |
| "composite": true, | |
| "paths": { | |
| "package-one": ["../package-one"] | |
| }, |
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
| { | |
| "references": [ | |
| { "path": "./package-one" }, | |
| { "path": "./package-two" } | |
| ], | |
| "files": [] | |
| } |
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": "myapp", | |
| "private": true, | |
| "version": "0.0.1", | |
| "scripts": { | |
| "watch:compile-tests": "tsc -w", | |
| "watch:tests": "ava --watch", | |
| "test": "ava", | |
| "lint": "tsc --noEmit", | |
| "prepare": "npm run lint && webpack --mode production", |
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": "myapp", | |
| "private": true, | |
| "version": "0.0.1", | |
| "scripts": { | |
| "watch:compile-tests": "tsc -w", | |
| "watch:tests": "ava --watch", | |
| "test": "ava", | |
| "lint": "tsc --noEmit", | |
| "prepare": "npm run lint && webpack --mode production", |
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
| ; New version based on author fwompner gmail com in the Vim wiki | |
| ; https://vim.fandom.com/wiki/Map_caps_lock_to_escape_in_Windows#AutoHotkey | |
| #Requires AutoHotkey v2.0 | |
| #SingleInstance | |
| SetCapsLockState "AlwaysOff" | |
| *Capslock:: | |
| { |
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
| remove Lock = Caps_Lock | |
| remove Control = Control_L | |
| keysym Control_L = Caps_Lock | |
| keysym Caps_Lock = Control_L | |
| add Lock = Caps_Lock | |
| add Control = Control_L |
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
| const path = require('path'); | |
| function toArray(value) { | |
| return Array.isArray(value) ? value : [ value ]; | |
| } | |
| const babelLoaderModulePath = require.resolve('babel-loader'); | |
| const emotionBabelPluginModulePath = require.resolve('@emotion/babel-plugin'); | |
| const babelPresetReactModulePath = require.resolve('@babel/preset-react'); |
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
| #!/usr/bin/env python3 | |
| from tarfile import TarFile | |
| from typing import Callable, TypeVar, cast, Any | |
| import math | |
| import sys, os | |
| import argparse | |
| from urllib.parse import urlparse, urlunparse, ParseResult | |
| import errno |
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
| #!/usr/bin/env python3 | |
| out = '' | |
| # Edit this variable | |
| count = 25 | |
| for i in range(0, count): | |
| out += f"_T{i} = TypeVar('_T{i}')\n" |
OlderNewer