I hereby claim:
- I am rajatvaryani on github.
- I am rajatvaryani (https://keybase.io/rajatvaryani) on keybase.
- I have a public key ASD1nopYrMjmvjtXNHktKMwOgTznwlBC81M1UOrdNC5BYgo
To claim this, I am signing this object:
import java.util.Calendar; | |
//Discounter tells whether discount is applicable or not. | |
public class Discounter { | |
public boolean isDiscountApplicable() { | |
Calendar calendar = Calendar.getInstance(); | |
return calendar.get(Calendar.DAY_OF_WEEK) == 1 | |
&& calendar.get(Calendar.MONTH) != 11; | |
} | |
} |
import java.util.Calendar; | |
//Discounter tells whether discount is applicable or not. | |
public class Discounter { | |
public boolean isDiscountApplicable() { | |
Calendar calendar = Calendar.getInstance(); | |
return calendar.get(Calendar.DAY_OF_WEEK) == Calendar.SUNDAY | |
&& calendar.get(Calendar.MONTH) != Calendar.DECEMBER; | |
} | |
} |
I hereby claim:
To claim this, I am signing this object:
// ------------------ Proposed changes in helpers ---------------------------- | |
var rootCommand *cobra.Command | |
var lock sync.Mutex | |
func (p *HelpersImpl) RegisterCobraSlashCommand(c *cobra.Command, mcmd *model.Command) error { | |
rootCommand = c | |
if err := p.API.RegisterCommand(mcmd); err != nil { | |
return err |
// Change in the Plugin. | |
func (p *Plugin) ExecuteCommand(c *plugin.Context, args *model.CommandArgs) (*model.CommandResponse, *model.AppError) { | |
return p.Helpers.ExecuteCommand(c, args) | |
} | |
I hereby claim:
To claim this, I am signing this object:
public String statement() { | |
double totalAmount = 0; | |
int frequentRenterPoints = 0; | |
Enumeration rentals = _rentals.elements(); | |
String result = "Rental Record for " + getName() + "\n"; | |
while (rentals.hasMoreElements()) { | |
double thisAmount = 0; | |
Rental each = (Rental) rentals.nextElement(); | |
//determine amounts for each line | |
switch (each.getMovie().getPriceCode()) { |