Skip to content

Instantly share code, notes, and snippets.

@ngoryachev
ngoryachev / mocked.log
Created March 8, 2018 06:56
ENV = TEST, deviceSupportsAndroidPay is (1) mocked or (2) presents (1 is ok, 2 is failed)
: (2.0) StripeModule()
// инициализация идентична
: (3.0) init()
: (3.1) exist(options, ANDROID_PAY_MODE, PRODUCTION).toLowerCase().equals(test)
: (8.0) paymentRequestWithAndroidPay()
: (8.1) paymentRequestWithAndroidPay(): getCurrentActivity() != null
// отличия
: (11.0) startApiClientAndAndroidPay()
@ngoryachev
ngoryachev / changelog.md
Last active March 21, 2018 15:42
tipsi-stripe version 5.0.0 changelog

Changelog

[5.0.0] - 2018-03-21

Breaking changes:

1) Initialization

before 5.0.0:

// store.js
import { createStore, combineReducers } from 'redux'
import {
users,
} from '../ducks/user'
export const initialState = {}
export const store = createStore(users, initialState)
@ngoryachev
ngoryachev / main.dart
Last active February 5, 2021 21:10
Print Tree Dart: Loop vs No-Loop Implementation (`¯\_(ツ)_/¯`)
class Node {
final String text;
final List<Node> nodes;
Node({this.text, this.nodes = const []});
static void _printNodeLoop(Node node, [String space = '']) {
print('$space${node.text}');
node.nodes.forEach((n) => _printNodeLoop(n, '${space}__'));