org.gradle.jvmargs=-Xmx4048m -XX:MaxPermSize=1024m
org.gradle.parallel=true
kotlin.parallel.tasks.in.project=true
kapt.include.compile.classpath=false
kapt.use.worker.api=true
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function check() { | |
if [ `git rev-parse HEAD` == `git rev-parse "$1"` ] | |
then | |
# don't compare with the HEAD | |
return | |
fi | |
base=`git merge-base HEAD "$1"` | |
if [ "$base" == `git rev-parse "$1"` ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.chmielowski.rxtest; | |
import android.os.Bundle; | |
import android.support.v7.app.AppCompatActivity; | |
import android.widget.TextView; | |
import com.annimon.stream.Stream; | |
import com.jakewharton.rxbinding.view.RxView; | |
import com.jakewharton.rxbinding.widget.RxTextView; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
while true; do | |
git log -n 1 | grep Date >> loc | |
cloc . | grep Java >> loc | |
git checkout HEAD^1 | |
done | |
cat loc | grep Java | awk '{ print $5 }' | |
cat loc | grep Date: | awk '{ print $3" "$4" "$5" "$6 }' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.chmielowski.recruitment | |
import org.junit.Assert.assertFalse | |
import org.junit.Assert.assertTrue | |
import org.junit.Test | |
import java.time.Duration | |
import java.time.LocalDateTime | |
import java.time.Period | |
import java.time.format.DateTimeFormatter | |
import java.util.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git for-each-ref | cut -f2 -d' ' | cut -f2 | grep --color=never heads | cut -f3 -d'/' | while read br; do git branch -d $br; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adb tcpip 5555 | |
adb shell "ifconfig | grep -A1 wlan0 | tail -n1 | cut -d\: -f2 | cut -f1 -d' '" | |
adb connect 172.27.27.208:5555 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun main() { | |
val shared = Observable.interval(1, TimeUnit.SECONDS) | |
.doOnSubscribe { println("Subscribed.") } | |
.doOnDispose { println("Disposed.") } | |
.replay() // or .publish() | |
.autoConnect() // or .refcount() | |
Thread { | |
shared | |
.take(3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="horizontal"> | |
<LinearLayout | |
android:layout_width="0dp" | |
android:layout_height="match_parent" | |
android:layout_weight="1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.chmielowski.translatetest | |
import android.content.ActivityNotFoundException | |
import android.content.Context | |
import android.content.Intent | |
import android.content.pm.ActivityInfo | |
import android.content.pm.ResolveInfo | |
import android.os.Bundle | |
import androidx.activity.ComponentActivity | |
import androidx.activity.compose.setContent |
OlderNewer