- パソコンの液晶(24inch以上)を利用していて、
- ❏ 画面が妙に明るく感じる とき
- ❏ 黒主体のウェブサイトを見た後で白いサイトを見ると気持ち悪くなる とき
- ❏ 他人の言動が自分のことを対象にしているかのように感じる とき
- ❏(自覚がある場合は、単にダメージをうけたように感じる)
- ❏極寒の中に裸でいるような気分である時
- ❏ 頭がすっきりしていない とき
- ❏ 判断力が落ちている と自覚しているとき
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
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
# Implements | |
module TwLength | |
# ref. https://dev.twitter.com/docs/api/1.1/get/help/configuration | |
# Someone help me with getting twitter configuration without oAuth? ;( | |
# | |
# RESERVED_LENGTH.must_eqal [short_url_length_http, short_url_length_https].max | |
MAX_RESERVED_LENGTH = 23 |
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
# Add separating line between commands | |
# cf. oh-my-zsh af-magic theme https://github.com/robbyrussell/oh-my-zsh/blob/master/themes/af-magic.zsh-theme | |
if [[ ! ( $PROMPT =~ '-----------------------------------------' ) ]]; then | |
PROMPT='$FG[237]------------------------------------------------------------%{$reset_color%} | |
'"$PROMPT" | |
fi |
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 | |
# 概要: Ubuntu 12.04 デスクトップ上で、Ctrl+Qにて意図せずアプリケーションが終了されてしまうのを防ぐ | |
# 必要: $ sudo apt-get install gconf2 | |
# 確認方法: $ gconftool-2 -a /desktop/gnome/keybindings/$KEYBINDING_KEY | |
# 注意点: 誤ってキーが押されたら notify-send で通知しているので、邪魔なら外してください | |
KEYBINDING_KEY=custom100 | |
if [[ -z "$(gconftool-2 -a /desktop/gnome/keybindings/$KEYBINDING_KEY)" ]] ; then | |
gconftool-2 --set --type string /desktop/gnome/keybindings/$KEYBINDING_KEY/name 'unintentionally Ctrl+Q killer' |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
cakegetter.py | |
ツイッター検索からcakes無料時間の記事を探してダウンロードしておくスクリプト | |
""" | |
import os | |
import re |
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
#!/usr/bin/env python | |
# An `ad-hoc` script to change user interface language | |
# for Anki2 on Ubuntu 12.04 desktop. | |
# Usage: anki2-change-defaultLang-to-en.py [lang] | |
# | |
# Examples: | |
# # Change to english interface | |
# $ anki2-change-defaultLang-to-en.py en |
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
「ナウい」 | |
「ハレンチ」 | |
「アジャパー」 | |
「やったぜベイビー」 | |
「はっ!!あと一組なのに!?」 | |
「三年目の補講」 | |
「キレる中高年」 | |
「今の良くない日本」 | |
「はいはい分かりましたよ。もうちょっと待ちますよ」 | |
「うるさいなあ。お前が病院行けよ!」 |
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
" vim-quickrunで ruby の bundler を考慮する | |
augroup quickrun_ruby_config | |
autocmd! | |
autocmd FileType ruby call s:quickrun_ruby_config() | |
augroup END | |
function! s:quickrun_ruby_config() | |
" detect "bundler" by checking "Gemfile" from upper directory of current file | |
let execs = executable('bundle') && | |
\ findfile('Gemfile', '.;') != '' ? 'bundle exec ' : '' |
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
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
program = File.basename($PROGRAM_NAME) | |
USAGE = <<EOD | |
usage: #{program} text | |
example: | |
$ #{program} "みんなでワイワイ バーベキューなう" | |
たわわに実るみんなでワイワイ 甘美なバーベキューなう | |
or |
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
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
# | |
# usage: | |
# shindan.rb [id] [name] | |
# | |
# example: | |
# $ shindan.rb 152454 お魚日 | |
# オオオオオョヒーオギ |