Skip to content

Instantly share code, notes, and snippets.

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
{
"LastUpdateID": 3676614844,
"Games": [
{
"SID": 2,
"ID": 2356428,
"Comp": 352,
"Season": 13,
"Stage": 2,
"Group": 7,
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;
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))
public override bool Scan()
{
var mainScanTask = ScanMainPage();
var innerPagesScanTask = mainScanTask.ContinueWith(finishedTask => ScanGamePage()).Unwrap();
innerPagesScanTask.Wait();
return true;
}
CREATE TABLE B
(
User_Id BIGINT,
Item_Id BIGINT,
Searches BIGINT,
Clicks BIGINT,
Ctr BIGINT,
Item_Id_Num BIGINT
);
{
"_id" : "617a71d533b9d389791739d0",
"ScannerName" : "LSport.Push.Domain.Scanners.LSportPushRabbitMqInPlayScanner",
"LSportScanner.PushService.InPlay" : {
"Handler" : {
"SportTypes" : [
"football",
"basketball",
"tennis",
"ice hockey",
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();
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);
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;