Skip to content

Instantly share code, notes, and snippets.

View isnifer's full-sized avatar
🏠
Working from home

Anton Kuznetsov isnifer

🏠
Working from home
  • SpicyAI
  • Yerevan, Armenia
  • 06:59 (UTC +04:00)
View GitHub Profile
@isnifer
isnifer / gist:d55b9c26f286a96a0cc3d80e90f6d2d8
Created September 16, 2020 12:18 — forked from atc3/gist:e42ca11b07832ccbce02
Long Polling in React Native
/*--- LONG POLL --*/
/**
* Adapted from http://blog.gospodarets.com/fetch_in_action/
* many thanks!
*/
var MAX_WAITING_TIME = 5000;// in ms
var getJSON = function (params) {
var wrappedPromise = {};
/* eslint-disable */
import range from 'lodash/range'
// const r = range(1, 101)
const r = range(1, 10001)
const fromTo = to => range(2, to)
const simpleNumbers = r.reduce((memo, number) => {
[Appium] Welcome to Appium v1.8.0 (REV 9e74d8dd77b0f962ecabe0665db4255fe67a5810)
[Appium] Non-default server args:
[Appium] port: 30002
[Appium] Appium REST http interface listener started on 0.0.0.0:30002
[HTTP] --> GET /wd/hub/status
[HTTP] {}
[debug] [MJSONWP] Calling AppiumDriver.getStatus() with args: []
[debug] [MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.8.0","revision":"9e74d8dd77b0f962ecabe0665db4255fe67a5810"}}
[HTTP] <-- GET /wd/hub/status 200 25 ms - 121
[HTTP]
<?xml version="1.0" encoding="UTF-8"?><AppiumAUT><XCUIElementTypeApplication type="XCUIElementTypeApplication" name="Bottles Fine Wine" label="Bottles Fine Wine" enabled="true" visible="true" x="0" y="0" width="375" height="667">
<XCUIElementTypeWindow type="XCUIElementTypeWindow" enabled="true" visible="true" x="0" y="0" width="375" height="667">
<XCUIElementTypeOther type="XCUIElementTypeOther" enabled="true" visible="true" x="0" y="0" width="375" height="667">
<XCUIElementTypeOther type="XCUIElementTypeOther" name="Search Products 141 Pitman Street
Providence, RI, 02906 Delivery Zones bottlesfinewine.com (401) - 372 - 2030 Open Today 9:00AM – 10:00PM WINES BEERS SPIRITS BAR EXTRAS WELCOME HOME STORE PROFILE ABOUT" label="Search Products 141 Pitman Street
Providence, RI, 02906 Delivery Zones bottlesfinewine.com (401) - 372 - 2030 Open Today 9:00AM – 10:00PM WINES BEERS SPIRITS BAR EXTRAS WELCOME HOME STORE PROFILE ABOUT" enabled="true" visible="true" x="0" y="0" width="375" height="667">
[Appium] Welcome to Appium v1.8.0 (REV 8f09f94999b5f574fa02f57706e232e457877982)
[Appium] Non-default server args:
[Appium] port: 30002
[Appium] Appium REST http interface listener started on 0.0.0.0:30002
[HTTP] --> GET /wd/hub/status
[HTTP] {}
[debug] [MJSONWP] Calling AppiumDriver.getStatus() with args: []
[debug] [MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.8.0","revision":"8f09f94999b5f574fa02f57706e232e457877982"}}
[HTTP] <-- GET /wd/hub/status 200 23 ms - 121
[HTTP]
@isnifer
isnifer / changelog.md
Created March 21, 2018 15:27 — forked from ngoryachev/changelog.md
tipsi-stripe version 5.0.0 changelog

Changelog

AndroidPay modern api was used. Initialization flow breaking changes. Issue fixes. Some fancy make up was performed.

[5.0.0] - 2018-03-21

Breaking changes:

1) Initialization

before 5.0.0:

/* eslint-disable no-console */
export default function requestsLogger(params) {
const {
fullUrl,
method,
headers,
json,
response: { status, statusText },
requestType,
} = params
import { filter, union, keys } from 'lodash'
function changedKeys(o1, o2) {
return filter(union(keys(o1), keys(o2)), key => o1[key] !== o2[key]).map(key => ({
[key]: {
prev: o1[key],
next: o2[key],
},
}))
}
import helper from 'tipsi-appium-helper'
import twoFieldsScenario from './twoFieldsScenario'
import oneByOneFieldScenario from './oneByOneFieldScenario'
import hideKeyboard from '../hideKeyboard'
export default async function loginViaFacebook(username, password, t) {
const { driver, idFromXPath, select, platform } = helper
const usernameId = select({
ios: idFromXPath('//XCUIElementTypeTextField[1]'),

Инсталлятор автоматом подхватывает дефолтный язык ОС. Если нужен иной язык интерфейса перед установкой необходимо сменить язык ОС и регион на соответсвующий. После установки можно поменять обратно.

Если при запуске инсталлятора в OS X 10.12+ получаем «The installation cannot continue as the installer file may be damaged. Download the installer file again». То вводим в терминале следующую команду: Код:

sudo spctl --master-disable