Skip to content

Instantly share code, notes, and snippets.

@tonY1883
tonY1883 / dialog_picker.xml
Last active May 14, 2018 07:22
Android number picker dialog
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="4dp"
android:layout_marginLeft="4dp"
android:layout_marginRight="4dp"
android:layout_marginTop="16dp"
android:orientation="vertical">
RD C:\Temp /S /Q
MKDIR C:\Temp
@tonY1883
tonY1883 / opencv4android-contrib.sh
Last active February 1, 2019 05:37
A script for building OpenCV4Android SDK painlessly.
#!/bin/sh
OPENCV_VERSION='3.4.4'
WITH_CONTRIB=true
NDK_VERSION='17'
SDK_TOOLS_VERSION='25.2.5'
BUILD_TOOLS_VERSION='25.0.1'
PLATFORM_TOOLS_VERSION='21'
ANDROID_VERSION='21'
echo "==============================================="
@tonY1883
tonY1883 / a4.html
Created November 12, 2023 10:06
A4 HTML
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="UTF-8">
<style>
/* A4 document generic template, do not modify */
html {