I hereby claim:
- I am zaltoprofen on github.
- I am zaltoprofen (https://keybase.io/zaltoprofen) on keybase.
- I have a public key ASCX4rZ_5D8OmELhSpkFMKPnmNChvfMPlKZDGwuzVIIEHQo
To claim this, I am signing this object:
| function kanjinize(v) { | |
| const minor_suffix = ['', '十', '百', '千']; | |
| const major_suffix = ['', '万', '億', '兆', '京']; | |
| const digit = ['', '一', '二', '三', '四', '五', '六', '七', '八', '九']; | |
| if (typeof v != 'number' || v % 1 != 0 || v < 0) { | |
| return; | |
| } | |
| if (v == 0) { | |
| return '零'; |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| # example | |
| # ./download_artwork.sh LIVE THE@TER PERFORMANCE 01 | |
| image_size=1600 | |
| download_artwork() { | |
| query=$(perl -MURI::Escape -e "print uri_escape('$*')") | |
| img_url=$(curl "https://itunes.apple.com/search?country=jp&media=music&entity=album&term=${query}"|jq -r '.results[0].artworkUrl100'|sed -e "s/100x100/${image_size}x${image_size}/") |
| \setbeamertemplate{headline}{% | |
| \leavevmode% | |
| \hbox{% | |
| \begin{beamercolorbox}[wd=\paperwidth,ht=2.5ex,dp=1.125ex]{palette quaternary}% | |
| \ifx\insertsection\empty\else% | |
| \hspace{1em}\insertsection \ifx\insertsubsection\empty\else% | |
| \hspace{0.5em}> \insertsubsection% | |
| \ifx\insertsubsubsection\empty\else\hspace{0.5em}> \insertsubsubsection\fi% | |
| \fi% | |
| \fi% |
| #!/bin/bash | |
| ref=$1 | |
| if [ -z "$ref" ]; then | |
| ref=HEAD | |
| fi | |
| latest_hash=$(git log -n 1 --pretty=format:"%h" $ref) | |
| repo_name=$(basename $(git rev-parse --show-toplevel)) | |
| git archive $ref --format=tar.gz --prefix=${repo_name}_${latest_hash}/ -o ${repo_name}_${latest_hash}.tar.gz |
| File "/path/to/lib/python3.4/site-packages/chainer/training/trainer.py", line 289, in run | |
| update() | |
| File "/path/to/lib/python3.4/site-packages/chainer/training/updater.py", line 170, in update | |
| self.update_core() | |
| File "/path/to/lib/python3.4/site-packages/chainer/training/updater.py", line 182, in update_core | |
| optimizer.update(loss_func, *in_vars) | |
| File "/path/to/lib/python3.4/site-packages/chainer/optimizer.py", line 415, in update | |
| self.update_one(param, states[name]) | |
| File "/path/to/lib/python3.4/site-packages/chainer/optimizer.py", line 431, in update_one | |
| self.update_one_gpu(param, state) |
| Element | Count | |
|---|---|---|
| C | 211117936 | |
| O | 90975850 | |
| N | 56914842 | |
| H | 12937975 | |
| S | 1565549 | |
| P | 235088 | |
| SE | 73809 | |
| CL | 31157 | |
| MG | 24648 |
| package main | |
| import ( | |
| "errors" | |
| "fmt" | |
| "math/rand" | |
| "sort" | |
| "time" | |
| ) |