This file contains hidden or 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
package utils; | |
import java.util.HashMap; | |
import java.util.Map; | |
/** | |
* Created by donlei on 2017/4/22. | |
*/ | |
class SMSMoneyNotEnoughExp extends Exception { |
This file contains hidden or 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/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." |