Skip to content

Instantly share code, notes, and snippets.

@junkor-1011
junkor-1011 / .eslintrc.js
Created March 7, 2021 12:53
typescript project setting(node-standard)
module.exports = {
env: {
browser: true,
commonjs: true,
es2021: true
},
extends: [
'standard'
],
parser: '@typescript-eslint/parser',
@junkor-1011
junkor-1011 / .eslintrc.js
Created March 7, 2021 13:01
typescript project setting(node-google)
module.exports = {
'env': {
'browser': true,
'commonjs': true,
'es2021': true,
},
'extends': [
'google',
],
'parser': '@typescript-eslint/parser',
@junkor-1011
junkor-1011 / .eslintrc.js
Created March 7, 2021 13:07
typescript project setting(node-airbnb)
module.exports = {
env: {
browser: true,
commonjs: true,
es2021: true,
},
extends: [
'airbnb-base',
],
parser: '@typescript-eslint/parser',
@junkor-1011
junkor-1011 / .env.development
Created March 20, 2021 06:05
create-react-app typescript setting
SKIP_PREFLIGHT_CHECK=true
ESLINT_NO_DEV_ERRORS=true
EXTEND_ESLINT=true
@junkor-1011
junkor-1011 / .env.development
Last active March 29, 2021 15:54
create-react-app javascript setting
SKIP_PREFLIGHT_CHECK=true
ESLINT_NO_DEV_ERRORS=true
EXTEND_ESLINT=true
@junkor-1011
junkor-1011 / base64ToBinary.js
Created March 25, 2021 15:52
base64 to ArrayBuffer/Blob at Browser-JS
/**
* base64エンコードされたバイナリデータからUint8Arrayを取得
* @param base64str base64エンコード文字列
* @return Uint8Array
*/
export const getUint8ArrayFromBase64 = (base64str) => {
const binary = atob(base64str);
const bytes = [...Array(binary.length).keys()].map(
(idx) => binary.charCodeAt(idx)
);
@junkor-1011
junkor-1011 / validation.js
Created April 14, 2021 12:04
HTML input validation module
/**
* validation
*/
/**
* validate uuid
* @param {string} value - target for validate
* @return {boolean}
*/
export const validateUuid = (value) => {
@junkor-1011
junkor-1011 / readme.md
Created April 25, 2021 06:20
vscode-neovim note
@junkor-1011
junkor-1011 / README.md
Last active September 19, 2021 16:29
install ROOT in conda

install ROOT

execute:

# create env: cern_root
conda env create -f create_env.yml

# activate
@junkor-1011
junkor-1011 / README.md
Last active August 6, 2021 13:44
Remark Template