Skip to content

Instantly share code, notes, and snippets.

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

Yves Shema yveshema

🏠
Working from home
View GitHub Profile

Set up your github account to use ssh

Generate ssh key

$ ssh-keygen -t rsa -b 4096 -C "Your_email_address"

This sets up your email address as the key's label for easy identification.

Register key with ssh-agent

$ eval "$(ssh-agent -s)"
class ContactForm extends React.Component {
handleSubmit = (e) => {
e.preventDefault();
const email = document.getElementById('email').value;
const message = document.getElementById('message').value;
axios({
method: "POST",
url: "/send",
data: {
email: email,
@yveshema
yveshema / Dockerfile
Last active January 10, 2020 21:13
A simple docker setup for a React application
FROM node:10.16-alpine
USER node
WORKDIR /home/node
COPY ./myapp /home/node/
COPY docker-entrypoint.sh /entrypoint.sh
@yveshema
yveshema / index.html
Created January 8, 2020 09:02
Pure CSS hamburger menu with fixed positioning
<ul class="menu">
<li><a href="#!"><i class="material-icons">menu</i></a>
<ul>
<li>Menu</li>
<li>item1</li>
<li>item2</li>
<li>item3</li>
</ul>
</li>