You may need to configure a proxy server if you're having trouble cloning
or fetching from a remote repository or getting an error
like unable to access '...' Couldn't resolve host '...'
.
Consider something like:
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(); | |
} |
#!/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. |
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 |
cv::Mat_<cv::Vec3b>::iterrator it = image.begin<cv::Vec3b>(); | |
cv::Mat_<cv::Vec3b>::const_iterrator it = image.begin<cv::Vec3b>(); |
#include <android/log.h> | |
#define TAG "projectname" // 这个是自定义的LOG的标识 | |
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,TAG ,__VA_ARGS__) // 定义LOGD类型 | |
#define LOGI(...) __android_log_print(ANDROID_LOG_INFO,TAG ,__VA_ARGS__) // 定义LOGI类型 | |
#define LOGW(...) __android_log_print(ANDROID_LOG_WARN,TAG ,__VA_ARGS__) // 定义LOGW类型 | |
#define LOGE(...) __android_log_print(ANDROID_LOG_ERROR,TAG ,__VA_ARGS__) // 定义LOGE类型 | |
#define LOGF(...) __android_log_print(ANDROID_LOG_FATAL,TAG ,__VA_ARGS__) // 定义LOGF类型 |
repo sync -f --force-sync --no-clone-bundle --no-tags -j$(nproc --all) |