Skip to content

Instantly share code, notes, and snippets.

View photizzo's full-sized avatar

Ememobong Akpanekpo photizzo

View GitHub Profile
package life.league.genesis.core.theme.compose
import android.util.Log
import androidx.compose.foundation.layout.Column
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.text.font.FontWeight
package co.tractionapp.traction.main.pages.products
import android.app.Activity.RESULT_OK
import android.app.Dialog
import android.content.Intent
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.view.*
import co.tractionapp.data.room.objects.TractionProductCategory
@photizzo
photizzo / audio.json
Last active September 13, 2021 12:41
{
"results": [ {
"alternatives": [ {
"confidence": 0.7541675,
"transcript": "as we prepare for these meeting this is just",
"words": [ {
"endTime": "0.100s",
"startTime": "0s",
"word": "as"
}, {
package com.eyowo.android.report.ui.util
import android.widget.ImageView
import android.widget.TextView
import com.eyowo.android.core.utils.ext.isAvailable
import com.eyowo.android.core.utils.ext.isNotAvailable
import com.eyowo.android.core.utils.getTransactionsImage
import com.eyowo.android.core.utils.toTitleCase
import com.eyowo.android.report.R
import com.eyowo.android.report.model.ExpensesModel
@DisplayName("Upload Profile")
@Test
public void execute() throws Exception {
// set timeout for driver actions (similar to step timeout)
// driver.manage().timeouts().implicitlyWait(15000, TimeUnit.MILLISECONDS);
By by;
boolean booleanResult;
FileUploader.UploadFileToInputElementAction uploadFileToInputElementAction;
RandomDataGenerator.GenerateName generateName;
RandomDataGenerator.GenerateNumberInRange generateNumberInRange;
@photizzo
photizzo / AcceptAQuote.java
Created June 23, 2021 08:59
Quote test classes
package com.idealabs.Playground;
import io.testproject.sdk.drivers.ReportingDriver;
import io.testproject.sdk.drivers.web.RemoteWebDriver;
import io.testproject.sdk.interfaces.junit5.ExceptionsReporter;
import org.junit.jupiter.api.*;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeOptions;
@photizzo
photizzo / DisapprovingQuote.java
Created June 22, 2021 19:36
Disapprove and reject quote
package com.idealabs.Playground;
import io.testproject.sdk.drivers.ReportingDriver;
import io.testproject.sdk.drivers.web.RemoteWebDriver;
import io.testproject.sdk.interfaces.junit5.ExceptionsReporter;
import org.junit.jupiter.api.*;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.MethodSource;
import org.openqa.selenium.By;
// set timeout for driver actions (similar to step timeout)
driver.manage().timeouts().implicitlyWait(15000, TimeUnit.MILLISECONDS);
By by;
boolean booleanResult;
// 1. Navigate to '{{ApplicationURL}}'
// Navigates the specified URL (Auto-generated)
GeneratedUtils.sleep(500);
driver.navigate().to(ApplicationURL);
// set timeout for driver actions (similar to step timeout)
driver.manage().timeouts().implicitlyWait(15000, TimeUnit.MILLISECONDS);
By by;
boolean booleanResult;
// 1. Navigate to '{{ApplicationURL}}'
// Navigates the specified URL (Auto-generated)
GeneratedUtils.sleep(500);
driver.navigate().to(ApplicationURL);
package io.photizzo.station
fun optimalPoints(dataSet: Array<Pair<Int, Int>>): List<Int> {
// sort the pair according to the end points
var newDataSet = dataSet.sortedBy {
it.first < it.second
}
// create a list to store the common points in the segments
var points = mutableListOf<Int>()
var point =