Skip to content

Instantly share code, notes, and snippets.

👓
Working from home

Keiji Ariyama keiji

👓
Working from home
Block or report user

Report or block keiji

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View flow.kt
val myFlow = flow {
emit(fileListRepository.getFileList(path, limit, offsetValue, refresh))
}.retry(RETRY_LIMIT) { throwable ->
throwable is IOException
}.catch { throwable ->
errorMessage.postValue(throwable.message)
isLoading.postValue(null)
}.onEach() {
hasNext = it.hasNext
pathListSnapshot.addAll(it.fileList)
View Main.java
public class Main {
public static void main(String[] args) {
Number num = new Long(1L);
if (num.equals(1)) {
System.out.println("true");
} else {
System.out.println("false");
}
}
@keiji
keiji / techbookfest3-tfbook3-errata.md
Last active Oct 25, 2017
TensorFlowはじめました Object Detection - 物体検出 (正誤表)
View techbookfest3-tfbook3-errata.md
View gist:8835ae201eedca33fd8cecb6777d95f0
1|mata:/ $ ls -FlA /system/bin
ls: /system/bin/ATFWD-daemon: Permission denied
ls: /system/bin/DR_AP_Service: Permission denied
ls: /system/bin/PktRspTest: Permission denied
ls: /system/bin/StoreKeybox: Permission denied
ls: /system/bin/adsprpcd: Permission denied
ls: /system/bin/athdiag: Permission denied
ls: /system/bin/audioserver: Permission denied
ls: /system/bin/blkid: Permission denied
ls: /system/bin/bootanimation: Permission denied
@keiji
keiji / kaityo256.py
Last active Jul 3, 2018
Twitterで流れていた問題のアレ
View kaityo256.py
# https://twitter.com/kaityo256/status/904279527353749509
import tensorflow as tf
a = tf.Variable(0.1)
b = tf.Variable(0.2)
c = tf.Variable(0.3)
result = a / (b + c) + b / (c + a) + c / (a + b)
groundtruth = tf.constant(4.0)
@keiji
keiji / tfbook1-errata.md
Last active Jun 22, 2017
TensorFlowはじめました 実践! 最新Googleマシンラーニング (正誤表)
View tfbook1-errata.md
View gist:b92f4a783294e17795ed
public void authenticate (
FingerprintManager.CryptoObject crypto,
CancellationSignal cancel,
int flags,
FingerprintManager.AuthenticationCallback callback,
Handler handler)
View characters.json
{
"characters": [
{
"name": "Uduki Shimamura",
"age": "17",
"megane": false
},
{
"name": "Rin Shibuya",
"age": "15",
View Mr.Progress - 進捗さん
var data = { "pixel" : "%6%%%%%%%%%%%%%%%%%%69\n"
+ "%4%%%%%%%%%%%%%%%%%%%%%%67\n"
+ "%3%%%%%%%%%6%2%%%%%%%67\n"
+ "%2%%%%%%%%9%2%%%%%%%66\n"
+ "%%%%%%%%11%2%%%%%%%66\n"
+ "%%%%%%%12%2%%%%%%67\n"
+ "%%%%%%13%2%%%%%%%51%%14\n"
+ "%%%%%%%2%10%%%%%%%3%65\n"
+ "%%%%%%12%%%%%%%%%%%%%63\n"
+ "%%%%%%%2%12%%2%%%%%%%%%46%%14\n"
View gist:57d54f94ef224bb44d69
goodFeature側のbuild.gradleに、
android {
publishNonDefault true
productFlavors {
lib
}
}
You can’t perform that action at this time.