Skip to content

Instantly share code, notes, and snippets.

View chiehmin's full-sized avatar

Chieh-Min Wang chiehmin

View GitHub Profile
@bmaupin
bmaupin / epub.css
Last active January 27, 2022 15:31
You Don't Know JS Ebooks
body {
text-align: justify;
}
code, pre {
font-family: "DejaVuSansMono", monospace;
}
h1, h2, h3, h4, h5, h6 {
text-align: left;

All binary can be downloaded http://pan.baidu.com/s/1hqH2Pko

Sublime Text 3, build 3083 (dev) for Windows x64

OFFSET ORIGINAL CRACKED
0xe21b3 85 3B

md5:c3522c719d24f85dd770c93b9bf9e56f

@chiehmin
chiehmin / android.rst
Last active February 14, 2017 20:39 — forked from anonymous/android.rst

build android guest on linux-kvm-arm host on arm Fast Model

all files

binaries/
├── config                (download from virtualopensystem)
├── cookies.txt           (download from virtualopensystem)
├── jb_ve_4_1_1.bz2       (download from virtualopensystem)
anonymous
anonymous / android.rst
Created March 17, 2015 17:01

build android guest on linux-kvm-arm host on arm Fast Model

all files

binaries/
├── config                (download from virtualopensystem)
├── cookies.txt           (download from virtualopensystem)
├── jb_ve_4_1_1.bz2       (download from virtualopensystem)
@cardil
cardil / ExamplePartOfActivity.java
Last active January 31, 2022 10:49
MultiSelectListPreference for devices running Android in the API earlier than level 11. Support ChangeListener receiving list of selected values. Supports automatically setting of summary. Examples attached.
private static OnPreferenceChangeListener autoOnChangeListener = new OnPreferenceChangeListener() {
@Override
public boolean onPreferenceChange(Preference rawPreference, Object newValue) {
List<CharSequence> selected = Arrays.asList((CharSequence[]) newValue);
if (selected.contains("1")) {
// do some work
}
return true;
}