Skip to content

Instantly share code, notes, and snippets.

View DreMukare's full-sized avatar
😃
Eager to learn

Andrew Mukare DreMukare

😃
Eager to learn
View GitHub Profile
@DreMukare
DreMukare / typescript-crash.ts
Created October 6, 2022 06:43 — forked from bradtraversy/typescript-crash.ts
Basic intro to TypeScript (From YouTube Crash Course)
// Basic Types
let id: number = 5
let company: string = 'Traversy Media'
let isPublished: boolean = true
let x: any = 'Hello'
let ids: number[] = [1, 2, 3, 4, 5]
let arr: any[] = [1, true, 'Hello']
// Tuple
@DreMukare
DreMukare / dropdown.jsx
Last active March 4, 2022 16:30
Chameleon React.js Developer - Technical exercise
import React, {PureComponent} from 'react';
/**
* 0. I am great. Loving this technical assessment.
* Though someone posted some solutions in the gist comments. So maybe consider posting a new one?
*/
/**
*4. If we wanted to sync the dropdown selection to a server with this hypothetial "syncing library"
`app.sync('PATCH', 'users/'+app.USER.id, { dropdown_1_state: {true,false} })` where would this be included? Should
@DreMukare
DreMukare / github-setup.sh
Created November 18, 2021 15:36
SSH script to connect your linux machine to your github account
#!/usr/bin/env bash
# switch to ssh directory in root
cd ~/.ssh
# generate ssh key named github if it does not exist
if [ ! -f ./github ]; then
echo "please name your file github"
ssh-keygen -t rsa
fi