Skip to content

Instantly share code, notes, and snippets.

View iamporus's full-sized avatar
🏔️
Working from home, wishing to be in mountains

Purushottam Pawar iamporus

🏔️
Working from home, wishing to be in mountains
  • Pune, India
View GitHub Profile
@iamporus
iamporus / favoriteItemListTile.dart
Last active July 11, 2020 14:05
Flutter Widget: FavoriteItemListTile - A Custom widget implementation to create a list tile which can be marked as favorite or not by the user.
import 'package:flutter/material.dart';
/// A custom [FavoriteItemListTile] widget.
///
/// The widget is composed on an [Text] and [Icon]. Tapping on the widget shows
/// a colored [InkWell] animation.
/// Can be used to create a list tile which can be marked as favorite or not by the user.
class FavoriteItemListTile extends StatelessWidget {
final String itemTitle;
final bool isFavorite;
@iamporus
iamporus / Snippet.java
Last active August 5, 2020 14:46
Very dirty and brief representation of actual source code. Here I'm creating multiple threads depending upon number of connected devices and creating respective AppiumDriver instances inside them to execute tests parallely.
package com.mmt.autoqa.core;
import com.mmt.autoqa.dataengine.ExcelDataEngine;
import com.mmt.autoqa.models.TestCaseData;
import io.appium.java_client.AppiumDriver;
import io.appium.java_client.service.local.AppiumDriverLocalService;
import io.appium.java_client.service.local.AppiumServiceBuilder;
import io.appium.java_client.service.local.flags.GeneralServerFlag;
import org.openqa.selenium.*;
import org.openqa.selenium.remote.DesiredCapabilities;