Skip to content

Instantly share code, notes, and snippets.

View keiji's full-sized avatar
🏠
Working from home

ARIYAMA Keiji keiji

🏠
Working from home
View GitHub Profile
@keiji
keiji / a11y.md
Last active May 24, 2021 15:50
Google I/O 2021 - Accessibility
@keiji
keiji / glyph_extractor.py
Last active April 14, 2021 08:17
Extract glyph set from .xlf files.
import os
import glob
# pip install absl-py
from absl import app
from absl import flags
import xml.etree.ElementTree as ET
@keiji
keiji / exposurenotification_v2.md
Created March 27, 2021 16:42
Exposure Notification v2 Values Examples
  • Daily Summaries
    • Daily Summary 0
      • daysSinceEpoch: 18711
      • maximumScore: 0.0
      • scoreSum: 0.0
      • weightedDurationSum: 32220.0
    • Daily Summary 1
      • daysSinceEpoch: 18712
      • maximumScore: 0.0
  • scoreSum: 0.0
@keiji
keiji / fn+command.json
Created June 9, 2020 02:04
Happy Hacking Keyboardのキー割り当てに挙動を合わせるKarabiner Elementsの設定
{
"title": "日本語環境向けの設定(HHKB)",
"rules": [
{
"description": "Fn + コマンドキーを押したときに、英数・かなキーを送信する。(左コマンドキーは英数、右コマンドキーはかな)",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "left_command",
@keiji
keiji / train_eval.py
Last active July 19, 2023 07:57
TensorFlow 2.0 CIFAR-10 Sample
import tensorflow as tf
import numpy as np
import os
from tensorflow.keras.layers import Dense, Flatten, Conv2D
from tensorflow.keras import Model
print(tf.__version__)
DATA_DIR = './data'
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)
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 October 25, 2017 04:30
TensorFlowはじめました Object Detection - 物体検出 (正誤表)
@keiji
keiji / gist:8835ae201eedca33fd8cecb6777d95f0
Created September 15, 2017 15:34
/system/bin - Essential Phone
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