Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View watagashi's full-sized avatar
🏠
Working from home, except for the weekend.

WADA Takashi watagashi

🏠
Working from home, except for the weekend.
View GitHub Profile
@watagashi
watagashi / customCode.js
Last active February 12, 2018 16:18
twicli for Rambox ( http://rambox.pro )
var originalTitle = document.title;
function updateTitle() {
document.title = document.querySelectorAll('#reply.new, #direct.new').length > 0 ? '(\u2022) ' + originalTitle : originalTitle;
}
registerPlugin({
newMessageElement: updateTitle,
newDM: updateTitle,
switchTo: updateTitle
});
@watagashi
watagashi / file0.txt
Last active December 22, 2017 12:28
Git guilt によるパッチ管理 ref: https://qiita.com/watagashi/items/44c03f702b54d28438fb
% git clone http://repo.or.cz/guilt.git
Cloning into 'guilt'...
remote: Counting objects: 3844, done.
remote: Total 3844 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (3844/3844), 624.05 KiB | 152.00 KiB/s, done.
Resolving deltas: 100% (2864/2864), done.
@watagashi
watagashi / .babelrc
Last active September 23, 2018 07:43
{
"presets": ["@babel/env"]
}
@watagashi
watagashi / .vimrc
Last active June 14, 2017 17:22
TwitVim のプロキシ設定を環境変数から設定 ref: http://qiita.com/watagashi/items/0bd0d4d763ea774d97a5
if exists('$HTTP_PROXY')
let s:proxy_url_pattern =
\ '^\%(\([^:]*\):\/\/\)\='
\ . '\%(\([^:@]*\)\(:[^@]*\)\=@\)\='
\ . '\([^:]*\)\%(:\(\d*\)\)\=/\=$'
let g:twitvim_proxy = substitute($HTTP_PROXY,
\ s:proxy_url_pattern, '\4:\5', '')
let s:proxy_login = substitute($HTTP_PROXY,
\ s:proxy_url_pattern, '\2', '')
let s:proxy_pass = substitute($HTTP_PROXY,
@watagashi
watagashi / .vimrc
Last active June 13, 2017 14:35
vim-plug 自身を Windows でも macOS でも自動インストール ref: http://qiita.com/watagashi/items/cf45ffdd7c21655317a2
let s:vimfiles = expand('<sfile>:p:h')
let s:plugvim = s:vimfiles . '/autoload/plug.vim'
if empty(glob(s:plugvim))
execute "silent !curl -fLo " . s:plugvim . " --create-dirs "
\ . "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim"
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
if !empty(glob(s:plugvim))
call plug#begin(s:vimfiles . '/plugged')
% node server.js & node client.js
Server running
{
"host": "localhost:4321",
"accept": "application/json",
"content-type": "application/json",
"content-length": "37",
"connection": "close"
}
body: [{"a":1,"b":true,"c":"x","d":"漢字"}]
@watagashi
watagashi / vimrc
Last active December 6, 2016 16:37
EditorConfig Vim Plugin を日本語環境の Windows で: 「わ」の日記もどき http://wa.cocolog-enshu.com/pseudodiary/2016/12/editorconfig-vi.html
if has('win32')
let g:EditorConfig_exclude_patterns = ['[^\x01-\x7e]']
endif
@watagashi
watagashi / .gitignore
Created March 7, 2016 09:58 — forked from octocat/.gitignore
Some common .gitignore configurations
# https://github.com/github/gitignore/blob/master/Global/Vim.gitignore
# swap
[._]*.s[a-w][a-z]
[._]s[a-w][a-z]
# session
Session.vim
# temporary
.netrwhist
*~
@watagashi
watagashi / InstallChocolatey.md
Last active January 14, 2016 11:30
Install Chocolatey behind authenticated proxy server
for /d %d in (%HOMEDRIVE%%HOMEPATH%\vimfiles\bundle\*) do @(
@if exist %d\.git (
@cd %d
git pull %d
)
)