Skip to content

Instantly share code, notes, and snippets.

View onodes's full-sized avatar

onodes onodes

  • japan
View GitHub Profile
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
@onodes
onodes / ca-complex-lib.c
Created July 10, 2012 21:26
ca-complex-lib.c
#include<stdio.h>
struct _complex{
double re;
double im;
};
typedef struct _complex complex;
void zprint(complex c);
@onodes
onodes / .vimrc
Last active January 20, 2018 13:37
vimrc file
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'
@onodes
onodes / TwitterCrawl.rb
Created April 23, 2012 10:33
twitter crawler for complex networks
require 'rspec'
require 'twitter'
class TwitterUser
def initialize()
@twitter = Twitter.new
end
def get_user(user_name)
begin
@onodes
onodes / .bashrc
Created November 7, 2011 17:19
.bashrc
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}"
}
@onodes
onodes / .gvimrc
Created October 25, 2011 09:23
gvimrc
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'
@onodes
onodes / .vimrc
Created October 13, 2011 11:50
vim config file
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'
@onodes
onodes / IDManagerForExcelVBA
Created November 3, 2010 18:37
IDManagerForExcelVBA
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
require 'rubygems'
require 'shell'
require 'sinatra'
get '/' do '
Balthazar music form
<form action="/" method="POST">
<input type="submit" name="submit" value="play"></form>
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'