View command.sh
find `pwd` -type d -maxdepth 3 -name node_modules | xargs -n1 sudo tmutil addexclusion -p
View input.conf
# ~/.config/mpv/input.conf
MOUSE_BTN3 add volume 2
MOUSE_BTN4 add volume -2
AXIS_UP add volume 2
AXIS_DOWN add volume -2
UP add volume 2
DOWN add volume -2
View sha256sum.txt
87a1f231fa93a45db5b3b8fd36780ff2cd5857de77bb4c0d580366e599b1a817 GPD Pocket--firmware of Windows OS(20170526).rar
800635981f43f4efabf84e1988f4dbca89b2eda0400718647ef8904e595170b6 ./WINPE/BOOTEX.LOG
21bf8054adfe0614baba6f21a4bad0b7bfe71dbe9169d2422de42a79258beba0 ./WINPE/Boot/BCD
8358dd2d0dc148113181718daee0b916e6e37ea7d94afd06ee153086da1ce478 ./WINPE/Boot/Fonts/chs_boot.ttf
9be3453a0ccd14f3ae1fc766727909b22b51f561d9a5cd0338e8ad41b2be5737 ./WINPE/Boot/Fonts/cht_boot.ttf
89470defffa753a6d3fcff4db243ec211d9970ae67f1f840034fe9199020db1c ./WINPE/Boot/Fonts/jpn_boot.ttf
6a21388fc2c5fda2cd7d08ffa0ce01dc6c65e08fcb030a3d3aaa39c31b1c398a ./WINPE/Boot/Fonts/kor_boot.ttf
6846bcd60c75f991dc009f6c0dad10ce2016cb00acc9d208abd596fb2e6bd7d0 ./WINPE/Boot/Fonts/malgun_boot.ttf
458f90f9e99e25b8777b3e4ba872f822ee074668814d52d454f3597af2fc8680 ./WINPE/Boot/Fonts/malgunn_boot.ttf
ec653bdee02143ef49f28ef932bb31ab9c6d6a431c8d8f244ce44a7f7ad03e66 ./WINPE/Boot/Fonts/meiryo_boot.ttf
View _.md

http://www-2.cs.cmu.edu/~chuck/lennapg/lena_std.tif

$ go test -bench "BenchmarkResize" -benchmem
BenchmarkResize_NfntResize_NearestNeighbor-4                	    1000	   1754846 ns/op	  845441 B/op	      24 allocs/op
BenchmarkResize_NfntResize_Bilinear-4                       	    1000	   1788142 ns/op	  847436 B/op	      24 allocs/op
BenchmarkResize_NfntResize_Bicubic-4                        	     500	   2474752 ns/op	  851532 B/op	      24 allocs/op
BenchmarkResize_NfntResize_MitchellNetravali-4              	     500	   2517930 ns/op	  851531 B/op	      24 allocs/op
BenchmarkResize_NfntResize_Lanczos2-4                       	     500	   2726255 ns/op	  851530 B/op	      24 allocs/op
BenchmarkResize_NfntResize_Lanczos3-4                       	     500	   3424438 ns/op	  855629 B/op	      24 allocs/op
View digest+flow.js
// Chrome以外でも利用する場合は以下をimportすること
// import 'webcrypto-shim';
import JSSHA from 'jssha';
function webCryptoHex(buffer: Uint8Array): string {
const hexCodes = [];
const view = new DataView(buffer);
for (let i = 0; i < view.byteLength; i += 4) {
const value = view.getUint32(i);
View get_minecraft_latest_meta.md

Requirements

Shell

$ curl -s https://launchermeta.mojang.com/mc/game/version_manifest.json | jq '.latest.release as $latest | .versions | .[] | select(.type == "release" and .id == $latest)'
View build_ffmpeg_for_mingw64.sh
mkdir -p ~/src
cd ~/src
wget https://www.libsdl.org/release/SDL-1.2.15.tar.gz
tar zxvf SDL-1.2.15.tar.gz
cd ~/src/SDL-1.2.15
./configure --prefix=/mingw64 --disable-stdio-redirect
make -j4
make install
View WORKSPACE
# AlpineLinux 3.5
new_http_archive(
name = "docker_alpinelinux",
url = "https://nl.alpinelinux.org/alpine/v3.5/releases/x86_64/alpine-minirootfs-3.5.1-x86_64.tar.gz",
build_file = "alpinelinux.BUILD",
sha256 = "fa17f25ded0b29d94d8cc2d9aabb6f737f4b987c42fe8a6d11e05cfe2c52a64c",
)
View main.go
package main
import (
"bufio"
"bytes"
"flag"
"fmt"
"io/ioutil"
"log"
"net"
View _.sh
# VirtualBoxを利用する場合は3Dアクセラレーションを無効を推奨
sudo add-apt-repository ppa:webupd8team/java
sudo add-apt-repository ppa:webupd8team/atom
sudo add-apt-repository ppa:nginx/stable
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo bash -c "echo 'deb https://apt.dockerproject.org/repo ubuntu-xenial main' > /etc/apt/sources.list.d/docker.list"
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list