Skip to content

Instantly share code, notes, and snippets.

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

Kyrylo Zapylaiev kyryloz

🏠
Working from home
View GitHub Profile
import android.graphics.Rect
import android.view.View
import androidx.recyclerview.widget.RecyclerView
class SpacingItemDecoration(
private val space: Int,
private val orientation: Int
) : RecyclerView.ItemDecoration() {
@kyryloz
kyryloz / findMatchingSimulator.js
Created December 3, 2019 06:30
Patched version of findMatchingSimulator which fixes the error "Could not find iPhone 6 simulator"
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
/**
* Takes in a parsed simulator list and a desired name, and returns an object with the matching simulator.
@kyryloz
kyryloz / runIOS.js
Created December 3, 2019 06:32
Patched version of runIOS.js which sets the "iPhone X" by default instead of "iPhone 6"
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const child_process = require('child_process');
const fs = require('fs');