Skip to content

Instantly share code, notes, and snippets.

View musaprg's full-sized avatar
🐱
meow meow

Kotaro Inoue musaprg

🐱
meow meow
View GitHub Profile
function FindProxyForURL(url, host) {
return "SOCKS localhost:10080";
}

Keybase proof

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:

@musaprg
musaprg / user.js
Last active October 22, 2019 14:53
大学の契約DBのURLに自動で遷移してくれるUserscript
// ==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 \
@musaprg
musaprg / script.sh
Created April 16, 2019 06:20
最新のprotocバイナリを落として/usr/local/binに置くスクリプト
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
@musaprg
musaprg / user.js
Last active May 23, 2019 08:42
AOJ-ICPCから直接AOJv2.0へ飛べるようにするスクリプト
// ==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==
@musaprg
musaprg / 1.md
Created September 26, 2018 02:54
RailsとVueの環境構築

https://github.com/rails/webpacker#vue

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).
@musaprg
musaprg / makefile
Created July 21, 2018 07:38 — forked from urin/makefile
makefile - simple template to make an executable from *.cpp files.
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 .`)
@musaprg
musaprg / install.sh
Last active August 11, 2018 16:37
環境構築(Mac) #deprecated go to musaprg/dotfiles https://github.com/musaprg/dotfiles
#!/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.
@musaprg
musaprg / yakudo.py
Created June 25, 2018 15:11 — forked from 8q/yakudo.py
mis1yakudo
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)