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
let isRTL: Bool = AppManager.sharedInstance()?.isCurrentUserLanguageRTL() ?? false | |
if isRTL | |
{ | |
self.outcomeImageView.leftAnchor.constraint(equalTo: backgroundView.leftAnchor, constant: -35).isActive = true | |
} | |
else | |
{ | |
self.outcomeImageView.rightAnchor.constraint(equalTo: backgroundView.rightAnchor, constant: -35).isActive = true | |
} | |
self.outcomeImageView.bottomAnchor.constraint(equalTo: backgroundView.bottomAnchor, constant: -22).isActive = true |
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
{ | |
"LastUpdateID": 3676614844, | |
"Games": [ | |
{ | |
"SID": 2, | |
"ID": 2356428, | |
"Comp": 352, | |
"Season": 13, | |
"Stage": 2, | |
"Group": 7, |
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
else if([cell.contentCellType isEqualToString: NSStringFromClass([PreGameWinningProbabilityHeaderCell class])]) | |
{ | |
PreGameWinningProbabilityHeaderCell *preGameWinningProbability = (PreGameWinningProbabilityHeaderCell *)cell; | |
PreGameWinningProbabilityHeaderPanelView *preGameWinningProbabilityHeaderPanelView = (PreGameWinningProbabilityHeaderPanelView *)preGameWinningProbability.contentPanelView; | |
PreGameWinningProbabilityHeaderDataItem *dataItem = (PreGameWinningProbabilityHeaderDataItem *)preGameWinningProbability.dataItem; | |
PreGameWinningProbabilityHeaderPanelDataItem *panelItem = (PreGameWinningProbabilityHeaderPanelDataItem *)dataItem.panelDataItem; | |
BOOL isExtended = panelItem.isExtended; |
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
str = "Id,name\\n1,Jessy\\n2,NULL\\n" | |
def removeNull(str): | |
splited = str.split(',') | |
toReturn = ','.join([word for word in splited if 'null' not in word.lower()]) | |
return toReturn | |
print(removeNull(str)) |
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
public override bool Scan() | |
{ | |
var mainScanTask = ScanMainPage(); | |
var innerPagesScanTask = mainScanTask.ContinueWith(finishedTask => ScanGamePage()).Unwrap(); | |
innerPagesScanTask.Wait(); | |
return true; | |
} |
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
CREATE TABLE B | |
( | |
User_Id BIGINT, | |
Item_Id BIGINT, | |
Searches BIGINT, | |
Clicks BIGINT, | |
Ctr BIGINT, | |
Item_Id_Num BIGINT | |
); |
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
{ | |
"_id" : "617a71d533b9d389791739d0", | |
"ScannerName" : "LSport.Push.Domain.Scanners.LSportPushRabbitMqInPlayScanner", | |
"LSportScanner.PushService.InPlay" : { | |
"Handler" : { | |
"SportTypes" : [ | |
"football", | |
"basketball", | |
"tennis", | |
"ice hockey", |
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
if (UpdateSequence >= lngMinUpdateID) | |
{ | |
bGetAllGames = false; | |
// Get the games and notifications | |
List<CGameDTO> arrGames = GetGamesUpdates(arrUpdates, UpdateSequence, LangID, TimeZone, groupCategory, | |
Countries, Competitions, Competitors, Games, StartDateRange, EndDateRange, FullGameCenter, | |
UserCountry, WithExpandedColumns, filtersRelationOperator, withExpandedStats); | |
var sportTypeIds = arrGames.Select(g => g.SportTypeID).Distinct().ToArray(); |
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
if (update.CreateGame && createGamePriority != DataSourcesDAL.EPriorityLevel.Ignore) | |
{ | |
bool bWasDeleted = IsDeleted; | |
IsDeleted = false; | |
if (bWasDeleted && createGamePriority != DataSourcesDAL.EPriorityLevel.Neutral) | |
{ | |
CreateUpdate(update, EUpdateTypes.NewGame); | |
GamesDal.UpdateGameLastUpdateTime(ID, DateTime.UtcNow); |
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
using System.Collections.ObjectModel; | |
using System.Diagnostics; | |
using Common.Dtos; | |
using Common.Models; | |
using Microsoft.Extensions.Configuration; | |
using Microsoft.Extensions.Hosting; | |
using Microsoft.Extensions.Logging; | |
using OpenQA.Selenium; | |
using OpenQA.Selenium.Chrome; | |
using OpenQA.Selenium.Firefox; |
OlderNewer