Git: merge

The following push command is to push “master” branch to remote “origin” repository. git push origin master   But this merge command is to merge  master branch of “local” repository. git merge origin/master   It’s troublesom. 🙁 To avoid mistakes,…

Python: functools.partial

Pythonを勉強中のため、日々自分用の技術メモを書いていこうと思います。 I’m studying python, and I try to write daily technical memo for myself. functools.partialについて学習しました。 I learned functools.partial today. partialを使うと簡単に関数の部分適用が行えます。 import functools import math #paramter PI and radius #引数として円周率と半径を受け取り、面積を返す circle_squre = lambda pi, r: pi * r * r #円周率の値をpartialによって3に束縛した関数…