I hereby claim:
- I am icanhasjonas on github.
- I am icanhasjonas (https://keybase.io/icanhasjonas) on keybase.
- I have a public key whose fingerprint is 353F 2B54 41B3 0DA8 69E8 EBCD 4A32 C3CB AC9D CC54
To claim this, I am signing this object:
| interface Query { | |
| query(sql: string): Promise<any> | |
| } | |
| class QueryImplementation implements Query { | |
| query(sql: string) { | |
| return new Promise<string>(resolve => { | |
| setTimeout(() => resolve('Hello'), 2000) | |
| }) |
| type PropertyNames<T> = keyof T | |
| type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>> | |
| type Filtered<T, C> = { [K in keyof T]: T[K] extends C ? K : never }[keyof T] | |
| class ConfigurationPageContext<T> { | |
| addTextSetting<K extends PropertyNames<T>>( | |
| field: Extract<K, Filtered<T, string>>, | |
| title: string, | |
| defaultValue: string = null | |
| ): ConfigurationPageContext<Omit<T, K>> { |
| using System; | |
| using System.Buffers; | |
| using System.Collections.Concurrent; | |
| using System.Collections.Generic; | |
| using System.Globalization; | |
| using System.Linq; | |
| using System.Net; | |
| using System.Net.Http; | |
| using System.Threading; | |
| using System.Threading.Tasks; |
| public static class AwaitableCancellationTokenExtensions | |
| { | |
| public struct CancellationTokenAwaiter : ICriticalNotifyCompletion, INotifyCompletion | |
| { | |
| private readonly CancellationToken _cancellationToken; | |
| public CancellationTokenAwaiter(CancellationToken cancellationToken) | |
| { | |
| _cancellationToken = cancellationToken; | |
| } |
| mov ax, 0320h ; Load glitter pixels | |
| mov dx, 0080h ; 80 pixels wide screen glitter | |
| xor cx, cx ; Big fan of Xorn/marvel(c) | |
| mov bx, cx ; Make sure glitter is Baxed and Counxted | |
| int 13h ; Interest 13 |
I hereby claim:
To claim this, I am signing this object:
| interface TypeMethods { | |
| arguments(value: any): boolean; | |
| array(value: any): boolean; | |
| boolean(value: any): boolean; | |
| date(value: any): boolean; | |
| error(value: any): boolean; | |
| function(value: any): boolean; | |
| nan(value: any): boolean; | |
| null(value: any): boolean; | |
| number(value: any): boolean; |