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 perl | |
use warnings; | |
use strict; | |
use utf8; | |
use Encode; | |
use Finance::Quote; | |
my $q = Finance::Quote->new; | |
my %quotes = $q->fetch( 'bloomberg_stocks_index', "MXKO:IND" ); |
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
# encoding: utf-8 | |
require 'rubygems' | |
require 'spork' | |
Spork.prefork do | |
# Loading more in this block will cause your tests to run faster. However, | |
# if you change any configuration or code from libraries loaded here, you'll | |
# need to restart spork for it take effect. | |
# This file is copied to spec/ when you run 'rails generate rspec:install' |
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
# encoding: utf-8 | |
# spork を起動します | |
$spork_pid = spawn('spork') unless $spork_pid | |
# 15 秒待ちます.単に待っていると時間が長く感じるので,カウントダウンしています. | |
15.times do |i| | |
puts 15-i | |
sleep 1 | |
end | |
# autotest を起動します: -c (Red->Green の時に全テストを行わない),-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
require 'autotest/growl' | |
#require 'autotest/screen' | |
require 'autotest/timestamp' | |
Autotest.add_hook :initialize do |autotest| | |
autotest.instance_eval do | |
add_exception %r%^\./(?:db|tex|doc|log|public|script|tmp|vendor|spec/spec_helper.rb|spec/spork.watchr|config|\.autotest)% | |
end | |
autotest.add_mapping(/app\/([\/\w_]+)\.(?:rb|haml)$/) do |f, matched| |
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
if ENV['MY_RUBY_HOME'] && ENV['MY_RUBY_HOME'].include?('rvm') | |
begin | |
rvm_path = File.dirname(File.dirname(ENV['MY_RUBY_HOME'])) | |
rvm_lib_path = File.join(rvm_path, 'lib') | |
$LOAD_PATH.unshift rvm_lib_path | |
require 'rvm' | |
RVM.use_from_path! File.dirname(File.dirname(__FILE__)) | |
rescue LoadError | |
# RVM is unavailable at this point. | |
raise "RVM ruby lib is currently unavailable." |
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: filetype=screen | |
escape ^zz | |
vbell off | |
autodetach on | |
startup_message off | |
pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended." | |
defscrollback 10000 | |
altscreen on | |
defbce "on" |
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 | |
# Usage: $0 URL CERT CERT_PASSWD | |
require 'net/https' | |
require 'open-uri' | |
uri = URI.parse(ARGV[0]) | |
pkcs12 = | |
OpenSSL::PKCS12.new(File.read(ARGV[1]), ARGV[2] ? ARGV[2] : '') |
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
-- Updates from version 0.3.1 | |
-- WARNING: Make sure that all tables are using InnoDB engine!!! | |
-- If not, use: ALTER TABLE xxx ENGINE=InnoDB; | |
/* MySQL bug workaround: http://bugs.mysql.com/bug.php?id=46293 */ | |
/*!40014 SET FOREIGN_KEY_CHECKS=0 */; | |
ALTER TABLE `messages` DROP FOREIGN KEY `user_id_fk_messages`; | |
ALTER TABLE `cache` DROP FOREIGN KEY `user_id_fk_cache`; | |
ALTER TABLE `contacts` DROP FOREIGN KEY `user_id_fk_contacts`; |
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
From 052729d431019d273197cac9032aebfaaf33f1ee Mon Sep 17 00:00:00 2001 | |
From: poppen <[email protected]> | |
Date: Sat, 18 Feb 2012 17:53:42 +0900 | |
Subject: [PATCH] point retrieval updated (website changed) | |
--- | |
tsite.rb | 2 +- | |
1 files changed, 1 insertions(+), 1 deletions(-) | |
diff --git a/tsite.rb b/tsite.rb |