Skip to content

Instantly share code, notes, and snippets.

Avatar

Taro Furuya taross-f

View GitHub Profile
@taross-f
taross-f / github-flow.ja.md
Created Jul 14, 2021 — forked from Gab-km/github-flow.ja.md
GitHub Flow (Japanese translation)
View github-flow.ja.md

GitHub Flow

31 Aug 2011

git-flowの問題点 (Issues with git-flow)

私は人々にGitを教えるためにあちこちを飛び回っているが、最近のほぼすべてのクラスやワークショップで git-flow についてどう思うかを尋ねられた。私はいつも、git-flowは素晴らしいと思うと答えている。何百万ものワークフローを持ったシステム(Git)を提供し、ドキュメントもあるし、よくテストされている。フレキシブルなワークフローは、実に容易なやり方で多くの開発者の役に立つ。標準的なものになりつつあり、開発者はプロジェクトや企業の間を移動しつつこの標準的なワークフローに馴染むことができる。

@taross-f
taross-f / Timer.py
Created Jul 10, 2021
Timer decorator
View Timer.py
from time import time
import functools
class Timer():
def __init__(self, func):
self._func = func
functools.update_wrapper(self, func)
def __call__(self, *args, **kwargs):
View uBlacklist.txt
*://stackoverrun.com/*
*://www.sejuku.net/*
*://techacademy.jp/*
/.*udemy.*/
@taross-f
taross-f / flake8
Last active Feb 23, 2021
flake8 sample
View flake8
flake8 --ignore E111,E114,C901,E302,W503 --max-line-length 120 /path/to/src
View settings.json
{
"python.autoComplete.extraPaths": [
"${workspaceFolder}/path/to/src/"
],
"python.analysis.extraPaths": [
"${workspaceFolder}/path/to/src/"
],
"python.analysis.diagnosticSeverityOverrides": {
"reportMissingImports": "none",
"reportGeneralTypeIssues": "information"
@taross-f
taross-f / Dockerfile
Created Sep 14, 2020
OpenVINO 2020.4 Docker
View Dockerfile
FROM ubuntu:18.04
USER root
WORKDIR /
SHELL ["/bin/bash", "-xo", "pipefail", "-c"]
# Creating user openvino
RUN useradd -ms /bin/bash openvino && \
chown openvino -R /home/openvino
ARG DEPENDENCIES="autoconf \
automake \
build-essential \
@taross-f
taross-f / dates.py
Created Aug 13, 2020
generate date list from date range
View dates.py
from datetime import datetime, timedelta
target_dates = []
current = start_date
while start_date <= end_date and current <= end_date:
target_dates.append(current)
current += timedelta(days=1)
View stopStartFargate.py
import json
import boto3
def lambda_handler(event, context):
print(event)
client = boto3.client('ecs')
clusters = event['clusters']
for cluster in clusters:
services = cluster['services']
@taross-f
taross-f / Dockerfile
Last active Mar 22, 2020
Dockerfile for Python3.6 with OpenVINO 2020.1.023
View Dockerfile
FROM ubuntu:18.04
USER root
WORKDIR /
ARG DEPENDENCIES="autoconf \
automake \
build-essential \
cmake \
cpio \
View sshkeygen.sh
ssh-keygen -t rsa -b 4096 -C "comment"