This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!a::Send, ^a | |
!b::Send, ^b | |
!c::Send, ^c | |
!d::Send, ^d | |
!e::Send, ^e | |
!f::Send, ^f | |
!g::Send, ^g | |
!h::Send, ^h | |
!i::Send, ^i | |
!j::Send, ^j |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "[macOS] Windows-like word movement/selection/deletion", | |
"rules": [ | |
{ | |
"description": "Ctrl + Arrow Keys to Option + Arrow Keys", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "up_arrow", | |
"modifiers": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clear | |
echo -n -e "\x1b7" | |
while :; do | |
# 2>/dev/null: hide python stacktrace when Ctrl-C | |
output=$(echo -n -e "あけましておめでとうこざいます。\n本年も日経Linuxとラズパイマガジンをご愛読のほど、\n何卒よろしくお願いいたします。" | boxes -d mouse | lolcat -F 1 -f 2>/dev/null) | |
echo -n -e "\x1b8$output" | |
sleep 0.5s | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! s:run() abort | |
let skkdict = expand('~/Dropbox/config/skkdict/system-dict') | |
" for memory cache | |
call readfile(skkdict) | |
let start = reltime() | |
call readfile(skkdict) | |
let b1 = reltimestr(reltime(start, reltime())) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![feature(slice_patterns)] | |
use std::io; | |
use std::fmt; | |
use std::str; | |
use std::result; | |
use std::iter::Iterator; | |
// TODO: take deparse option from command-line arguments | |
fn main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! HasKey(dict, key) | |
return has_key(a:dict, a:key) | |
endfunction | |
function! s:has_key(dict, key) | |
return has_key(a:dict, a:key) | |
endfunction | |
function! Fold(list, init, f) | |
let l:V = a:init | |
for l:Elem in a:list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SCRIPT /Users/tyru/config/home/volt/repos/github.com/vim-jp/vim-vimlparser/autoload/vimlparser.vim | |
Sourced 1 time | |
Total time: 0.011356 | |
Self time: 0.011356 | |
count total (s) self (s) | |
" vim:set ts=8 sts=2 sw=2 tw=0 et: | |
" | |
" VimL parser - Vim Script Parser | |
" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let s:L = vital#of('vital').import('Data.List') | |
function! s:require(ns, ...) abort | |
let ns = strtrans(a:ns) | |
let fnlist = map( | |
\ split(execute('function /' . ns), '\n'), | |
\ {_,l -> matchstr(l, '^function ' . ns . '#\zs\w\+\ze(')} | |
\) | |
call filter(fnlist, '!empty(v:val)') | |
if a:0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- php.vim.bak 2018-10-10 14:08:25.875669800 +0900 | |
+++ php.vim 2018-10-10 14:04:30.777334700 +0900 | |
@@ -61,15 +61,107 @@ | |
setlocal omnifunc=phpcomplete#CompletePHP | |
endif | |
-" Section jumping: [[ and ]] provided by Antony Scriven <adscriven at gmail dot com> | |
-let s:function = '\(abstract\s\+\|final\s\+\|private\s\+\|protected\s\+\|public\s\+\|static\s\+\)*function' | |
-let s:class = '\(abstract\s\+\|final\s\+\)*class' | |
+" Section jumping: [[ and ]] provided by: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Google Drive でフォルダに移動した時のURLで分かる | |
// https://drive.google.com/drive/u/1/folders/{フォルダのID} | |
var SAVE_FOLDER_ID = 'フォルダのID'; | |
var READ_LABEL_NAME = '添付ファイル保存済み'; | |
var SEARCH_CONDITION = 'has:attachment -label:' + READ_LABEL_NAME; | |
var THREADS_PER_PAGE = 100; | |
function saveAttachments() { | |
Logger.clear(); | |
Logger.log('start'); |
NewerOlder