Skip to content

Instantly share code, notes, and snippets.

View AdverseGecko3's full-sized avatar

Eric Barrero AdverseGecko3

View GitHub Profile
@Muyangmin
Muyangmin / DeviceDetectUtil.java
Created July 6, 2016 09:09
detect android device info, MIUI version, etc.
public static boolean isMiUi() {
return !TextUtils.isEmpty(getSystemProperty("ro.miui.ui.version.name"));
}
public static String getSystemProperty(String propName) {
String line;
BufferedReader input = null;
try {
java.lang.Process p = Runtime.getRuntime().exec("getprop " + propName);
input = new BufferedReader(new InputStreamReader(p.getInputStream()), 1024);
abstract class BaseViewHolder<T>(itemView: View) : RecyclerView.ViewHolder(itemView) {
abstract fun performBind(item :T?)
}
@Bluscream
Bluscream / ets2_options.md
Last active October 15, 2024 15:25
Euro Truck Simulator 2 Launch Options (Command Line Arguments)
Parameter Arguments Description Version Reference
-32bit launch directly in 32bit mode