I hereby claim:
- I am darcien on github.
- I am yosua (https://keybase.io/yosua) on keybase.
- I have a public key whose fingerprint is 001C 856C 6BCE 8DB1 2D03 6F9D 389E 6CA1 BA6C 4826
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
PATH="/usr/local/bin:$(getconf PATH)" | |
# If you come from bash you might have to change your $PATH. | |
export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH=$HOME/.oh-my-zsh | |
# Path for yarn. | |
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH" |
# README | |
# | |
# In order for this theme to render correctly, you will need a | |
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts). | |
# | |
# In addition, I recommend the | |
# [Tomorrow Night theme](https://github.com/chriskempson/tomorrow-theme) and, if | |
# you're using it on Mac OS X, [iTerm 2](http://www.iterm2.com/) over | |
# Terminal.app - it has significantly better color fidelity. |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"/> | |
<title>Math clamp</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script> | |
<script src="./suite.js"></script> | |
</head> | |
<body> | |
<h1>Open the console to view the results</h1> |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"/> | |
<title>getUniqueList</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script> | |
<script src="./suite.js"></script> | |
</head> | |
<body> | |
<h1>Open the console to view the results</h1> |
{ | |
"workbench.startupEditor": "newUntitledFile", | |
"editor.multiCursorModifier": "alt", | |
"editor.formatOnSave": true, | |
"prettier.singleQuote": true, | |
"prettier.trailingComma": "all", | |
"prettier.bracketSpacing": false, | |
"prettier.arrowParens": "always", | |
"workbench.colorTheme": "SynthWave '84", | |
"editor.scrollBeyondLastLine": false, |
{ | |
"extends": "./node_modules/tsconfig-kodefox/tsconfig", | |
"compilerOptions": { | |
"noEmit": true, | |
"lib": ["dom", "esnext"], | |
"jsx": "react-native", | |
"moduleResolution": "node", | |
"allowSyntheticDefaultImports": true, | |
"skipLibCheck": true, | |
"typeRoots": ["node_modules/@types", "custom_types"] |
{ | |
"defaultSeverity": "error", | |
"extends": [ | |
"tslint:recommended", | |
"tslint-react", | |
"tslint-plugin-prettier", | |
"tslint-config-prettier", | |
"tslint-config-kodefox" | |
], | |
"linterOptions": { |
{ | |
"jest": { | |
"preset": "jest-expo", | |
"transform": { | |
"^.+\\.js$": "<rootDir>/node_modules/react-native/jest/preprocessor.js", | |
"^.+\\.tsx?$": "ts-jest" | |
}, | |
"testMatch": [ | |
"**/__tests__/**/*.ts?(x)", | |
"**/?(*.)+(spec|test).ts?(x)" |
function medianOfTwoSorted(sortedA: Array<number>, sortedB: Array<number>) { | |
let [m, n] = [sortedA.length, sortedB.length]; | |
if (m > n) { | |
// Use the longest array for m. | |
[sortedA, sortedB, m, n] = [sortedB, sortedA, n, m]; | |
} | |
if (n === 0) { | |
throw new Error('Array should not be empty'); |