Instead of the verbose setOnClickListener
:
RxView.clicks(submitButton).subscribe(o -> log("submit button clicked!"));
Observable
.just(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
import androidx.compose.foundation.Canvas | |
import androidx.compose.foundation.gestures.detectDragGestures | |
import androidx.compose.foundation.layout.Box | |
import androidx.compose.foundation.layout.fillMaxSize | |
import androidx.compose.foundation.layout.size | |
import androidx.compose.runtime.Composable | |
import androidx.compose.runtime.getValue | |
import androidx.compose.runtime.mutableStateOf | |
import androidx.compose.runtime.remember | |
import androidx.compose.runtime.setValue |
Pretty print tables summarizing properties of tensor arrays in numpy, pytorch, jax, etc. | |
Now on pip! `pip install arrgh` https://github.com/nmwsharp/arrgh |
<service | |
android:name=".NotificationService" | |
android:label="@string/notification_service_name" | |
android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE"> | |
<intent-filter> | |
<action android:name="android.service.notification.NotificationListenerService" /> | |
</intent-filter> | |
</service> |
import android.bluetooth.BluetoothAdapter | |
import android.content.BroadcastReceiver | |
import android.content.Intent | |
import android.content.Context | |
import dagger.android.AndroidInjection | |
import io.reactivex.Observable | |
import io.reactivex.subjects.BehaviorSubject | |
import javax.inject.Inject | |
Sub Station Alpha v4.00+ Script Format | |
1. 1. General information | |
2. 2. The [sections] of a Sub Station Alpha script | |
3. 3. The line types in a Sub Station Alpha script | |
4. 4. Header lines, [Script Info] section | |
5. 5. Style lines, [v4 Styles] section | |
6. 6. Dialogue event lines, [Events] section |
#!/bin/bash | |
# Clean up on exit | |
function finish { | |
rm -f expected found | |
} | |
trap finish EXIT | |
# How to parse JSON | |
JQ="jq --sort-keys" |
/** | |
_____ _____ _ | |
| __ \ / ____| | | | |
| | | | ___| | _ __ _ _ _ __ | |_ ___ _ __ | |
| | | |/ _ \ | | '__| | | | '_ \| __/ _ \| '__| | |
| |__| | __/ |____| | | |_| | |_) | || (_) | | | |
|_____/ \___|\_____|_| \__, | .__/ \__\___/|_| | |
__/ | | | |
|___/|_| | |
*/ |
// check version | |
node -v || node --version | |
// list locally installed versions of node | |
nvm ls | |
// list remove available versions of node | |
nvm ls-remote | |
// install specific version of node |
apply plugin: 'com.android.application' | |
android { | |
compileSdkVersion 21 | |
buildToolsVersion "21.1.2" | |
defaultConfig{ | |
minSdkVersion 14 | |
targetSdkVersion 21 | |
versionCode 101 |