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
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Raleway:wght@800&display=swap"); | |
:root { | |
--font-family: "Open Sans", sans-serif; | |
--border-radius: 0; | |
--form-element-spacing-vertical: 1rem; | |
--form-element-spacing-horizontal: 1.25rem; | |
} | |
body { |
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
import { decrypt } from 'ethereum-cryptography/aes' | |
import { keccak256 } from 'ethereum-cryptography/keccak' | |
import { scrypt } from 'ethereum-cryptography/scrypt' | |
import { getPublicKey } from 'ethereum-cryptography/secp256k1' | |
import { | |
bytesToHex, | |
concatBytes, | |
hexToBytes, | |
utf8ToBytes, | |
} from 'ethereum-cryptography/utils' |
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
import Image from 'next/image'; | |
import Zoom from 'react-medium-image-zoom' | |
const MyImage = (props) => { | |
return ( | |
<Zoom> | |
<Image | |
src={props.src} | |
alt={props.alt} | |
width={props.width} |
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 Parent = () => { | |
const refs = React.useRef([]) | |
return React.Children.map(this.props.children, child => { | |
return React.cloneElement(child, { | |
ref: ref => refs.current.push(ref) | |
}) | |
}) | |
} |
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
if type __git_complete &> /dev/null; then | |
_branch () { | |
delete="${words[1]}" | |
if [ "$delete" == "-d" ] || [ "$delete" == "-D" ]; then | |
_git_branch | |
else | |
_git_checkout | |
fi | |
} |
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
[user] | |
name = "Name" | |
email = "Email" | |
[core] | |
pager = less -r | |
editor = /usr/bin/vim | |
[alias] | |
a = add . | |
b = branch | |
bb = branch -vv |
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
// this | |
const mapDispatchToProps = dispatch => ({ | |
showHoverCart: () => dispatch(hoverCartActions.showHoverCart()), | |
hideHoverCart: () => dispatch(hoverCartActions.hideHoverCart()), | |
changeTab: index => dispatch(productActions.changeTab({ index })), | |
zoomIn: isZoomedIn => dispatch(productActions.zoomIn({ isZoomedIn })), | |
toggleNav: navState => dispatch(navActions.toggleNav({ navState })), | |
addToRecentlyViewed: product => | |
dispatch(recentlyViewedActions.addToRecentlyViewed(product)), | |
}) |
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
import hoistNonReactStatics from 'hoist-non-react-statics' | |
const withSomething = Component => { | |
const C = props => { | |
const { } = props // work with props if needed | |
return ( | |
// render logic | |
<Component {...props} /> | |
) | |
} |
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/sh | |
NEW_PROJECT="/Users/Felicio/Documents/Developer/Resources/New\ Project" | |
TARGET_DIR="$1" | |
if [[ "$TARGET_DIR" == 0 ]]; then | |
printf "%s\n" "Specify targed directory." | |
exit 1 | |
fi |