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
export * from './2.js'; | |
export * from './3.js'; | |
export * from './4.js'; | |
export const a = '1_a'; | |
export const b = '1_b'; |
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
{ | |
// UI | |
"editor.fontFamily": "RictyDiminished Nerd Font", | |
"editor.fontSize": 16, | |
"terminal.integrated.fontSize": 14, | |
"editor.wordWrap": "off", | |
"workbench.colorTheme": "Monokai", | |
"editor.minimap.enabled": false, | |
"editor.dragAndDrop": true, | |
"editor.renderControlCharacters": true, |
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
/** @type {import('dependency-cruiser').IConfiguration} */ | |
module.exports = { | |
options: { | |
exclude: { | |
path: '^src/(types|cli|util|typings)', | |
}, | |
doNotFollow: { | |
path: 'node_modules', | |
dependencyTypes: ['npm', 'npm-dev', 'npm-optional', 'npm-peer', 'npm-bundled', 'npm-no-pkg'], | |
}, |
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
#!/usr/bin/env bash | |
# usage: git sy | |
set -e | |
# run に渡されたコマンドを実行しつつ、コマンドの名前をログに出力する | |
run() { | |
echo -e "\e[1m+$@\e[0m" | |
"$@" | |
} |
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
// based https://gist.github.com/YujiSoftware/9274366a93f1ac7f9208bd4abf096527 | |
#include <M5StickCPlus.h> | |
#include "MHZ19.h" | |
#define RX_PIN 36 // Rx pin which the MHZ19 Tx pin is attached to | |
#define TX_PIN 0 // Tx pin which the MHZ19 Rx pin is attached to | |
#define BAUDRATE 9600 // Device to MH-Z19 Serial baudrate (should not be changed) | |
#define LCD_MODE_DIGIT 0 |
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
######################################## | |
## peco | |
## (ref http://k0kubun.hatenablog.com/entry/2014/07/06/033336) | |
######################################## | |
export GHQ_ROOT="$HOME/src" | |
# `cd ~gomi` でゴミ置き場に移動できるように | |
hash -d gomi=~/src/localhost/gomi | |
alias src-list="find ~/src -mindepth 3 -maxdepth 3 -type d | sed -e \"s|$HOME/src/||g\"" |
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 from 'react'; | |
import TextField from '@material-ui/core/TextField'; | |
import Button from '@material-ui/core/Button'; | |
import Grid from '@material-ui/core/Grid'; | |
import InputLabel from '@material-ui/core/InputLabel'; | |
import { makeStyles } from '@material-ui/core/styles'; | |
import useForm from 'react-hook-form'; | |
const useStyles = makeStyles((theme) => ({ | |
labelContainer: { |
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
type Modify<T, K extends keyof T, Value> = Pick<T, Exclude<keyof T, K>> & | |
{ | |
[P in K]: Value | |
} | |
function isError<TData, TVariables>( | |
result: QueryResult<TData, TVariables>, | |
): result is Modify<typeof result, 'error', ApolloError> { | |
return !!result.error | |
} |
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
#pragma once | |
#include <errno.h> | |
#include <stdarg.h> | |
#include <stdio.h> | |
#include <string.h> | |
#define PANIC(fmt, ...) \ | |
{ \ | |
err_msg(__FILE__, __FUNCTION__, __LINE__, "panic", fmt, ##__VA_ARGS__); \ |
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
[[package]] | |
name = "cfg-if" | |
version = "0.1.5" | |
source = "registry+https://github.com/rust-lang/crates.io-index" | |
[[package]] | |
name = "itoa" | |
version = "0.4.3" | |
source = "registry+https://github.com/rust-lang/crates.io-index" |
NewerOlder