Skip to content

Instantly share code, notes, and snippets.

View wzieba's full-sized avatar
🏎️

Wojciech Zięba wzieba

🏎️
View GitHub Profile
@wzieba
wzieba / merge-gradle-profiler-results.py
Created January 24, 2024 16:27 — forked from gabrielfeo/merge-gradle-profiler-results.py
Compare separate gradle-profiler (v0.17.0) benchmark results by merging them into a single HTML
#!/usr/bin/env python3
from collections import namedtuple
import os
import shutil
import re
import json
import argparse
parser = argparse.ArgumentParser(
@wzieba
wzieba / Boxer.java
Last active October 7, 2018 07:56 — forked from pasmat/Boxer.java
Data-binded values that are boxed(such as ones that come from Kotlin, as there's no primitive types in Kotlin..) requires safe unboxing, so there's no NPE(null pointer exception) when binding data. Theres a method for this safeUnbox inside Android SDK, however this doesn't support two-way data binding. Therefore we have to define these two-way s…
package fi.matalamaki.util;
import androidx.databinding.InverseMethod;
/**
* Data-binded values that are boxed(such as ones that come from Kotlin,
* as there's no primitive types in Kotlin..) requires safe unboxing,
* so there's no NPE(null pointer exception) when binding data.
*
* Theres a method for this safeUnbox inside Android SDK,