Skip to content

Instantly share code, notes, and snippets.

View akiy502's full-sized avatar

Hidetoshi Akiyama akiy502

  • Kanagawa, Japan
View GitHub Profile
env:
browser: true
node: true
es6: true
extends:
- eslint:recommended
- plugin:react/recommended
- plugin:redux-saga/recommended
- plugin:import/react
- plugin:import/errors
@akiy502
akiy502 / .eslintrc.yml
Last active March 20, 2024 16:45
.ESLintRC (React + Redux-Saga + Babel)
env:
browser: true
node: true
es6: true
extends:
- eslint:recommended
- plugin:react/recommended
- plugin:redux-saga/recommended
- plugin:react-hooks/recommended
- plugin:jsx-a11y/recommended
@akiy502
akiy502 / config-overrides.js
Created February 10, 2022 16:14
ASP.NET CoreにReactを部分導入する
// create-react-appのconfigを書き換えるファイル(react-app-rewiredにより適用)
const path = require('path');
const fs = require('fs');
const appDirectory = fs.realpathSync(process.cwd());
const resolveApp = relativePath => path.resolve(appDirectory, relativePath);
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
// エントリーポイントの定義
// プロパティ名がJS、CSSのファイル名になる。値には必ずindex.jsの相対パスを指定すること。
const entryList = {
@akiy502
akiy502 / how-to-hold-your-team-accountable.md
Last active February 10, 2022 16:50
チームに責任を持たせるためのシンプルな方法(DeepL翻訳)

https://medium.dave-bailey.com/how-to-hold-your-team-accountable-9fa57bfb315d

Dave Bailey

チームに責任を持たせるためのシンプルな方法

チームを信頼し、自分がいなくても仕事ができるようにする。

CEOコーチとして、このような発言を何度も耳にしたことがあります。

「副社長が力を発揮してくれない」

>「仕事をきちんとやってくれるとは思えない」

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets
Build
BeforeBuild
CoreBuild
BuildOnlySetting
PrepareForBuild
PreBuildEvent
Compile
BeforeCompile
@akiy502
akiy502 / NLog.config
Last active September 18, 2021 10:25
ASP.NET CoreからAWS CloudWatchに出力する。NLog.AWS.Loggerが必要。
<?xml version="1.0" encoding="utf-8" ?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
autoReload="true"
throwExceptions="true"
internalLogLevel="Error"
internalLogFile=".\nlog-internal.log">
<extensions>
<add assembly="NLog.Web.AspNetCore" />
<add assembly="NLog.AWS.Logger" />
<?xml version="1.0" encoding="utf-8" ?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.nlog-project.org/schemas/NLog.xsd NLog.xsd"
autoReload="true"
throwExceptions="true"
internalLogLevel="Error" internalLogFile=".\nlog-internal.log">
<targets>
<target
@akiy502
akiy502 / getQueryParams.js
Last active July 28, 2018 00:56
クエリ文字列を連想配列化する cf. https://qiita.com/tonkatu_tanaka/items/99d167ded9330dbc4019
function getQueryParams() {
var params = {};
var pair = location.search.substring(1).split('&');
for(var i = 0; pair[i]; i++) {
var kv = pair[i].split('=');
params[kv[0]]=kv[1];
}
return params;
}
@akiy502
akiy502 / UiPath.cs
Last active January 16, 2018 10:21
DateTime.Now.toString("yyyy/MM/dd")
Enumerable.First(match1).Value()
Enumerable.ElementAt(match1, 0).Value()
select *
into OUT_TABLE
from IN_TABLE
where 0 = 1;
SELECT IsNull(field, 0) FROM A;
SELECT SUBSTRING(FirstName, 1, 1) FROM A;
SELECT Len(field, 0) FROM A;