I hereby claim:
- I am somtougeh on github.
- I am somtougeh (https://keybase.io/somtougeh) on keybase.
- I have a public key ASADTJ_7m0pOOrBLquY8OH6qAhPTkXo1-6MHMHw_ydp8ggo
To claim this, I am signing this object:
import { useCallback, useEffect, useRef, useState } from "react"; | |
interface UseUndoHook<T> { | |
value: T; | |
onChange: (newValue: T) => void; | |
undo: () => void; | |
redo: () => void; | |
clear: () => void; | |
canUndo: boolean; | |
canRedo: boolean; |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Numeric input</title> | |
</head> | |
<body> | |
<main> |
I hereby claim:
To claim this, I am signing this object:
import React, { useRef, useEffect } from "react"; | |
import InputMask from "react-input-mask"; | |
import { Formik, Form } from "formik"; | |
import valid from "card-validator"; | |
import visa from "assets/visa.svg"; | |
import masterCard from "assets/mastercard.svg"; | |
const initialValues = { | |
cardNo: "", | |
month: "", |
import * as React from 'react'; | |
import styled from 'styled-components'; | |
import { naira } from 'utils/NairaFormat'; | |
import { Box, Flex, Grid } from '@chakra-ui/core'; | |
import { EmojiWrapper } from '../Dashboard/styles'; | |
import { Label, PieChart, Pie, Tooltip, Cell } from 'recharts'; | |
const COLORS = [ | |
'#42B2F7', | |
'#25D1A2', |
import { | |
BarChart as RechartBarChart, | |
Bar, | |
XAxis, | |
YAxis, | |
Area, | |
AreaChart, | |
CartesianGrid, | |
ResponsiveContainer, | |
Tooltip, |
const transactions = [ | |
{ time: "2017-10-04T20:24:30+00:00", amount: 200, label: "food", type: "credit" }, | |
{ time: "2017-11-04T20:24:30+00:00", amount: 200, label: "food", type: "credit" }, | |
{ time: "2017-11-04T20:24:30+00:00", amount: 200, label: "food", type: "credit" }, | |
{ time: "2017-11-04T20:24:30+00:00", amount: 200, label: "food", type: "debit" }, | |
{ time: "2017-12-04T20:24:30+00:00", amount: 200, label: "food", type: "debit" }, | |
{ time: "2017-12-04T20:24:30+00:00", amount: 200, label: "food", type: "debit" }, | |
{ time: "2017-10-04T20:24:30+00:00", amount: 200, label: "food", type: "debit" }, | |
]; |
# how to run this thingy | |
# create a file on your mac called setup.sh | |
# run it from terminal with: sh setup.sh | |
#!/bin/bash | |
set -euo pipefail | |
# Display message 'Setting up your Mac...' | |
echo "Setting up your Mac..." | |
sudo -v |
function Star({ marked, starId }) { | |
return ( | |
<span star-id={starId} style={{ color: "#ff9933" }} role="button"> | |
{marked ? "\u2605" : "\u2606"} | |
</span> | |
); | |
} | |
function StarRating(props) { | |
const [rating, setRating] = React.useState( |
/* Add new identifiers here */ | |
enum AppModuleView { | |
DASHBOARD = "DASHBOARD", | |
PROFILE = "PROFILE", | |
FAQ = "FAQ", | |
SETTINGS = "SETTINGS" | |
} | |