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
" NeoBundle | |
" https://github.com/Shougo/neobundle.vim | |
" cf. http://qiita.com/puriketu99/items/1c32d3f24cc2919203eb | |
set nocompatible | |
filetype off | |
if has('vim_starting') | |
set runtimepath+=~/.vim/bundle/neobundle.vim | |
call neobundle#rc(expand('~/.vim/bundle/')) | |
endif |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
int ar[] = { /* 1.41421356 */ | |
1, | |
2, 2, 2, 2, | |
3, | |
4, 4, 4, 4, | |
5, 5, |
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
# Input: | |
# {% verbatim tag:p %} | |
# $$a_1, a_2, a_3, \ldots$$ | |
# {% endverbatim %} | |
# | |
# Output: | |
# <p>$$a_1, a_2, a_3, \ldots$$</p> | |
# | |
# Author: Hiroshi Yuki. | |
# Description: The content between {% verbatim %} and {% endverbatim %} would be rendered 'as is'. |
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
*sample.txt* | |
sample.txt | |
*hyuki* | |
hyuki | |
vim:tw=78:fo=tcq2:isk=!-~,^*,^\|,^\":ts=8:ft=help:norl: |
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
*hyuki-help.txt* | |
ジャンプ <CTRL-]> | |
戻ってくる <CTRL-O> | |
|help-writing| ヘルプファイルの書き方 | |
|hyuki-latex| LaTeX用メモ | |
vim:tw=78:fo=tcq2:isk=!-~,^*,^\|,^\":ts=8:ft=help:norl: |
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/ruby | |
def analyze(encrypted_hex) | |
guess = { | |
'CB' => ' ', # 'A', | |
'9C' => 'e', # 'B', | |
'BA' => 't', # 'C', | |
'DA' => 'o', # 'D', | |
'0D' => 's', # 'E', | |
'24' => 'n', # 'F', |
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/ruby | |
# lsnote.rb | |
# カレントディレクトリ中の | |
# book-001.txt, book-002.txt, book-004.txt, book-005.txt | |
# teaching-003.txt, teaching-004.txt, teaching-005.txt, teaching-006.txt, teaching-009.txt | |
# writing-001.txt, writing-002.txt, writing-003.txt, writing-008.txt, writing-009.txt | |
# のようなファイルから、コーナー(book,teaching,writing)ごとに番号の最も大きなものを見つけ、 | |
# タイムスタンプ順に表示する。 |
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/ruby | |
class String | |
ALPHABET_LEN = 26 | |
def encode | |
s = self | |
out = '' | |
while m = s.slice(/(.)\1*/) | |
c = m[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
62 Afghanistan Angola Antarctica Austria Azerbaijan Barbados Belarus Botswana Burundi Canada China Cyprus Denmark Ecuador Eritrea Ethiopia Finland Georgia Germany Ghana Greece Guadeloupe Jordan Kiribati Liberia Libya Liechtenstein Macao Malawi Malaysia Martinique Mongolia Montenegro Montserrat Myanmar Namibia Narnia Niger Nigeria Oman Palau Poland Portugal Romania Rwanda Samoa Senegal Serbia Seychelles Slovakia Slovenia Somalia Sudan Sweden Switzerland Tajikistan Tokelau Turkey Uganda Ukraine Zambia Zimbabwe |
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
# 31foo.eps → 10foo.eps | |
# 35baa.eps → 30baa.eps | |
# のようにファイル名変換するシェルスクリプトを生成するRubyスクリプト | |
MAP = { | |
'31' => '10', | |
'32' => '10', | |
'33' => '20', | |
'34' => '20', | |
'35' => '30', |
OlderNewer