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
cd /root | |
wget http://ftp.gnu.org/gnu/readline/readline-6.2.tar.gz | |
tar zxvf readline-6.2.tar.gz | |
cd readline-6.2 | |
./configure | |
make | |
make install | |
cd /root | |
wget http://utopia.knoware.nl/~hlub/rlwrap/rlwrap-0.37.tar.gz | |
tar zxvf rlwrap-0.37.tar.gz |
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> | |
struct _complex{ | |
double re; | |
double im; | |
}; | |
typedef struct _complex complex; | |
void zprint(complex c); |
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
filetype off " required! | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
Bundle 'gmarik/vundle' | |
Bundle 'vim-ruby/vim-ruby' | |
Bundle 'tpope/vim-rails.git' | |
Bundle 'tpope/vim-fugitive' | |
Bundle 'tpope/vim-cucumber' | |
Bundle 'tpope/vim-endwise' | |
Bundle 'tpope/vim-vividchalk' |
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
require 'rspec' | |
require 'twitter' | |
class TwitterUser | |
def initialize() | |
@twitter = Twitter.new | |
end | |
def get_user(user_name) | |
begin |
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
alias gvim='env LANG=ja_JP.UTF-8 open -a /Applications/MacVim.app "$@"' | |
ejr() { open "http://eow.alc.co.jp/"$1"/UTF-8/"; } | |
ggr() { | |
query="" | |
for q in $@ | |
do | |
query="${query}${q}+" | |
done | |
open "http://www.google.co.jp/search?q=${query}" | |
} |
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
iset nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
Bundle 'rails.vim' | |
Bundle 'ruby.vim' | |
Bundle 'python.vim' | |
Bundle 'Python-2.x-Standard-Library-Reference' | |
Bundle 'scala.vim' |
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 nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
Bundle 'rails.vim' | |
Bundle 'ruby.vim' | |
Bundle 'python.vim' | |
Bundle 'Python-2.x-Standard-Library-Reference' | |
Bundle 'scala.vim' |
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
Private Sub CommandButton1_Click() | |
Dim ie As Object | |
Dim data(20) As String | |
Dim i As Integer | |
For i = 1 To 20 | |
data(i) = Cells(i, 1) | |
Next i | |
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
require 'rubygems' | |
require 'shell' | |
require 'sinatra' | |
get '/' do ' | |
Balthazar music form | |
<form action="/" method="POST"> | |
<input type="submit" name="submit" value="play"></form> |
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
require 'rubygems' | |
require 'mini_exiftool' | |
require 'pp' | |
dir = ARGV[0].chomp | |
file_array = Dir::glob(dir + "*.{jpg,JPG,NEF}") | |
file_instance = file_array.map{|filename| MiniExiftool.new(filename) } | |
puts "file scan" | |
file_date_array = file_instance.map{|file| file.DateTimeOriginal} | |
puts 'get file DateTime' |
NewerOlder