Skip to content

Instantly share code, notes, and snippets.

View benchmark.txt
scenario 1gb 1gb_parallel_gc 2gb 2gb_parallel_gc 3gb 3gb_parallel_gc 4gb 4gb_parallel_gc
version Gradle 7.2 Gradle 7.2 Gradle 7.2 Gradle 7.2 Gradle 7.2 Gradle 7.2 Gradle 7.2 Gradle 7.2
tasks :app:assembleRelease :app:assembleRelease :app:assembleRelease :app:assembleRelease :app:assembleRelease :app:assembleRelease :app:assembleRelease :app:assembleRelease
value total execution time total execution time total execution time total execution time total execution time total execution time total execution time total execution time
warm-up build #1 131822 105723 96189 99986 103862 100922 100682 101413
warm-up build #2 86240 128020 73467
View CMakeLists.txt
cmake_minimum_required(VERSION 3.16)
project(untitled LANGUAGES CXX)
find_package(PkgConfig REQUIRED)
pkg_check_modules(icuuc REQUIRED IMPORTED_TARGET icu-uc)
add_executable(untitled main.cpp)
target_link_libraries(untitled PkgConfig::icuuc)
View recyclerview-selection.kt
class SelectionDetailsLookup<K : Any>(private val recyclerView: RecyclerView,
private val itemKeyProvider: ItemKeyProvider<K>) : ItemDetailsLookup<K>() {
override fun getItemDetails(e: MotionEvent): ItemDetails<K>? {
val view = recyclerView.findChildViewUnder(e.x, e.y)
if (view != null) {
val holder = recyclerView.getChildViewHolder(view)
return object : ItemDetails<K>() {
override fun getSelectionKey(): K? {
return itemKeyProvider.getKey(holder.adapterPosition)
View gist:d36ffe1ac10eeb2fd292c6f7063d4dd5
psl_registrable_domain(psl_builtin(), QUrl(mAnnounce).host().normalized(QString::NormalizationForm_KC).toLower().toUtf8());
View layout.xml
<?xml version="1.0" encoding="utf-8"?>
<androidx.core.widget.NestedScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scrollbars="vertical">
<LinearLayout
android:layout_width="match_parent"
View gist:233fbaa39c3f83b914ec8153b3575faa
F: No installations directory in /etc/flatpak/installations.d. Skipping
F: Opening system flatpak installation at path /var/lib/flatpak
F: Opening user flatpak installation at path /root/.local/share/flatpak
Looking for updates?
F: Fetching summary file for remote ?flathub?
F: Transaction: update flathub:runtime/org.freedesktop.Platform.GL.default/x86_64/19.08[$old]
F: Transaction: update flathub:runtime/org.kde.KStyle.Adwaita/x86_64/5.13[$old]
F: Transaction: update flathub:runtime/org.kde.Platform.Locale/x86_64/5.13[$old]
F: Transaction: update flathub:runtime/org.kde.Platform/x86_64/5.13[$old]
F: Transaction: update flathub:runtime/org.kde.Sdk.Locale/x86_64/5.13[$old]
View foo.cpp
while (!bookmark.isNull()) {
const QString udi = bookmark.metaDataItem(QStringLiteral("UDI"));
const QUrl url = bookmark.url();
if (!udi.isEmpty() || url.isValid()) {
QString appName = bookmark.metaDataItem(QStringLiteral("OnlyInApp"));
auto it = std::find_if(devices.begin(), devices.end(), [&udi](const Solid::Device& device) {
return device.udi() == udi;
});
bool deviceAvailable = (it != devices.end());
bool isStorageAccess = false;
View gist:860609066a292f7e5954f4f07e9a7c46
Settings for enp37s0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
View gist:92f2da77449d0d17fb813cd0bf185625
Settings for enp37s0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: Not reported
Advertised pause frame use: No
View gist:bfa3177605ca593b97d137cbe3ad8f88
03-20 18:59:36.842 I/Xposed ( 446): -----------------
03-20 18:59:36.842 I/Xposed ( 446): Starting Xposed version 87, compiled for SDK 23
03-20 18:59:36.842 I/Xposed ( 446): Device: Redmi 3S (Xiaomi), Android version 6.0.1 (SDK 23)
03-20 18:59:36.842 I/Xposed ( 446): ROM: land-userdebug 6.0.1 MOB31K 3655f3340b test-keys
03-20 18:59:36.842 I/Xposed ( 446): Build fingerprint: Xiaomi/land/land:6.0.1/MMB29M/7.2.9:user/release-keys
03-20 18:59:36.842 I/Xposed ( 446): Platform: arm64-v8a, 64-bit binary, system server: yes
03-20 18:59:36.842 I/Xposed ( 446): SELinux enabled: yes, enforcing: no
03-20 18:59:40.319 I/Xposed ( 446): -----------------
03-20 18:59:40.320 I/Xposed ( 446): Added Xposed (/system/framework/XposedBridge.jar) to CLASSPATH
03-20 18:59:40.735 I/Xposed ( 446): Detected ART runtime