Skip to content

Instantly share code, notes, and snippets.

View ktchernov's full-sized avatar

Konstantin Tchernov ktchernov

View GitHub Profile
@NikolaDespotoski
NikolaDespotoski / BottomNavigationBehavior.java
Created October 20, 2016 17:16
Updated bottom navigation behavior for BottomNavigationView
import android.content.Context;
import android.content.res.TypedArray;
import android.os.Build;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.design.widget.CoordinatorLayout;
import android.support.design.widget.Snackbar;
import android.support.v4.view.ViewCompat;
import android.support.v4.view.ViewPropertyAnimatorCompat;
@mr-archano
mr-archano / screenrecord.sh
Created April 17, 2016 08:46 — forked from tasomaniac/screenrecord.sh
Screen Record for Android
#!/bin/sh
set -e
if [ -z "$1" ]; then
shot_path=$(date +%Y-%m-%d-%H-%M-%S).mp4
else
shot_path="$*"
fi
@rbsgn
rbsgn / TC agent as a service with Xcode 6.md
Last active October 25, 2020 21:25
TeamCity build agent as a launchd service done right

There are several complaints regarding TeamCity build agent can't run tests in iOS Simulator all gathered in issue TW-38954 Agent started automatically on Yosemite could not launch iOS simulator.

Official workaround from JetBrains found on StackOverflow for this issue looks like this:

$ sh buildAgent/bin/agent.sh start

This means we should convert from automatic launch by launchd to manual via Terminal.app. Side effect of this is no relaunch on agent crash or system reboot.

Further investigation on that issue has led me to the Apple Developer Forums topic where Apple engineer claims following about xcodebuild: