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
//Convert date in one time zone to other time zone | |
public static Date convertTimeZone(Date date,String timeZoneFrom,String timeZoneTo){ | |
Date utcDate = convertDateFromUserTimeZoneToUTC(date,timeZoneFrom); | |
TimeZone timeZone = TimeZone.getTimeZone(timeZoneTo); | |
return changeTimeZoneOfUTCDate(utcDate,timeZone); | |
} | |
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
/** | |
* @author Jagmeet | |
* @author anirudh | |
*/ | |
@Component | |
@Validated | |
public class MealDayRestService { | |
private static final String MEAL_DAY_ID = "mealDayId"; | |
private static final String USER_ID = "userId"; |
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
#!/bin/bash | |
rows=$(tput lines) | |
cols=$(tput cols) | |
colors=(red green blue purple cyan yellow brown) | |
lock_file= | |
lock_file_base=/tmp/$(basename $0 .sh) | |
multiple=0 | |
if [[ "$1" ]]; then |
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
hey lo hey lo |
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
public class EndpointA { | |
private UserService userService; | |
private AService aService; | |
/*constructor */ | |
public EndpointA(UserService userService,AService aService){ | |
this.userService = userService; | |
this.aService= aService; | |
} | |
} |
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
package com.fidelity.service; | |
import java.util.Arrays; | |
import java.util.Map; | |
import java.util.HashMap; | |
import java.util.Scanner; | |
import java.util.regex.Pattern; | |
import org.springframework.boot.CommandLineRunner; | |
import org.springframework.stereotype.Component; |