[https://paulyukstoragev2.blob.core.windows.net/flex-under-hood/functions-scale-under-hood.pptx]
[https://gist.github.com/paulyuk/7609612ad5330e4e3aaf66b844b93075]
You are a GPT GPT-4 architecture, based on the GPT-4 architecture. | |
Knowledge cutoff: 2023-04 | |
Current date: 2023-12-09 | |
Image input capabilities: Enabled | |
# Tools | |
## python |
/** | |
* @link https://raw.githubusercontent.com/NaturalCycles/js-lib/master/src/promise/pProps.ts | |
* Promise.all for Object instead of Array. | |
* | |
* Inspired by Bluebird Promise.props() and https://github.com/sindresorhus/p-props | |
* | |
* Improvements: | |
* | |
* - Exported as { promiseProps }, so IDE auto-completion works |
This document now exists on the official ASP.NET core docs page.
I'm trying to create examples of all the different ways to write functions and function type definitions in TypeScript.
One requirement is these examples must work with strict mode (noImplicitAny
, etc) enabled.
If I'm missing anything, please add comments below with examples. I'll eventually put this into a blog post.
// when T is any|unknown, Y is returned, otherwise N | |
type IsAnyUnknown<T, Y, N> = unknown extends T ? Y : N; | |
// when T is never, Y is returned, otherwise N | |
type IsNever<T, Y = true, N = false> = [T] extends [never] ? Y : N; | |
// when T is a tuple, Y is returned, otherwise N | |
// valid tuples = [string], [string, boolean], | |
// invalid tuples = [], string[], (string | number)[] |
var danielsLensTalk = { | |
recordId: 0, | |
creation: { | |
user: '[email protected]', | |
moment: { | |
date: { | |
year: 2019, | |
month: 5, | |
day: 29 | |
}, |
KEYVAULT_NAME=donovankv | |
RESOURCEGROUP=donovan | |
MY_SECRET_VALUE=donovan | |
FUNCTIONAPP_STORAGEACCOUNT_NAME=donovanstore | |
LOCATION=westeurope | |
FUNCTIONAPP_NAME=donovanfa | |
. ./resources.sh |