Discover gists
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
$ grep -i 'git' .emacs | |
(setq load-path (cons (expand-file-name "/usr/share/doc/git-core/contrib/emacs") load-path)) | |
(require 'vc-git) | |
(when (featurep 'vc-git) (add-to-list 'vc-handled-backends 'git)) | |
(require 'git) | |
(autoload 'git-blame-mode "git-blame" | |
"Minor mode for incremental blame for Git." t) |
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 | |
require 'pathname' | |
if ARGV.length < 1 | |
p 'please input dir name' | |
else | |
@dir = Pathname.new(ARGV.shift).expand_path | |
@join_name = ARGV.join('_') | |
end |
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
--- a/lib/jpmobile/mobile/abstract_mobile.rb | |
+++ b/lib/jpmobile/mobile/abstract_mobile.rb | |
@@ -48,6 +48,16 @@ module Jpmobile::Mobile | |
return false | |
end | |
+ # XXX: lib/jpmobile.rbのautoloadで先に各キャリアの定数を定義してるからできるよ | |
+ Jpmobile::Mobile.constants.each do |career| | |
+ next if self == Jpmobile::Mobile.const_get(career) | |
+ p career |
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
% easy_install --find-links http://www.pythonware.com/products/pil/ Imaging |
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
index bdbaa13..7daa7e4 100644 | |
--- a/lib/jpmobile/mobile/abstract_mobile.rb | |
+++ b/lib/jpmobile/mobile/abstract_mobile.rb | |
@@ -48,6 +48,15 @@ module Jpmobile::Mobile | |
return false | |
end | |
+ # XXX: lib/jpmobile.rbのautoloadで先に各キャリアの定数を定義してるからできるよ | |
+ Jpmobile::Mobile.constants.each do |career| | |
+ next if self == Jpmobile::Mobile.const_get(career) |
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
voda = Jpmobile::Mobile::Vodafone.new({}) | |
#=> #<Jpmobile::Mobile::Vodafone:0xb7bc0f18 @request={}> | |
voda.softbank? | |
#=> true | |
voda.vodafone? | |
#=> true | |
voda.jphone? |
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
diff --git a/lib/jpmobile/mobile/abstract_mobile.rb b/lib/jpmobile/mobile/abstract_mobile.rb | |
index bdbaa13..2f88f11 100644 | |
--- a/lib/jpmobile/mobile/abstract_mobile.rb | |
+++ b/lib/jpmobile/mobile/abstract_mobile.rb | |
@@ -48,6 +48,16 @@ module Jpmobile::Mobile | |
return false | |
end | |
+ # XXX: lib/jpmobile.rbのautoloadで先に各キャリアの定数を定義してるからできるよ | |
+ Jpmobile::Mobile.constants.each do |career| |
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
get_week_price_from_date(day_date, property) dfdfdf |
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
def solar_rebates(state, electricity, PVcost, PVcapacity, PVtype) | |
#electricity is the total electricity produced in a year in kWh | |
#PVcapacity is the total power of the installation in kW | |
#PVtype is "residential" or "non-residential" | |
@tax_credit = 0.0 | |
@rebate = 0.0 | |
@production_credit = 0.0 | |
@REC_sale = 0.0 | |
@residential_rebate = 0.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
yum install gcc kernel-devel | |
yum install libXtst-devel libXrender-devel | |
yum install xinetd | |
rpm -Uvh VMware-server-1.0.6-91891.i386.rpm | |
vmware-config.pl | |
OlderNewer