Skip to content

Instantly share code, notes, and snippets.

@ivantay2003
ivantay2003 / variousCountryListFormats.js
Created September 12, 2021 11:28 — forked from incredimike/variousCountryListFormats.js
List of Countries in various Javascript data structures: Alphabetical country lists & Country data objects.
// Lists of countries with ISO 3166 codes, presented in various formats.
// Last Updated: July 30, 2020
// If you're using PHP, I suggest checking out:
// https://github.com/thephpleague/iso3166
// or Laravel: https://github.com/squirephp/squire
//
// JS developers can check out:
// https://www.npmjs.com/package/iso3166-2-db
//
@ivantay2003
ivantay2003 / Tab.js
Created May 22, 2021 05:48 — forked from diegocasmo/Tab.js
Source code for implementing a React <Tabs/> component.
import React, {PropTypes} from 'react';
export const Tab = (props) => {
return (
<li className="tab">
<a className={`tab-link ${props.linkClassName} ${props.isActive ? 'active' : ''}`}
onClick={(event) => {
event.preventDefault();
props.onClick(props.tabIndex);
}}>
{
"capabilities":
[
{
"deviceName": "iPhone 6 Plus",
"platformVersion": "12.4.4”,
"maxInstances": 1,
"platformName": "iOS",
"browserName": "Safari"
}
@ivantay2003
ivantay2003 / gist:f8f3fac52f226a769f2a67914747fb18
Created April 20, 2020 01:55
Appium log with selenium grid . Grid ip is 192.168.1.1:4444
[debug] [Appium] Appium successfully registered with the grid on http://192.168.1.1:4444
[debug] [Appium] Grid registration error: Cannot find proxy with ID =http://0.0.0.0:4722 in the registry.
[debug] [Appium] Appium successfully registered with the grid on http://192.168.1.1:4444
[debug] [Appium] Grid registration error: Cannot find proxy with ID =http://0.0.0.0:4722 in the registry.
[debug] [Appium] Appium successfully registered with the grid on http://192.168.1.1:4444
[Appium] Welcome to Appium v1.9.1
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> GET /wd/hub/sessions
[HTTP] {}
[GENERIC] Calling AppiumDriver.getSessions() with args: []
[GENERIC] Responding to client with driver.getSessions() result: []
[HTTP] <-- GET /wd/hub/sessions 200 6 ms - 40
[HTTP]
[HTTP] --> POST /wd/hub/session
[HTTP] {"desiredCapabilities":{"automationName":"XCuiTest","bundleId":"com.homage.carepro","deviceName":"iPhone","forceMjsonwp":true,"noReset":true,"platformName":"IOS","platformVersion":"12.1.2","udid":"UUID","xcodeOrgId":"XXXX","xcodeSigningId":"iPhone Developer","newCommandTimeout":0,"connectHardwareKeyboard":true}}
@ivantay2003
ivantay2003 / gist:18df4b05ec1e18a94f7f71e84990be8f
Created December 23, 2018 15:18
Appium 1.9.1 showIOSLog true
[Appium] Welcome to Appium v1.10.0
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
2018-12-23 23:12:44.413 Appium[12331:199297] *** WARNING: Textured window <AtomNSWindow: 0x7fbd14e63420> is getting an implicitly transparent titlebar. This will break when linking against newer SDKs. Use NSWindow's -titlebarAppearsTransparent=YES instead.
[HTTP] --> GET /wd/hub/sessions
[HTTP] {}
[debug] [GENERIC] Calling AppiumDriver.getSessions() with args: []
[debug] [GENERIC] Responding to client with driver.getSessions() result: []
[HTTP] <-- GET /wd/hub/sessions 200 7 ms - 40
[HTTP]
[23:12:57:0108] [info] Retrieving session for window with id: 2
The server is waiting for all connections to close
[Appium] Welcome to Appium v1.10.0
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> GET /wd/hub/sessions
[HTTP] {}
[GENERIC] Calling AppiumDriver.getSessions() with args: []
[GENERIC] Responding to client with driver.getSessions() result: []
[HTTP] <-- GET /wd/hub/sessions 200 6 ms - 40
@ivantay2003
ivantay2003 / image-grid.md
Created November 29, 2018 02:50 — forked from trusktr/image-grid.md
Image grid in Markdown
screen shot 2017-08-07 at 12 18 15 pm blah screen shot 2017-08-07 at 12 18 15 pm screen shot 2017-08-07 at 12 18 15 pm
@ivantay2003
ivantay2003 / chai-expect.md
Created August 29, 2018 11:39 — forked from patocallaghan/chai-expect.md
Chai Expect Assertion library examples. From http://chaijs.com/api/bdd/ #chai #javascript #expect

##Chai Expect

##Language Chains

  • to
  • be
  • been
  • is
  • that
  • and
  • have
@ivantay2003
ivantay2003 / ultimate-ut-cheat-sheet.md
Created August 29, 2018 11:37 — forked from yoavniran/ultimate-ut-cheat-sheet.md
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai and Sinon

The Ultimate Unit Testing Cheat-sheet

For Mocha, Chai and Sinon

using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies