Skip to content

Instantly share code, notes, and snippets.

Avatar

Rakesh ravening

View GitHub Profile
View dividend_ex_date.py
import pandas, requests, datetime, calendar
class dividend_calendar:
#class attributes
calendars = []
url = 'https://api.nasdaq.com/api/calendar/dividends'
hdrs = {'Accept': 'application/json, text/plain, */*',
'DNT': "1",
'Origin': 'https://www.nasdaq.com/',
'Sec-Fetch-Mode': 'cors',
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0)'}
View ManagementServerImpl.java
UserVmDetailVO userVmDetailVO = _UserVmDetailsDao.findDetail(vm.getId(), ApiConstants.BootType.UEFI.toString());
if (userVmDetailVO != null) {
s_logger.info(" Live Migration of UEFI enabled VM : " + vm.getInstanceName() + " is not supported");
if ("legacy".equalsIgnoreCase(userVmDetailVO.getValue()) || "secure".equalsIgnoreCase(userVmDetailVO.getValue())) {
// Return empty list.
return new Ternary<Pair<List<? extends Host>, Integer>, List<? extends Host>, Map<Host, Boolean>>(new Pair<List<? extends Host>,
Integer>(new ArrayList<HostVO>(), new Integer(0)), new ArrayList<Host>(), new HashMap<Host, Boolean>());
}
}