Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
PREFIX=`pwd`/protobuf/android | |
rm -rf ${PREFIX} | |
mkdir ${PREFIX} | |
export NDK=YOUR_NDK_ROOT | |
# 1. Use the tools from the Standalone Toolchain | |
export PATH=YOUR_NDK_STAND_ALONE_TOOL_PATH/bin:$PATH | |
export SYSROOT=YOUR_NDK_STAND_ALONE_TOOL_PATH/sysroot |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)
That's it!
package com.tomgibara.android.util; | |
import android.content.Context; | |
import android.content.res.TypedArray; | |
import android.util.AttributeSet; | |
import android.view.View; | |
import android.view.ViewGroup; | |
/** | |
* A layout that arranges views into a grid of same-sized squares. |