This file contains 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
##### ea - alias for editing aliases | |
# | |
#When setting up a new aliases file, or having creating a new file.. About every time after editing an aliases file, I source it. This alias makes editing alias a | |
#bit easier and they are useful right away. Note if the source failed, it will not echo "aliases sourced". | |
# | |
#Sub in gedit for your favorite editor, or alter for ksh, sh, etc. | |
# | |
alias ea='nano ~/.bash_aliases; source ~/.bash_aliases && source $HOME/.bash_aliases && echo "aliases sourced --ok."' | |
# |
This file contains 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
{ | |
"singleQuote": false, | |
"semi": true, | |
"tabWidth": 2, | |
"trailingComma": "all", | |
"printWidth": 100 | |
} |
This file contains 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 contentType = { | |
urlEncoded: 'application/x-www-form-urlencoded', | |
json: "application/json; charset=utf-8" | |
}; | |
const headers = { | |
"Accept": "application/json, text/*" | |
}; | |
// Validator |
This file contains 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
import React, { useReducer, useEffect, useMemo, useState } from "react"; | |
import { BrowserRouter, Switch, Route } from "react-router-dom"; | |
import { reducer, initialState } from "../app-reducer"; | |
import { | |
getProvinces, refreshAccessToken, getHolidays, | |
} from "../app-effects"; | |
import { AppContext } from "../context/AppContext"; | |
import { TimeLimitContext, AppliedRoleContext } from "../context/TimeLimitContext"; | |
import { saveItems, saveLogin, saveUser, saveDayRange, saveDueTime } from "../util/consistentStorage"; |
This file contains 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 = Your Name | |
[alias] | |
a = add | |
aa = add --all | |
br = branch | |
bbr = branch -v | |
brall = branch -avvl | |
co = checkout |
This file contains 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
/* @flow */ | |
// https://stackoverflow.com/questions/990904/remove-accents-diacritics-in-a-string-in-javascript/5912746#5912746 | |
// https://kipalog.com/posts/Mot-so-ki-thuat-xu-li-tieng-Viet-trong-Javascript | |
const defaultDiacriticsRemovalMap = [{ | |
'base': 'A', | |
'letters': '\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F' | |
}, { | |
'base': 'AA', | |
'letters': '\uA732' |
This file contains 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
{ | |
"env": { | |
"browser": true, | |
"es6": true, | |
"node": true | |
}, | |
"plugins": ["babel", "react"], | |
"extends": ["eslint:recommended", "plugin:react/recommended"], | |
"settings": { | |
"react": { |