This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# bash <(wget -nv -O - "https://gist.githubusercontent.com/n8io/4b186015bb0be839c03bd46190081319/raw") # args... | |
set -e | |
touch ~/.hushlogin | |
touch ~/.zshrc | |
# Install Brew | |
if ! [ -x "$(command -v brew)" ]; then | |
echo "⏳ Installing Brew..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"meta": { "theme": "elegant" }, | |
"basics": { | |
"name": "Nate Clark", | |
"label": "Full-stack Jedi", | |
"picture": "http://www.gravatar.com/avatar/5e6be4ee4a6556cea4663b3f4f727b38.jpg?s=128&r=g", | |
"email": "n8@n8io.com", | |
"phone": "", | |
"website": "https://dev.to/n8io", | |
"summary": "A full-stack engineer developer/mentor/blogger with 15+ years experience building scalable web applications and a passion for learning.", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Guard = { | |
EMAIL_BAD_FORMAT: () => true, | |
PASSWORD_BAD_FORMAT: () => true, | |
EMPTY: () => true, | |
} | |
const fetchMachine = Machine({ | |
id: 'login', | |
initial: 'init', | |
states: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const State = { | |
START: 'START', | |
EMAIL_INPUT_FOCUS: 'EMAIL_INPUT_FOCUS', | |
EMAIL_INPUT_INVALID: 'EMAIL_INPUT_INVALID', | |
EMAIL_INPUT_VALID: 'EMAIL_INPUT_VALID', | |
FORGOT_PASSWORD_LINK_FOCUS: 'FORGOT_PASSWORD_LINK_FOCUS', | |
FORGOT_PASSWORD_LINK_REDIRECT: 'FORGOT_PASSWORD_LINK_REDIRECT', | |
PASSWORD_INPUT_FOCUS: 'PASSWORD_INPUT_FOCUS', | |
PASSWORD_INPUT_INVALID: 'PASSWORD_INPUT_INVALID', | |
PASSWORD_INPUT_VALID: 'PASSWORD_INPUT_VALID', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const State = { | |
START: 'START', | |
EMAIL_INPUT_FOCUS: 'EMAIL_INPUT_FOCUS', | |
EMAIL_INPUT_INVALID: 'EMAIL_INPUT_INVALID', | |
EMAIL_INPUT_VALID: 'EMAIL_INPUT_VALID', | |
FORGOT_PASSWORD_LINK_FOCUS: 'FORGOT_PASSWORD_LINK_FOCUS', | |
FORGOT_PASSWORD_LINK_REDIRECT: 'FORGOT_PASSWORD_LINK_REDIRECT', | |
PASSWORD_INPUT_FOCUS: 'PASSWORD_INPUT_FOCUS', | |
PASSWORD_INPUT_INVALID: 'PASSWORD_INPUT_INVALID', | |
PASSWORD_INPUT_VALID: 'PASSWORD_INPUT_VALID', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const State = { | |
GREEN: "GO", | |
OFFLINE: "OFFLINE", | |
RED: "STOP", | |
UNKNOWN: "UNKNOWN", | |
YELLOW: "YELLOW", | |
}; | |
const Event = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
... | |
"dev:build": "nodemon . --exec npm run build", | |
"dev:start": "nodemon ./build?? --exec node .", | |
"start": "npm-run-all dev:*" | |
... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Component": { | |
"prefix": "component", | |
"body": [ | |
"import{any,array,arrayOf,bool,element,func,instanceOf,node,number,object,oneOf,oneOfType,required,shape,string,}from'prop-types';", | |
"import React from 'react';", | |
"", | |
"${4:import styles from './styles.module.scss';}", | |
"", | |
"const ${1:Component} = ({ ${2:onClick} }) => (", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const setEmojiCopy = () => { | |
[ | |
...document | |
.querySelectorAll('.emoji-icon.gitmoji') | |
] | |
.forEach(el => | |
el.setAttribute('data-clipboard-text', el.innerText) | |
); | |
}; |
NewerOlder