Skip to content

Instantly share code, notes, and snippets.

💤

WADA Takashi watagashi

💤
Block or report user

Report or block watagashi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ioc_flags.js
// [Follow the Rio 2016 @Olympics on Twitter, Vine, and Periscope | Twitter Blogs](https://blog.twitter.com/2016/follow-the-rio-2016-olympics-on-twitter-vine-and-periscope)
// [Twitter、Vine、Periscopeで #オリンピック をより楽しみましょう | Twitter Blogs](https://blog.twitter.com/ja/2016/rio0802)
// [Join the #Paralympics conversation on Twitter | Twitter Blogs](https://blog.twitter.com/2016/join-the-paralympics-conversation-on-twitter)
// [Follow the 2018 Winter @Olympics on Twitter](https://blog.twitter.com/official/en_us/topics/events/2018/Follow-the-2018-Winter-Olympics-on-Twitter.html)
// [冬季 #オリンピック](https://blog.twitter.com/official/ja_jp/topics/events/2018/0209_sports.html)
var tweScript = document.createElement('script');
tweScript.type = 'text/javascript';
tweScript.src = '//twemoji.maxcdn.com/2/twemoji.min.js';
document.getElementsByTagName('body')[0].appendChild(tweScript);
View .babelrc
{
"presets": ["@babel/env"]
}
@watagashi
watagashi / .textlintrc
Last active Jul 13, 2018
remark-lint settings
View .textlintrc
{
"filters": {},
"rules": {
"preset-japanese": true,
"no-todo": true
}
}
View ale_remark_lint.diff
diff --git a/ale_linters/markdown/remark_lint.vim b/ale_linters/markdown/remark_lint.vim
index 98dd0d7..c7fd0ab 100644
--- a/ale_linters/markdown/remark_lint.vim
+++ b/ale_linters/markdown/remark_lint.vim
@@ -1,34 +1,11 @@
" Author rhysd https://rhysd.github.io/, Dirk Roorda (dirkroorda), Adrián González Rus (@adrigzr)
" Description: remark-lint for Markdown files
-function! ale_linters#markdown#remark_lint#Handle(buffer, lines) abort
- " matches: ' 1:4 warning Incorrect list-item indent: add 1 space list-item-indent remark-lint'
View plug.vim.diff
diff --git a/plug.vim b/plug.vim
index 9ebcf53..883187b 100644
--- a/plug.vim
+++ b/plug.vim
@@ -799,7 +799,7 @@ function! s:bang(cmd, ...)
let cmd = a:0 ? s:with_cd(a:cmd, a:1) : a:cmd
if s:is_win
let batchfile = tempname().'.bat'
- call writefile(['@echo off', cmd], batchfile)
+ call writefile(['@echo off', cmd], s:shellesc(batchfile))
View custom_code.js
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
});
View customCode.js
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
});
View file0.txt
% 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 / .vimrc
Last active Jun 14, 2017
TwitVim のプロキシ設定を環境変数から設定 ref: http://qiita.com/watagashi/items/0bd0d4d763ea774d97a5
View .vimrc
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 Jun 13, 2017
vim-plug 自身を Windows でも macOS でも自動インストール ref: http://qiita.com/watagashi/items/cf45ffdd7c21655317a2
View .vimrc
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')
You can’t perform that action at this time.