This file contains hidden or 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 g:unite_source_menu_menus.kaomoji = { | |
\ 'description' : 'kaomoji dictionary', | |
\} | |
let g:unite_source_menu_menus.kaomoji.candidates= [ | |
\["", "( 'ω').。oO(…)"], | |
\["", "ヾ(⌒(_•ω•)_"], | |
\["kyun", "ヾ(⌒(\_*'ω'*)\_"], | |
\["kyun", "(*/ω\*)"], | |
\["namida", "\.˚‧º·(´ฅωฅ`)‧º·˚."], | |
\["fuee", "✧*。ヾ(。>﹏<。)ノ゙。*✧"], |
This file contains hidden or 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 | |
word=$1 | |
opencmd=open | |
baseurl="http://ejje.weblio.jp/content/" | |
echo "search ${word} in weblio" | |
$opencmd "${baseurl}${word}" |
This file contains hidden or 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
output.pdf: input.md h-luatexja.tex | |
pandoc --latex-engine=lualatex \ | |
-H h-luatexja.tex \ | |
-t beamer \ | |
-V theme=Madrid \ | |
-o output.pdf \ | |
input.md | |
input.md: | |
touch input.md |
This file contains hidden or 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 | |
CMDNAME=`basename $0` | |
while getopts glt OPT | |
do | |
case $OPT in | |
"g" ) FLG_G="TRUE" ;; | |
"l" ) FLG_L="TRUE" ;; | |
"t" ) FLG_T="TRUE" ;; |
This file contains hidden or 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
"filetype.vim | |
augroup filetypedetect | |
au BufNewFile,BufRead .tmux.conf*,tmux.conf* setf tmux | |
augroup END | |
This file contains hidden or 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
type Graph = [[Int]] | |
data Node = Node { index :: Int, | |
prev :: Int, | |
cost :: Int, | |
flag :: Bool | |
} deriving Show | |
inf :: Int | |
inf = 10000 |
This file contains hidden or 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
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
require 'net/http' | |
require 'kconv' | |
require 'nokogiri' | |
Net::HTTP.start('www.dokobasu.kotsu.city.sendai.jp', 80) {|http| | |
stop_s ="東北大川内キャンパス・萩ホール前" |
This file contains hidden or 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
tmp = ""; | |
for(var i=0; i< jq$(".column_odd").length; i++){if( jq$(".column_odd > td:eq("+(i*8+5) +")").text().replace(/\s+/g, "") == "D" ){tmp += jq$(".column_odd > td:eq("+(i*8) +")").text().replace(/\s+/g, "") + ",";}} | |
for(var i=0; i< jq$(".column_odd_120").length; i++) tmp += jq$(".column_odd_120 > td:eq("+(i*8) +")").text().replace(/\s+/g, "") + ","; | |
function jumpPage(units) { location.href = "http://oboenikui.com/tani/?units=" + units.replace(/,$/,""); } | |
jumpPage(tmp); |
This file contains hidden or 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
/* | |
* predefined classes | |
* | |
* Copyright (C) 2013 Rintaro Okamura | |
*/ | |
//mixin | |
$vendpf: -webkit-, -moz-, -ms-, -o-, ''; |
This file contains hidden or 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
for(var i=0; i< jq$(".column_odd_120").length; i++) jq$(".column_odd_120").attr("class","column_odd") | |
for(var i=0; i< jq$(".column_odd").length; i++) jq$(".column_odd > td:eq("+(5+i*8) +")").text("AA") |