目的: C++を使う競プロで競技中になるべくコマンドラインを触らないようにして楽をするためのMake入門
makeとは
- makeはコンパイル自動化ツールである。(依存関係を含む複雑なコンパイルや、別々の環境用にコンパイル方法を指定したいときに使う)
- makeはUNIX標準ツールとして用意されている。今回はGNU Makeを扱う。
- 困ったときは、 https://www.gnu.org/software/make/manual/ を見ればOK。
// https://codepen.io/erikwoods/pen/wewPaO | |
// because of the chrome71->72 change, add change | |
// I wrote about this here: https://medium.com/@erikwoods/i-made-a-discovery-svg-and-svg-animations-in-the-js-console-are-doable-6c367c95726a | |
// if you’re new to svg, don’t worry about that biz — just move on to the next line because this one is a really long line | |
var svgbiz = '<svg xmlns="http://www.w3.org/2000/svg" width="320" height="320" fill="none" stroke="#000" stroke-linecap="round" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><path id="b"><animate id="a" attributeName="d" values="m160,160l0,0 0,0;m130,110l30,-17 30,17;m130,60l30,-17 30,17;m160,20l0,0 0,0" dur="6s" repeatCount="indefinite"/><animate attributeName="stroke-width" values="0;4;4;4;0" dur="6s" repeatCount="indefinite" begin="a.begin"/></path><path id="c"><animate attributeName="d" values="m160,160l0,0 0,0;m130,110l30,-17 30,17;m130,60l30,-17 30,17;m160,20l0,0 0,0" dur="6s" repeatCount="indefinite" begin="a.begin+1s"/><animate attributeName="st |
目的: C++を使う競プロで競技中になるべくコマンドラインを触らないようにして楽をするためのMake入門
makeとは
from pathlib import Path | |
import re | |
import codecs | |
def head_space(line): | |
return re.match(r' {4}(.*)', line) | |
def head_hyphen(line): | |
return re.match(r'- (\S.*)', line) |
抽象的なので書いてから文献読んでまた書き直したい
広義今日なので
static mut
になってunsafeへの道。解決策としては、structでpubにしておいて外部からアクセスできるようにする。その状態でstruct初期化を行い、それに応じた関数をself
で呼び出す。もっといいやり方がありそう。mod vig {
pub struct A {
広義今日が多いな
start..end
がでかいと配列をとってしまうとMLEする。素直にlow, highに対し素朴に二分探索を行えばよい。このとき、 closureの参照を渡すとうまく行った。 lowとhighを指定する実装毎日、朝にこのメモを開くことにしてみる
find . -type f -print | xargs grep ""
昨日は前半良くて後半失速した。今日は失速しないように頑張る
ssh -T git@github.com
が通った。ヨシ。