I hereby claim:
- I am musaprg on github.
- I am musaprg (https://keybase.io/musaprg) on keybase.
- I have a public key ASDSZ2BiPjrr_EbvvU1FTteYZDtkWKLSNFEW2Hnv_6Kz2Qo
To claim this, I am signing this object:
function FindProxyForURL(url, host) { | |
return "SOCKS localhost:10080"; | |
} |
I hereby claim:
To claim this, I am signing this object:
// ==UserScript== | |
// @name Jump to Waseda Univ. Domain automatically | |
// @namespace musaprg | |
// @version 0.1.1 | |
// @description try to take over the world! | |
// @author Kotaro Inoue <k.musaino@gmail.com> | |
// @match https://dl.acm.org/* | |
// @match https://ieeexplore.ieee.org/* | |
// @match https://link.springer.com/* | |
// @updateURL https://gist.githubusercontent.com/musaprg/0a4b58458b8cf3e7ef64770d49cfa8fd/raw/user.js |
FROM jupyter/scipy-notebook | |
USER root | |
RUN apt-get update -y --fix-missing && \ | |
apt-get -y install \ | |
mecab \ | |
libmecab-dev \ | |
mecab-ipadic-utf8 \ | |
git \ |
curl -s https://api.github.com/repos/protocolbuffers/protobuf/releases/latest \ | |
| grep "browser_download_url" \ | |
| grep -E "protoc-[0-9.]+-linux-x86_64.zip" \ | |
| cut -f 4 -d '"' \ | |
| xargs -n1 curl -L -sS > protoc.zip && \ | |
unzip protoc.zip && \ | |
mv bin/protoc /usr/local/bin |
// ==UserScript== | |
// @name Use AOJv2.0 in AOJ-ICPC | |
// @namespace musaprg | |
// @version 0.1.3 | |
// @description try to take over the world! | |
// @author Kotaro Inoue <k.musaino@gmail.com> | |
// @match http://aoj-icpc.ichyo.jp/* | |
// @grant none | |
// @updateURL https://gist.githubusercontent.com/musaprg/0cecc3d3705e77ac9f337eb378cde894/raw/user.js | |
// ==/UserScript== |
https://github.com/rails/webpacker#vue
To use Webpacker with Vue, create a new Rails 5.1+ app using --webpack=vue option:
# Rails 5.1+
rails new myapp --webpack=vue
(or run bundle exec rails webpacker:install:vue on a Rails app already setup with Webpacker).
COMPILER = g++ | |
CFLAGS = -g -MMD -MP -Wall -Wextra -Winit-self -Wno-missing-field-initializers | |
ifeq "$(shell getconf LONG_BIT)" "64" | |
LDFLAGS = | |
else | |
LDFLAGS = | |
endif | |
LIBS = | |
INCLUDE = -I./include | |
TARGET = ./bin/$(shell basename `readlink -f .`) |
#!/bin/sh | |
DOTFILESDIR=`readlink -f .` | |
# Move all dotfiles here (before all intstructions begin) | |
ln -snfv ${DOTFILESDIR}/.vimrc $HOME/.vimrc | |
ln -snfv ${DOTFILESDIR}/.vim $HOME/.vim | |
# For macOS El Capitan or later version users | |
# You need to disable SIP security option. |
import numpy as np | |
import cv2 | |
orig = cv2.imread('src.png').astype(np.float32) | |
width, height, _ = orig.shape | |
center_x, center_y = width/4, height/2 | |
blur, iterations = 0.008, 20 | |
map_x1 = np.fromfunction(lambda y, x: x, (width, height), dtype=np.float32) | |
map_y1 = np.fromfunction(lambda y, x: y, (width, height), dtype=np.float32) |