This file contains hidden or 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
module.exports = { | |
root: true, // Make sure eslint picks up the config at the root of the directory | |
parser: '@typescript-eslint/parser', | |
parserOptions: { | |
ecmaVersion: 2020, // Use the latest ecmascript standard | |
sourceType: 'module', // Allows using import/export statements | |
ecmaFeatures: { | |
jsx: true // Enable JSX since we're using React | |
} | |
}, |
This file contains hidden or 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
// https://medium.com/@mhagemann/the-ultimate-way-to-slugify-a-url-string-in-javascript-b8e4a0d849e1 | |
function slugify(string) { | |
const a = 'àáäâãåèéëêìíïîòóöôùúüûñçßÿœæŕśńṕẃǵǹḿǘẍźḧ·/_,:;'; | |
const b = 'aaaaaaeeeeiiiioooouuuuncsyoarsnpwgnmuxzh------'; | |
const p = new RegExp(a.split('').join('|'), 'g'); | |
return string | |
.toString() | |
.toLowerCase() |
This file contains hidden or 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 repCounterMachine = Machine( | |
{ | |
id: "repCounter", | |
initial: "counting", | |
context: { | |
goal: 10, | |
count: 10, | |
doneMessage: null | |
}, | |
states: { |
This file contains hidden or 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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
This file contains hidden or 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
html { | |
box-sizing: border-box; | |
font-size: 16px ; | |
} | |
*, *:before, *:after { | |
box-sizing: inherit ; | |
} | |
.banana > span:after { |
This file contains hidden or 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
/* | |
* index.js | |
*/ | |
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import App from 'App'; | |
import { Provider } from 'react-redux'; | |
import configureStore from 'state/store'; // see store.js in the gist below | |
import { BrowserRouter } from 'react-router-dom'; |
This file contains hidden or 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] | |
email = [email protected] | |
name = Brian Han | |
# Each git user will have their own .gitconfig, | |
# The only difference between each .gitconfig file is the [user] email and name | |
# If working on a project in ~/dev, this will tell git to use the .gitconfig file specified by the path variable. | |
[includeIf "gitdir:~/dev/"] | |
path = ~/dev/.gitconfig |
NewerOlder