Skip to content

Instantly share code, notes, and snippets.

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

paul kayongo myrdstom

🏠
Working from home
View GitHub Profile
@myrdstom
myrdstom / git-revert-sha-commit
Created July 12, 2023 13:07 — forked from mgibowski/git-revert-sha-commit
[git] revert to a commit by sha hash
# found at:
# http://stackoverflow.com/questions/1895059/git-revert-to-a-commit-by-sha-hash
# reset the index to the desired tree
git reset --hard 56e05fced
# move the branch pointer back to the previous HEAD
git reset --soft HEAD@{1}
git commit -m "Revert to 56e05fced"
class Animal{
constructor(name){
this.name = name;
}
legs(){
return this.name + " has two legs"
}
useEffect(() => {
return () => {
(async () => {
await handleKeyPress();
})();
};
}, []);
const handleKeyPress = async () => {
@myrdstom
myrdstom / Chameleon challenge
Created July 3, 2021 17:20
Chameleon challenge
import React, { PureComponent } from "react";
class Dropdown extends PureComponent {
// Updated the name from `constuctor` to `constructor`
constructor(props) {
super(props);
this.state = {
isOpen: false
};
}
@myrdstom
myrdstom / gist:aac4562b8b9f4f425d7ff8dba53b53a1
Created June 29, 2021 10:46 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:
@myrdstom
myrdstom / nvmCommands.js
Created March 2, 2021 14:17 — forked from chranderson/nvmCommands.js
Useful NVM commands
// check version
node -v || node --version
// list installed versions of node (via nvm)
nvm ls
// install specific version of node
nvm install 6.9.2
// set default version of node