Skip to content

Instantly share code, notes, and snippets.

View 3265's full-sized avatar

74k35h1 k4n3k0 3265

  • Yoyodyne
  • TARDIS
View GitHub Profile
## Used Python Cli
Lint
```
$ pip install -U flake8 autopep8 black isort
```
Tools
@3265
3265 / 00_aws.md
Last active January 25, 2020 16:25
aws tf

SSM (AWS Systems Manager)

  • 一番わかり易いのが、sshログインせずとも、Management Console 上から Agent経由でOS上でコマンドを実行してくれるサービスです
  • つまりは、SSHレス
  • SSM Agent は Amazon Linux AMI 2017.09からデフォでインストール済み

ref https://qiita.com/numasawa/items/ed1f1ef6c7c3c6b4c56b

SSM Parameter Store

青色申告を行う上で備付が必要な帳簿

  • 仕訳帳
  • 総勘定元帳
  • 固定資産台帳
  • 現金出納帳
  • 預金出納帳
  • 売掛帳
  • 買掛帳
  • 経費帳
@3265
3265 / Makefile
Last active December 24, 2019 02:53
# 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.
class Todo extends Object{
// @ts-ignore
id: number;
constructor(obj: any = null) {
super(obj);
Object.assign(this, obj);
Object.setPrototypeOf(this, Todo.prototype);
}
showThis() {
@3265
3265 / memo.js
Created September 20, 2019 08:57
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}>