Skip to content

Instantly share code, notes, and snippets.

View vikramvi's full-sized avatar
🚀
React.js, React Native Developer + 4 startup experiences

Vikram Ingleshwar vikramvi

🚀
React.js, React Native Developer + 4 startup experiences
View GitHub Profile
@vikramvi
vikramvi / gist:3c2fdfec28902ea383218dfbe87b00bd
Created June 30, 2023 12:11
Non working doc new JSONObject(doc.text());
<html>
<head></head>
<body>
<div class="key-ration-section-title finances-tab-click p-t-50">
<ul class="nav nav-tabs">
<li><a href="#INCOME-STATEMENT"> Income Statement </a></li>
<li><a href="#LIABILITIES"> Liabilities </a></li>
<li><a href="#ASSETS"> Assets </a></li>
<li><a href="#CASHFLOW"> Cashflow </a></li>
<li><a href="#RATIOS"> Ratios </a></li>
@vikramvi
vikramvi / gist:fb883bb199e1990582b511edb8ccfa49
Created June 30, 2023 12:09
working doc new JSONObject(doc.text());
<html>
<head></head>
<body>
{"security_id":42383,"essential_checks_z_score":"
<h4>Altman Z-Score&lt;\/h4&gt;\r\n
<div class="\&quot;altman-z-score-modified-prpgress" essential-checks\>
\r\n
<div class="\&quot;investment-bar\&quot;">
\r\n
<div class="\&quot;progress-bar" progress-high-bg\>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>vikram_stocks_mf_group_id</groupId>
<artifactId>vikram_stocks_mf_artifact_id</artifactId>
<version>0.0.1-SNAPSHOT</version>
<build>
@vikramvi
vikramvi / gist:8cefb005fdfcaaa70e368ff0833004f0
Created October 29, 2018 10:30
node version 10 appium installation erros
npm install -g appium
/usr/local/bin/appium -> /usr/local/lib/node_modules/appium/build/lib/main.js
> [email protected] install /usr/local/lib/node_modules/appium/node_modules/appium-chromedriver
> node install-npm.js
[11:29:13] [Chromedriver Install] Installing Chromedriver version '2.42' for platform 'mac' and architecture '64'
[11:29:13] [Chromedriver Install] Opening temp file to write 'chromedriver_mac64' to...
[11:29:13] [Chromedriver Install] Opened temp file '/var/folders/s5/s4vmm8jx3fqgt9s1tnn_0_v40000gn/T/2018929-16861-jjiix1.7hyx/chromedriver_mac64.zip'
[11:29:13] [Chromedriver Install] Downloading https://chromedriver.storage.googleapis.com/2.42/chromedriver_mac64.zip...
@vikramvi
vikramvi / gist:dff50f7e0ddb458c4d7f7d6407ed5390
Created October 29, 2018 07:17
test execution stalls and no timeout happens
[debug] [ADB] Running '/Users/vikramanna/Library/Android/sdk/platform-tools/adb -P 5037 -s 192.168.56.101\:5555 push /var/folders/s5/s4vmm8jx3fqgt9s1tnn_0_v40000gn/T/com.totalwine.app.dev/strings.json /data/local/tmp'
[debug] [ADB] Checking app cert for /Users/vikramanna/Documents/vikram/JoeUSA/AppiumSerenityPOC/app-releaseDev.apk
[debug] [ADB] Starting '/Users/vikramanna/Library/Android/sdk/build-tools/27.0.3/apksigner' with args '["verify","--print-certs","/Users/vikramanna/Documents/vikram/JoeUSA/AppiumSerenityPOC/app-releaseDev.apk"]'
[debug] [ADB] apksigner stdout: Signer #1 certificate DN: [email protected], CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US
[debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc
[debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81
[debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87
[debug] [ADB] WARNING: MET
@vikramvi
vikramvi / gist:a56f739aff1d45300469c70200a79803
Created October 29, 2018 06:51
appium installation erros
/usr/local/bin/appium -> /usr/local/lib/node_modules/appium/build/lib/main.js
> [email protected] install /usr/local/lib/node_modules/appium/node_modules/appium-chromedriver
> node install-npm.js
[07:48:18] [Chromedriver Install] Installing Chromedriver version '2.42' for platform 'mac' and architecture '64'
[07:48:18] [Chromedriver Install] Opening temp file to write 'chromedriver_mac64' to...
[07:48:18] [Chromedriver Install] Opened temp file '/var/folders/s5/s4vmm8jx3fqgt9s1tnn_0_v40000gn/T/2018929-8383-1butz7t.xohv/chromedriver_mac64.zip'
[07:48:18] [Chromedriver Install] Downloading https://chromedriver.storage.googleapis.com/2.42/chromedriver_mac64.zip...
[07:48:19] [Chromedriver Install] Writing binary content to /var/folders/s5/s4vmm8jx3fqgt9s1tnn_0_v40000gn/T/2018929-8383-1butz7t.xohv/chromedriver_mac64.zip...
@vikramvi
vikramvi / CustomExpectedConditions.java
Created October 8, 2018 06:42 — forked from mt1729/CustomExpectedConditions.java
Some Selenium/Appium helpers to use with PageFactory
import org.openqa.selenium.NoSuchElementException;
import org.openqa.selenium.StaleElementReferenceException;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.ExpectedCondition;
/**
* Define custom ExpectedConditions here.
*/
public final class CustomExpectedConditions {
@vikramvi
vikramvi / imposter-handbook-links.md
Created April 23, 2018 15:24 — forked from milmazz/imposter-handbook-links.md
Useful links found in The Imposter's Handbook by Rob Conery
@vikramvi
vikramvi / gist:90f04717baf5bb7f348bb74ab75d8882
Created March 14, 2018 16:43
lh1.js ( not working - this is as per documentation )
const lighthouse = require('lighthouse');
const chromeLauncher = require('chrome-launcher');
// process.env.args = " --veiw --disable-network-throttling --disable-cpu-throttling"
// console.log(process.env.args);
function launchChromeAndRunLighthouse(url, opts, config = null) {
return chromeLauncher.launch({chromeFlags: opts.chromeFlags}).then(chrome => {
opts.port = chrome.port;
console.log(lighthouse)
return lighthouse(url, opts, config).then(results => {
@vikramvi
vikramvi / gist:1a65486153cf7a62d6bf6a000de799c0
Last active March 14, 2018 16:47
lh.js ( working script - running command line using node-cmd package )
const lighthouse = require('lighthouse');
const nodeCmd = require('node-cmd');
const opts = {
disableDeviceEmulation: true,
disableCpuThrottling: true,
disableNetworkThrottling: true,
view: true
};