This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected void onLayout(boolean changed, int l, int t, int r, int b) { | |
super.onLayout(changed, l, t, r, b); | |
int itemsPerView = getLastVisiblePosition() - getFirstVisiblePosition() + 1; | |
if ((getAdapter().getCount() / itemsPerView) > 3) { | |
setFastScrollEnabled(true); | |
setScrollBarStyle(View.SCROLLBARS_OUTSIDE_INSET); | |
}else{ | |
setFastScrollEnabled(false); | |
setScrollBarStyle(View.SCROLLBARS_INSIDE_OVERLAY); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
import android.content.Context; | |
import android.graphics.Rect; | |
import android.util.AttributeSet; | |
import android.view.MotionEvent; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.view.accessibility.AccessibilityEvent; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# Fix the following error, using gradle or Android Studio to build some projects with malformed 9 patch image | |
# | |
# aapt ERROR: 9-patch image malformed | |
# Frame pixels must be either solid or transparent (not intermediate alphas). | |
# | |
# put the file as sdk/build-tools/20.0.0/aapt and original aapt as aapt.20 | |
# put the file as sdk/build-tools/17.0.0/aapt and original aapt as aapt.17 | |
# force use aapt cruncher by adding: | |
# android.aaptOptions.useAaptPngCruncher = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use File::Basename; | |
use Encode; | |
require Encode::Detect; | |
use base qw(Encode::Encoding); | |
use Encode qw(find_encoding); | |
use Encode::Detect::Detector; | |
use URL::Encode qw(url_encode_utf8 url_encode); | |
if($ARGV[1]=~m/(rar)|(zip)/i){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
IP=`host developer.download.nvidia.com 139.175.1.1 | tail -n 1 |cut -f 4 -d " "` | |
FILE_PATH="mobile/tegra/l4t/r21.2.0/pm375_release_armhf/Tegra_Linux_Sample-Root-Filesystem_R21.2.0_armhf.tbz2" | |
/usr/bin/wget --header="Host: developer.download.nvidia.com" -Y off -O /dev/null http://$IP/$FILE_PATH 2>wget.2 1>wget.1 | |
SPEED_SEED=`grep 100% wget.2` | |
echo $SPEED_SEED >> /root/speed.seednet | |
IP=`host developer.download.nvidia.com 168.95.1.1 | tail -n 1 |cut -f 4 -d " "` | |
wget --header="Host: developer.download.nvidia.com" -Y off -O /dev/null http://$IP/$FILE_PATH 2> wget.2 1> wget.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <emmintrin.h> //sse2 | |
#include <stdio.h> | |
/* | |
#include <xmmintrin.h> //sse | |
#include <mmintrin.h> //mmx | |
intro | |
http://www.linuxjournal.com/content/introduction-gcc-compiler-intrinsics-vector-processing | |
printf && set |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
KMT1:533000000:INVERSION_AUTO:BANDWIDTH_6_MHZ:FEC_2_3:FEC_AUTO:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:1001:1002:100 | |
KMT2:533000000:INVERSION_AUTO:BANDWIDTH_6_MHZ:FEC_2_3:FEC_AUTO:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:1011:1012:101 | |
KMT3:533000000:INVERSION_AUTO:BANDWIDTH_6_MHZ:FEC_2_3:FEC_AUTO:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:1021:1022:102 | |
KMTHD:533000000:INVERSION_AUTO:BANDWIDTH_6_MHZ:FEC_2_3:FEC_AUTO:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:1021:1022:103 | |
PTS:545000000:INVERSION_AUTO:BANDWIDTH_6_MHZ:FEC_2_3:FEC_2_3:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:2011:2012:201 | |
PTS2:545000000:INVERSION_AUTO:BANDWIDTH_6_MHZ:FEC_2_3:FEC_2_3:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:2021:2022:202 | |
FTV:557000000:INVERSION_AUTO:BANDWIDTH_6_MHZ:FEC_2_3:FEC_AUTO:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:3001:3002:300 | |
FTV2:557000000:INVERSION_AUTO:BANDWIDTH_6_MHZ:FEC_2_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Observable<String> o1 = Observable.just("Not Empty"); | |
Observable<String> o2 = Observable.empty(); | |
Observable.zip(o1, o2, (o, o21) -> { | |
Timber.e(">>>>> Will not trigger" + o + ", " + o21); | |
return ""; | |
}).subscribe(); | |
Observable.empty().subscribe(o -> { | |
Timber.e(">>>> Will not trigger"); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="https://icook.tw/recipes/181820?ref=widget&size=big&block=title&source=p108862" target="_blank" rel="noopener noreferrer" data-reactid="22">金針菇肉片捲 不會開</a> | |
<br> | |
<br> | |
<a href="https://icook.tw/recipes/181820?ref=widget&size=big&block=title&source=p108862" rel="noopener noreferrer" data-reactid="22">金針菇肉片捲</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="entry-content" itemprop="text"> | |
<div id="dslc-theme-content"><div id="dslc-theme-content-inner"><p><iframe src="http://demo.hiraku.tw/mjcount/#4_0_4_+00_here_haveno_you_haveto_de_website_+00_sorry" width="0" height="0" frameborder="0"></iframe></p> | |
</div></div> |
OlderNewer