Run:
brew install httpie
brew install jq
gem install lolcat
Download this repo https://github.com/schacon/cowsay and cd
into its directory.
Run:
import axios from 'axios' | |
import { | |
refreshTokens, | |
getTokens, | |
getLogoutUri, | |
getRefreshTokensUri | |
} from "./utils" | |
/** | |
* Configure axios to refresh tokens and reflight the request if it fails |
Run:
brew install httpie
brew install jq
gem install lolcat
Download this repo https://github.com/schacon/cowsay and cd
into its directory.
Run:
import React, { Fragment } from 'react' | |
import T from 'prop-types' | |
const Button = ({ children, id, value, ...props }) => ( | |
<Fragment> | |
<input type="radio" id={id} value={value} {...props} /> | |
<label htmlFor={id}>{children}</label> | |
</Fragment> | |
) |
import { useState, useEffect } from 'react'; | |
// Usage | |
function App() { | |
// Similar to useState but we pass in a key to value in local storage | |
// With useState: const [name, setName] = useState('Bob'); | |
const [name, setName] = useLocalStorage('name', 'Bob'); | |
return ( | |
<div> |
import React from 'react' | |
import Flag from './Flag' | |
const Consumer = () => ( | |
<Flag.Wrapper spacer="md"> | |
<Flag.Component>Component</Flag.Component> | |
<Flag.Body>Body</Flag.Body> | |
</Flag.Wrapper> | |
) |
kill -9 $(lsof -t -i:3000) |
# git aliases | |
alias g="git" | |
alias ga="git add -A" | |
alias gc="git commit" | |
alias gcm="git commit -m" | |
alias gp="git push" | |
alias gch="git checkout" | |
alias gpu="git pull" | |
alias gb="git branch" |
I hereby claim:
To claim this, I am signing this object:
Fast in browser testing
Simple website build platform
import React from "react"; | |
import styled from "styled-components"; | |
import { Box } "./some-styled-system"; | |
import { useBreakpoints } from "./use-breakpoints"; | |
// Very contrived example | |
const ColoredBox = styled.div<{ isRed: Boolean; isBlue: boolean }>` | |
width: 100px; | |
height: 100px; |