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
2021-01-15 17:11:22.439 23815-23815/? E/Zygote: isWhitelistProcess - Process is Whitelisted | |
2021-01-15 17:11:22.441 23815-23815/? E/Zygote: accessInfo : 1 | |
2021-01-15 17:11:22.465 23815-23815/? I/le.cameraxbasi: Late-enabling -Xcheck:jni | |
2021-01-15 17:11:22.499 23815-23815/? I/le.cameraxbasi: report jit thread pid = 23837 | |
2021-01-15 17:11:23.323 23815-23815/com.android.example.cameraxbasic W/le.cameraxbasi: Accessing hidden method Landroid/graphics/drawable/Drawable;->getOpticalInsets()Landroid/graphics/Insets; (light greylist, linking) | |
2021-01-15 17:11:23.323 23815-23815/com.android.example.cameraxbasic W/le.cameraxbasi: Accessing hidden field Landroid/graphics/Insets;->left:I (light greylist, linking) | |
2021-01-15 17:11:23.323 23815-23815/com.android.example.cameraxbasic W/le.cameraxbasi: Accessing hidden field Landroid/graphics/Insets;->right:I (light greylist, linking) | |
2021-01-15 17:11:23.323 23815-23815/com.android.example.cameraxbasic W/le.cameraxbasi: Accessing hidden field Landroid/graphics/Insets;->top: |
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
interface ResettableLazy<out T> : Lazy<T> { | |
fun reset() | |
} | |
private class ResettableSynchronizedLazyImpl<out T>(initializer: () -> T, lock: Any? = null) : ResettableLazy<T> { | |
private val initializer: (() -> T)? = initializer |
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
#here comes Observable<List<DtlMerchant>># | |
.flatMap(Observable::from) | |
.filter(merchant -> merchant.getPartnerStatus() == PartnerStatus.UNKNOWN) | |
.filter(merchant -> merchant.getType() == MerchantType.UNKNOWN) | |
.toList() | |
#here I need the same Observable<List<DtlMerchant>># |
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
/* | |
* Copyright (c) 2010, Sony Ericsson Mobile Communication AB. All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without modification, | |
* are permitted provided that the following conditions are met: | |
* | |
* * Redistributions of source code must retain the above copyright notice, this | |
* list of conditions and the following disclaimer. | |
* * Redistributions in binary form must reproduce the above copyright notice, | |
* this list of conditions and the following disclaimer in the documentation |
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
Cursor cursor = null; | |
String path = null; | |
try { | |
String[] proj = { MediaStore.Images.Media.DATA }; | |
cursor = context.getContentResolver().query(contentUri, proj, null, null, null); | |
int column_index = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA); | |
cursor.moveToFirst(); | |
path = cursor.getString(column_index); | |
} finally { | |
if (cursor != null) { |
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
Intent photoPickerIntent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI); | |
photoPickerIntent.setType("image/*"); | |
// consider time while using camera as Shopaholic's foreground | |
ShopaholicApp.activityResumed(); | |
startActivityForResult(photoPickerIntent, INTENT_REQUEST_CODE_SELECT_PHOTO); |
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
<?php | |
// API access key from Google API's Console | |
define( 'API_ACCESS_KEY', 'API_ACCESS_KEY_HERE' ); | |
$registrationIds = array("DEVICE'S_REG_ID_HERE", "ANOTHER DEVICE'S_REG_ID_HERE (may be several of those)" ); | |
// prep the bundle |
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
package net.mobindustry.shopaholic.service; | |
import android.app.Service; | |
import android.content.Intent; | |
import android.os.Handler; | |
import android.os.HandlerThread; | |
import android.os.IBinder; | |
import android.os.Looper; | |
import android.os.Message; |
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
Сценарий 8 марта дома или в офисе. Конкурс ?Кто больше? | |
Ведущий задает некоторую женскую тему (например, ?цветы?, ?косметические фирмы?, ?элементы одежды?, ?украшения?). Задача участниц — называть в произвольном порядке слова, относящиеся к этой теме. Та участница, которая назовет последнее слово, получает призовое очко. | |
Сценарий 8 марта дома или в офисе. Конкурс ?Женская логика? | |
Ведущий называет несколько предметов. Участницы должны назвать предмет, лишний в этом списке, и объяснить свое решение. За каждый правильный ответ участница получает призовое очко. | |
Примеры заданий ?Что лишнее??: | |
1. Окраска волос хной, басмой, краской ?Велла?. (Окраска ?Веллой?, поскольку хна и басма -натуральные краски.) | |
2. Ванильные сухари, панировочные сухари, сухари с изюмом. (Лишнее — панировочные сухари, так как они не являются готовым к употреблению продуктом.) | |
3. Вискоза, хлопок, полиэстер. (Полиэстер, так как вискоза и хлопок натуральные материалы.) | |
4. Туалетная вода, лосьон, духи. (Лосьон, поскольку он используется в гигиени |
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
if (elapse < 60) { | |
if(elapse<1) | |
elapse=1; | |
return [NSString stringWithFormat:@"%ds", (int)elapse]; | |
} | |
else if (elapse < 60 * 60) { | |
int minute = round(elapse / 60); | |
return [NSString stringWithFormat:@"%dm", minute]; | |
// } else if (elapse < 1.5 * 60 * 60) { | |
// return @"An hour"; |
NewerOlder