2011-09-14

Gist数据嵌入博客

下面嵌入的Ruby代码,来自 gist.github.com
#!/usr/bin/ruby
# Calculate the countdown for the meeting of the party.
require 'Date'
days=(DateTime.new(2012,10,15)-DateTime.now).ceil
if days >= 0
puts "Maybe #{days} days left."
else
puts "Passed for #{days.abs} days."
end
view raw countdown.rb hosted with ❤ by GitHub
访问 http://gotgit.github.com/gotgithub/ 阅读电子书《GotGitHub》。
blog comments powered by Disqus