This file contains hidden or 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
## Used Python Cli | |
Lint | |
``` | |
$ pip install -U flake8 autopep8 black isort | |
``` | |
Tools |
- 一番わかり易いのが、sshログインせずとも、Management Console 上から Agent経由でOS上でコマンドを実行してくれるサービスです
- つまりは、SSHレス
- SSM Agent は Amazon Linux AMI 2017.09からデフォでインストール済み
This file contains hidden or 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
# NOTE: | |
# - The reason why using bash shell to wrap python is to use glob | |
# - AND to use negative wildcase, we firstly enable extglob | |
# - https://stackoverflow.com/questions/216995/how-can-i-use-inverse-or-negative-wildcards-when-pattern-matching-in-a-unix-linu | |
# - https://unix.stackexchange.com/questions/502257/bash-aliases-do-not-expand-even-with-shopt-expand-aliases | |
# - double dollar means dollaar mark escape in Makefile | |
loaddata-seeds: | |
docker-compose run api /bin/bash -c $$'shopt -s expand_aliases; shopt -s extglob; alias foo="python ./manage.py loaddata */fixtures/!(*_test).json";\n foo' |
git config --local user.email t_kaneko@xxx.com
git config --local user.name takeshikaneko
git config --local user.name ttkaneko
git rebase -i 変えたいコミットの1つ前まえのHashを選択。以下下を繰り返し
git commit --amend --author="takeshikaneko <t_kaneko@xxx.com>"
git rebase --continue
推論クラス (predicted class) | |||
---|---|---|---|
正(P) | 負(N) | ||
真のクラス(true class) | 正(P) | True Positive(TP:真陽性) | False Negative(FN:偽陰性) |
負(N) | False Positive(FP:偽陽性) | True Negative(TN:真陰性) |
Terms
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
class Todo extends Object{ | |
// @ts-ignore | |
id: number; | |
constructor(obj: any = null) { | |
super(obj); | |
Object.assign(this, obj); | |
Object.setPrototypeOf(this, Todo.prototype); | |
} | |
showThis() { |
This file contains hidden or 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, { Children } from 'react'; | |
import { Route, Redirect } from 'react-router-dom'; | |
import * as auth from '../auth'; | |
const LoggedInUserRoute = (props: any) => { | |
const { children, ...rest } = props; | |
const childrenElem = Children.map(children, child => React.cloneElement(child, { parentProps: props })) | |
if (auth.isLoggedIn() === false) return <Redirect to="/login" />; | |
return ( | |
<Route {...rest}> |