Skip to content

Instantly share code, notes, and snippets.

Steve Korshakov ex3ndr

View GitHub Profile
ex3ndr / MakeAnimationsFast.kt
Created Sep 14, 2018
Hack that enables make render-thread based animations that will never stop even if ui thread is locked
View MakeAnimationsFast.kt
package com.openland.react.anim.hack
import android.util.Log
import android.view.View
import android.view.ViewPropertyAnimator
import java.lang.reflect.Constructor
import java.lang.reflect.Field
object MakeAnimationsFast {
View rn-async-render.ts
import Reconciler from 'react-reconciler';
var tagIndex = 0;
function createTag() {
return 't' + (tagIndex++);
const createReconciler = (onChanged: () => void) => Reconciler({
IS_FAILING=`systemctl is-failed miner.service`
if [ "$IS_FAILING" == "active" ]; then
echo "ok"
echo failed
exit 2
import sys
import os
added = set()
with open('include_framework/j2objc.h', 'w') as umbrella:
for root, directories, filenames in os.walk('include/'):
for filename in filenames:
if not filename.endswith(".h"):
ex3ndr / UITableView+NoRegister.swift
Created Sep 27, 2015
Extension to UITableView that allows to avoid explict cell classes registrations
View UITableView+NoRegister.swift
// Copyright (c) 2014-2015 Actor LLC. <>
import Foundation
// Cell automatic registration and dequeuing
private var registeredCells = "cells!"
ex3ndr / install_android_sdk
Created Nov 25, 2014
Installing Android SDK for build servers
View install_android_sdk
cd /usr/local/
tar xvf android-sdk_r23.0.2-linux.tgz
rm android-sdk_r23.0.2-linux.tgz
./android update sdk --no-ui --filter tools,platform-tools,build-tools-21.1.1,build-tools-21.1.0,build-tools-21.0.2,build-tools-21.0.1,build-tools-21.0.0,build-tools-20.0.0,build-tools-19.1.0,build-tools-19.0.3,build-tools-19.0.2,build-tools-19.0.1,build-tools-19.0.0,build-tools-18.1.1,build-tools-17.0.0,android-21,android-20,android-19,android-18,android-16,android-15,android-14,extra-android-m2repository,extra-android-support,extra-google-google_play_services,extra-google-m2repository
ex3ndr /
Created Dec 11, 2013
Android StickyHeaders padding temporary fix
import android.content.Context;
import android.util.AttributeSet;
import se.emilsjolander.stickylistheaders.StickyListHeadersListView;
* Created by ex3ndr on 11.12.13.
public class StickyFix extends StickyListHeadersListView {
You can’t perform that action at this time.