| marp | theme |
|---|---|
true |
default |
Powered by kroki.io
| marp | theme |
|---|---|
true |
default |
Powered by kroki.io
コンテキスト: https://togetter.com/li/1331865
グーグルジャパンではなくてUSの本社での採用の話。私が受けたのはSoftware EngineerではなくてDeveloper Advocate。Engineering組織の下についているのでコーディング面接有り。ただし評価項目がSWEとは異なる。
祭っぽいので私も書いてみることにした!お手軽に gist で。
コンテキスト:https://togetter.com/li/1331865
と書き出したはいいが、私が受けたときは本も情報もあまりなく、かつ競プロ的なものの存在も知らなかったので、とりあえず家にあったアルゴリズムの本を2回くらい読み直した。そして受かった。最初っから情報があまりない方のパターンで申し訳ない 😄
| #!/bin/bash | |
| while read line; do | |
| if [[ $line =~ ^alias ]]; then | |
| echo -n aliases\[\""$(echo "$line" | cut -d'=' -f 1 | sed -e "s/alias //g" )"\"\] = | |
| echo " $(echo "$line" | cut -d'=' -f 2-)" | |
| fi | |
| done < ~/.bashrc |
| import torch | |
| from torchvision import datasets | |
| class ImageFolderWithPaths(datasets.ImageFolder): | |
| """Custom dataset that includes image file paths. Extends | |
| torchvision.datasets.ImageFolder | |
| """ | |
| # override the __getitem__ method. this is the method that dataloader calls | |
| def __getitem__(self, index): |