This file contains hidden or 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 hidden or 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 hidden or 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 | |
enable pwd | |
args=("$@") | |
DIR="$(cd "$(dirname "$0")" && pwd)" | |
case "${args[@]}" in | |
*".9.png"*) | |
$DIR/aapt.17 $@ | |
;; |
This file contains hidden or 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 hidden or 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
IS_PYTHON_3=False | |
try: | |
import urllib.request as urllib2 | |
IS_PYTHON_3=True | |
except ImportError: | |
IS_PYTHON_3=False | |
import urllib2 |
This file contains hidden or 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 hidden or 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
protobuf | |
protobuf-2.6.0 | |
protobuf-2.6.1 | |
protobuf-master |
This file contains hidden or 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 hidden or 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_ |
OlderNewer