Many of the more "advanced" typescript features can be used for creating "value-derived" types.
At its simplest form:
let vehicle = { name: "Van", wheels: 4 }
#! node | |
// Simple node.js based PHP Version Manager | |
// Tested with v16.17.1 | |
let process = require("process"); | |
let [command = "help", version = ""] = process.argv.slice(2); | |
let fs = require("fs"); | |
let { execSync } = require("child_process"); | |
if (command === "help") { |
/$USER_wrdp1.sql | |
/$USER_wpdb.sql | |
/home/$USER/mail/dovecot-uidlist | |
/var/spool/exim/input/i/1lE8Ii-0006Gf-LV-D | |
/var/log/cpanel-install.log | |
/var/log/exim_mainlog | |
/var/log/mysqld.log | |
/var/log/cron | |
/var/log/maillog | |
/var/log/exim_mainlog-20210221.gz |
Dear BOSS, | |
Please accept this letter as formal notification that I am resigning from my position as JOB TITLE with COMPANY. My last day will be DATE OF LAST DAY. | |
Thank you so much for the opportunity to work in this position for the past DURATION. I’ve greatly enjoyed and appreciated the opportunities I’ve had to WTF DID YOU DO, and I’ve learned many things, all of which I will take with me throughout my career. | |
During my last two weeks, I’ll do everything possible to wrap up my duties and train other team members. Please let me know if there’s anything else I can do to aid during the transition. | |
I wish COMPANY continued success, and I hope to stay in touch in the future. | |
Sincerely, |
invoices/123
?
in a URL like /assignments?showGrades=1
.#
portion of the URL. This is not available to servers in request.url
so its client only. By default it means which part of the page the user should be scrolled to, but developers use it for various things.function MaybeN(value) { | |
if (value.__type__ === "maybe") { | |
return value; | |
} | |
const isEmpty = () => value === undefined || value === null; | |
let internalMaybe = {}; | |
internalMaybe = { |
/** | |
* Copyright 2018 Google Inc. All rights reserved. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
caution do not use package.json
for the folder name if you want to clone this project to your machine - it will break yarn
(An unexpected error occurred: "EISDIR: illegal operation on a directory, read".
).
Original version of this document copied from yarnpkg.
See also npm documentation, std-pkg, clean-publish, package-json-validator, cosmiconfig, rc (as an opponent approach to cosmiconfig).
const puppetteer = require("puppeteer"); | |
/** | |
* @param {string} pageUrl The URL that you want to gather coverage data for | |
*/ | |
const unusedCode = async pageUrl => { | |
const browser = await puppetteer.launch(); | |
console.log("browser launched"); | |
const page = await browser.newPage(); | |
console.log("new page created"); |