Skip to content

Instantly share code, notes, and snippets.

import { Formik } from "formik";
import React from "react";
import * as yup from "yup";
type SignInForm = {
email: string;
password: string;
};
type SignInProps = {
dotspacemacs-configuration-layers
'((html :variables
web-fmt-tool 'prettier
css-indent-offset 2
web-mode-markup-indent-offset 2
web-mode-css-indent-offset 2
web-mode-code-indent-offset 2
web-mode-attr-indent-offset 2)
;; ----------------------------------------------------------------
;; Example of useful layers you may want to use right away.
@i-oliva
i-oliva / path
Created November 1, 2018 23:28
env spacemacs
PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Emacs.app/Contents/MacOS/bin-x86_64-10_10:/Applications/Emacs.app/Contents/MacOS/libexec-x86_64-10_10
PATH=:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Emacs.app/Contents/MacOS/bin-x86_64-10_10:/Applications/Emacs.app/Contents/MacOS/libexec-x86_64-10_10
function registerValidSW(swUrl) {
navigator.serviceWorker
.register(swUrl)
.then((registration) => {
registration.onupdatefound = () => {
const installingWorker = registration.installing;
installingWorker.onstatechange = () => {
if (installingWorker.state === 'installed') {
if (navigator.serviceWorker.controller) {
// At this point, the old content will have been purged and
@i-oliva
i-oliva / spacemacs.env
Created October 30, 2018 05:34
spacemacs.env
# Environment variables:
# ----------------------
Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.Hd3oPtBwFt/Render
COMMAND_MODE=unix2003
DISPLAY=Ismaels-MacBook-Air.local
HOME=/Users/ismaeloliva
LANG=en_GB.UTF-8
LOGNAME=ismaeloliva
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Emacs.app/Contents/MacOS/bin-x86_64-10_10:/Applications/Emacs.app/Contents/MacOS/libexec-x86_64-10_10
PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Emacs.app/Contents/MacOS/bin-x86_64-10_10:/Applications/Emacs.app/Contents/MacOS/libexec-x86_64-10_10
Job Title - Back End Engineer
Rate - 300 - 600
Location - London, Midlands, Manchester.
Start Date - ASAP
REMOTE IS AVAILABLE
;; -*- mode: emacs-lisp; lexical-binding: t -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Layer configuration:
This function should only modify configuration layer settings."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
;; `+distribution'. For now available distributions are `spacemacs-base'
(lsp :variables lsp-ui-mode 'nil)
(javascript :variables
javascript-backend 'lsp
lsp-ui-mode 'nil)
(react :variables lsp-ui-mode 'nil)
const styles = theme => ({
root: {
flexGrow: 1
},
paper: {
height: 140,
width: 100
},
control: {
padding: theme.spacing.unit * 2
const reducer = (state, action) => {
const { results } = state;
switch (action.type) {
case 'DELETE_ELEMENT':
return {
...state,
results: results.filter(result => {
return result.email !== action.payload;
})
};