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
#!/bin/bash | |
set -e | |
function usage () { | |
echo 'ramen [-q $query] [-m $minutes] [-from $from] [-t tolerance] | |
default values: | |
query = ラーメンタイマー | |
minutes = 3 |
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! Rand(n) | |
" http://vim-jp.org/vim-users-jp/2009/11/05/Hack-98.html | |
let l:match_end = matchend(reltimestr(reltime()), '\d\+\.') + 1 | |
return reltimestr(reltime())[l:match_end : ] % (a:n + 1) | |
endfunction | |
let s:unite_grep_settings = [ | |
\ { |
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
#!/bin/bash | |
for file in "$@" | |
do | |
mpg123 -loop=-1 -- "$file" & | |
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
class SteelHash | |
def initialize (hash) | |
hash.each do | |
|k, v| | |
define_singleton_method(k) { v } | |
end | |
end | |
end | |
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
set runtimepath+=~/.vim-temp/bundle/incsearch.vim | |
nmap / <Plug>(incsearch-forward) |
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
#!/bin/sh | |
case "$1" in | |
on) | |
value=1 | |
;; | |
off) | |
value=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
command! data :echo let(bs=JSON.parse(util.httpGet('http://b.hatena.ne.jp/entry/json/?url=' + encodeURIComponent(buffer.URL)).responseText).bookmarks)(bs.map(function(it)it.timestamp).sort())[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
(function () { | |
let A = Array.slice; | |
const selectors = { | |
selectedEntry: '.fd_focus', | |
currentFeedTitle: '.fd_current_feed_title', | |
feeds: '.fd_feed', | |
feedTitle: '.fd_feed_title', |
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 () { | |
const api = { | |
matchingUrls: new RegExp('^https?://feedly.com/'), | |
get doc () content.document, |
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
# Shadow | |
shadow = false; | |
no-dnd-shadow = true; | |
no-dock-shadow = true; | |
clear-shadow = true; | |
shadow-radius = 7; | |
shadow-offset-x = -7; | |
shadow-offset-y = -7; | |
# shadow-opacity = 0.7; | |
# shadow-red = 1.0; |