Skip to content

Instantly share code, notes, and snippets.

// android.support.annotation の @NonNull が定数式以外に全く効果が無い件。
// この場合は test() の3つ目は警告を出して欲しいだろう普通
boolean f1( @NonNull String arg){
return arg.contains( "foo" );
}
@NonNull String getString(){
return "foo";
}
@tateisu
tateisu / gist:55a284a086f4754e9b35
Created August 18, 2014 21:19
android.support.annotation の @nonnull が定数式以外に全く効果が無い件
// android.support.annotation の @NonNull が定数式以外に全く効果が無い件。
// この場合は test() の3つ目は警告を出して欲しいだろう普通
boolean f1( @NonNull String arg){
return arg.contains( "foo" );
}
@NonNull String getString(){
return "foo";
}
$ perl check.pl
# 店を家で囲うパターン
y00: ____________
y01: 飾家穀菜家水飾家穀菜家水
y02: 家果魚肉壺家家果魚肉壺家
y03: ____________
y04: 家香敷歌煙家家香敷歌煙家
y05: 水家油酒家飾水家油酒家飾
y06: ____________
seems ok.
package jp.juggler.dromus;
import android.app.ProgressDialog;
public class ProgressTask{
public interface ProgressTaskInterface{
boolean isCancelled();
void dismiss(Runnable proc_end);
}
https://www.dropbox.com/s/qrtw05pdi3w2r1j/IMGP0196_lr.jpg
https://www.dropbox.com/s/jj8qeyof7eialsn/IMGP0563_lr_big-2.jpg
https://www.dropbox.com/s/s5jewuxzd64g5ps/IMGP0715_lr.jpg
https://www.dropbox.com/s/sa1ux9u5ustsirc/K3__1133_lr.jpg
https://www.dropbox.com/s/393sce7yigtxbuy/K3__1139_lr.jpg
https://www.dropbox.com/s/gowliqmn0htqg4q/IMGP0581_lr.jpg
https://www.dropbox.com/s/rgvxqabp0ugiqqb/IMGP0585_lr.jpg
https://www.dropbox.com/s/iejjv6b0p3s0xkg/K3__1122_lr.jpg
https://www.dropbox.com/s/r9q92h3wtu5vzzn/IMGP0605_lr.jpg
https://www.dropbox.com/s/9hrab20snh739ju/IMGP0637_lr.jpg
adb shell pm block com.lge.isaimotion
adb shell pm block com.lge.lifetracker
adb shell pm block jp.united.app.cocoppa
adb shell pm block com.google.android.apps.fitness
adb shell pm block com.kddi.android.auhomelauncherforisaifl
adb shell pm block com.lge.easyhome
adb shell pm block com.lge.fullsize.auhome.widget
//
開発者オプションのGPUレンダリングを使用: OFF
マニフェストの<application android:hardwareAccelerated="..."> : true
結果:(View,Canvasとも) isHardwareAccelerated() == true
//
開発者オプションのGPUレンダリングを使用: OFF
マニフェストの<application android:hardwareAccelerated="..."> : false
結果:(View,Canvasとも) isHardwareAccelerated() == false
//
sub avoid_url_renamer{
my($in)=@_;
my $out = '';
my $last_end = 0;
while( $in =~ /(\A|\s)(\w+:\/\/)?(\S+?)([A-Z0-9\.-]*\.[A-Z0-9]+)/ig ){
my $start = $-[0];
my $end = $+[0];
if($start > $last_end ){
$out .= substr( $in, $last_end, $start - $last_end );
@list = sort {
my $i;
$i= $a->a cmp $b->a; $i and return $i;
$i= $a->b cmp $b->b; $i and return $i;
$i= $a->c cmp $b->c; $i and return $i;
return 0;
} @list;
static String toCamelCase(String src){
StringBuilder sb = new StringBuilder();
for( String s : src.split( "_" ) ){
if(TextUtils.isEmpty( s )) continue;
sb.append( Character.toUpperCase( s.charAt( 0 ) ) );
sb.append( s.substring( 1, s.length() ).toLowerCase() );
}
return sb.toString();
}