Before you can use the npm
command, you'll need to install [Node.js][].
You can install [Node.js][] directly or to manage multiple versions, try Volta!
name: Python Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main |
from functools import reduce | |
def summate(startingAt, endingWith, callback): | |
""" | |
Returns the sum of the result values of `callback` starting at `startingAt` and ending with `endingWith`. | |
Example: sigma(1, 6, lambda n: 3 * n) | |
See: https://replit.com/@jedmao/SuperSigma#main.py | |
""" | |
return sum([callback(x) for x in range(startingAt - 1, endingWith + 1)]) |
# TP = True Positive | |
# TN = True Negative | |
# FP = False Positive | |
# FN = False Negative | |
def precision(TP, FP): | |
return TP / (TP + FP) | |
def recall(TP, FN): | |
return TP / (TP + FN) |
class PrismaClient { | |
#used = false; | |
/** | |
* Indicates whether `useOnce` has already been called. | |
*/ | |
public get used() { | |
return this.#used; | |
} |
I hereby claim:
To claim this, I am signing this object:
import { readFile as _readFile } from 'fs'; | |
import * as ts from 'typescript'; | |
import { promisify } from 'util'; | |
const readFile = promisify(_readFile); | |
transform('input.ts'); | |
async function transform(filename: string) { | |
const sourceFile = ts.createSourceFile( |
Document = _ children:(Newline / Comment / Rule)* _ sections:Section* _ { | |
return { | |
type: 'EditorConfig', | |
version: '15.0.0', | |
children: children.concat(sections), | |
} | |
} | |
_ 'whitespace' = [ \t\n\r]* |
/** Essentials */ | |
export type Primitive = string | number | boolean | bigint | symbol | undefined | null; | |
/** Like Readonly but recursive */ | |
export type DeepReadonly<T> = T extends Primitive | |
? T | |
: T extends Function | |
? T | |
: T extends Date | |
? T |
// @ts-check | |
/** | |
* @typedef {{ items: Array<CartItem> }} Cart | |
* @typedef {{ | |
* sku: string, | |
* name: string, | |
* price: number, | |
* color?: Color, | |
* size?: Size, |