Skip to content

Instantly share code, notes, and snippets.

View huhuang03's full-sized avatar
😀
please focus

Aha huhuang03

😀
please focus
View GitHub Profile
@huhuang03
huhuang03 / reg
Created September 9, 2022 15:07
windows map cap to ctrl
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00
FROM ubuntu:14.04
ARG username=root
RUN sed -i s@/archive.ubuntu.com/@/mirrors.163.com/@g /etc/apt/sources.list
RUN apt-get update && apt-get install -y git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache libgl1-mesa-dev libxml2-utils xsltproc unzip python openjdk-7-jdk
RUN apt install -y vim
ENV HTTP_PROXY="http://192.168.0.5:7890"
import 'package:flutter/material.dart';
import 'package:reorderable_grid_view/reorderable_grid_view.dart';
class TestIssue24 extends StatefulWidget {
TestIssue24({Key? key});
@override
_TestIssue24State createState() => _TestIssue24State();
}
@huhuang03
huhuang03 / my path
Created October 18, 2021 00:26
my path
E:\Program Files\PowerShell\7;C:\Program Files\Microsoft MPI\Bin\;E:\Oculus\Support\oculus-runtime;E:\Program Files\ImageMagick-7.0.11-Q16-HDRI;E:\Program Files\Perl64\bin;C:\Users\huhua\AppData\Roaming\ActiveState\bin;D:\Program Files\ImageMagick-7.0.10-Q16-HDRI;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;D:\Program Files\nodejs\;D:\Program Files\010 Editor;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;D:\Windows Kits\10\Windows Performance Toolkit\;D:\Program Files\Go\bin;d:\Program Files\Git\cmd;E:\Program Files\dotnet\;C:\Program Files (x86)\dotnet\;E:\Program Files (x86)\Calibre2\;C:\ProgramData\ComposerSetup\bin;E:\Program Files (x86)\Gpg4win\..\GnuPG\bin;E:\Program Files\PowerShell\7\;C:\Program Files (x86)\glab;E:\Program Files\CMake\bin;%SystemRoot%\system32;%SystemRoot%;%SystemR
@huhuang03
huhuang03 / opencv info
Created October 15, 2021 16:02
opencv info
General configuration for OpenCV 4.3.0 =====================================
Version control: unknown
Platform:
Timestamp: 2021-09-02T16:35:28Z
Host: Windows 10.0.18363 AMD64
CMake: 3.18.4
CMake generator: Ninja
CMake build tool: E:/source/vcpkg/downloads/tools/ninja/1.10.1-windows/ninja.exe
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"copyFormatting": "none",
"copyOnSelect": false,
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
// Add custom keybindings to this array.
// To unbind a key combination from your defaults.json, set the command to "unbound".
// To learn more about keybindings, visit https://aka.ms/terminal-keybindings
"keybindings":
[
@huhuang03
huhuang03 / gist:c68fd56f6dbcd08d3eb8cf4c46862ef1
Last active September 18, 2020 08:29 — forked from eggfly/gist:65ff355a8326c55a7621e13384917f5a
Compile Python for Android on mac (Not Work!!!!, don not use this)
#!/bin/sh
#
# This script builds & bundles Python for Android
# You'll end up with a tar.bz2 file that contains a Python distribution
#
# Requires all prerequisites to build Android on the host, and the NDK
# installed.
#
# This script creates a file python4android.tbz2. Unpack it on your device
# (into a non-noexec partition!) and enjoy.
@huhuang03
huhuang03 / aa
Created August 12, 2020 02:26
Android: How to remove margin/padding in Preference Screen
https://stackoverflow.com/questions/18509369/android-how-to-remove-margin-padding-in-preference-screen
Simple working solution from here.
It works across all preferences without need write to all preferences app:iconSpaceReserved="false"
Create res/values-sw360dp/values-preference.xml:
<resources xmlns:tools="http://schemas.android.com/tools">
<bool name="config_materialPreferenceIconSpaceReserved" tools:ignore="MissingDefaultResource,PrivateResource">false</bool>
<dimen name="preference_category_padding_start" tools:ignore="MissingDefaultResource,PrivateResource">0dp</dimen>
# QEmu
brew install qemu
# Home for out tests
mkdir ~/arm-emu
cd ~/arm-emu
# Download initrd and kernel
wget http://ftp.de.debian.org/debian/dists/jessie/main/installer-armel/current/images/versatile/netboot/initrd.gz
@huhuang03
huhuang03 / opencv snipts
Last active July 29, 2020 15:17
open use opencv snipt
cv::Mat_<cv::Vec3b>::iterrator it = image.begin<cv::Vec3b>();
cv::Mat_<cv::Vec3b>::const_iterrator it = image.begin<cv::Vec3b>();