Skip to content

Instantly share code, notes, and snippets.

View rinx's full-sized avatar
🍵
Drinking sencha all the time

Rintaro Okamura rinx

🍵
Drinking sencha all the time
View GitHub Profile
let g:unite_source_menu_menus.kaomoji = {
\ 'description' : 'kaomoji dictionary',
\}
let g:unite_source_menu_menus.kaomoji.candidates= [
\["", "( 'ω').。oO(…)"],
\["", "ヾ(⌒(_•ω•)_"],
\["kyun", "ヾ(⌒(\_*'ω'*)\_"],
\["kyun", "(*/ω\*)"],
\["namida", "\.˚‧º·(´ฅωฅ`)‧º·˚."],
\["fuee", "✧*。ヾ(。>﹏<。)ノ゙。*✧"],
@rinx
rinx / weblio.sh
Created April 22, 2014 06:57
search words in weblio from sh
#!/bin/sh
word=$1
opencmd=open
baseurl="http://ejje.weblio.jp/content/"
echo "search ${word} in weblio"
$opencmd "${baseurl}${word}"
@rinx
rinx / Makefile
Created April 20, 2014 11:33
convert markdown to tex-beamer via pandoc
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
@rinx
rinx / getipaddr
Last active August 29, 2015 13:57
#!/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" ;;
"filetype.vim
augroup filetypedetect
au BufNewFile,BufRead .tmux.conf*,tmux.conf* setf tmux
augroup END
type Graph = [[Int]]
data Node = Node { index :: Int,
prev :: Int,
cost :: Int,
flag :: Bool
} deriving Show
inf :: Int
inf = 10000
@rinx
rinx / dokobasu.rb
Created March 26, 2014 03:33
どこバス仙台
#!/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 ="東北大川内キャンパス・萩ホール前"
@rinx
rinx / gist:9614736
Last active August 29, 2015 13:57
学務情報システムの成績照会ページを開いてコンソールで実行 | あなたの落とした単位が降ってきます
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);
@rinx
rinx / predef.scss
Created February 18, 2014 14:50
reveal.js theme 'tricol'
/*
* predefined classes
*
* Copyright (C) 2013 Rintaro Okamura
*/
//mixin
$vendpf: -webkit-, -moz-, -ms-, -o-, '';
@rinx
rinx / gist:8928940
Last active August 31, 2016 16:32
黒い歴史を消して全部AA
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")