Skip to content

Instantly share code, notes, and snippets.

View erassynathingo's full-sized avatar
🏠
Working from home

Erastus Nathingo erassynathingo

🏠
Working from home
View GitHub Profile
export type Letters = 'a' | 'b' | 'c';
type RemoveC<TType> = TType extends 'c' ? never : TType;
type WithoutC = RemoveC<Letters>;
// Without C is not of type 'a' | 'b'
// We can return different mebers of the type or manipulate them. Returning never removes the element
// You can replace never with anything e.g. 'd' which means typeWithoutC will now be equal to 'a' | 'b' | 'd'
// This can be applied to enums too
@erassynathingo
erassynathingo / keybase.md
Created October 26, 2021 11:52
Keybase Proof

Keybase proof

I hereby claim:

  • I am erassynathingo on github.
  • I am erassynathingo (https://keybase.io/erassynathingo) on keybase.
  • I have a public key ASD4hlCCnZ5c1FyUeP41l4MqjsbmsZ58gTIxnBYf2mBGago

To claim this, I am signing this object:

rsync -avz --del ./build/ root@fractalworx.com:/var/www/html
rsync -avz --del "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" --progress ./build/ fractalworx.com:/var/www/html
rsync -avz --del \"ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null\" --progress ./build/ fractalworx.com:/var/www/html