Skip to content

Instantly share code, notes, and snippets.

document.getElementsByName("オーストリア")[0].click()
document.getElementsByName("ベルギー")[0].click()
document.getElementsByName("ブルガリア")[0].click()
document.getElementsByName("キプロス")[0].click()
document.getElementsByName("チェコ共和国")[0].click()
document.getElementsByName("デンマーク")[0].click()
document.getElementsByName("エストニア")[0].click()
document.getElementsByName("フィンランド")[0].click()
document.getElementsByName("フランス")[0].click()
document.getElementsByName("ドイツ")[0].click()
@75py
75py / MainActivity.kt
Created January 20, 2018 14:05
Sample (fast scroll in RecyclerView)
package com.nagopy.android.fastscrollingwithrecyclerviewsample
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.ViewGroup
import android.widget.TextView
@75py
75py / UiTestUtil.java
Last active January 2, 2016 07:22
UIAutomatorで、対象パッケージのランタイムパーミッションを全て許可するやつ
/*
* Copyright 2015 75py
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@75py
75py / MainActivityTest.kt
Created October 10, 2015 05:29
Kotlinのテストで@rule
package com.nagopy.android.aplin
import android.support.test.rule.ActivityTestRule
import android.support.test.runner.AndroidJUnit4
import android.widget.TextView
import org.assertj.android.api.Assertions
import org.junit.Rule
import org.junit.Test
import org.junit.runner.RunWith
@75py
75py / ModIconSizeFixer.java
Last active August 29, 2015 13:57
アプリアイコン読み込み時、画像がでかい場合は縮小するXposedモジュール。 ダウンロード: http://ux.getuploader.com/75py/download/34/XIconSizeFixer.apk
package com.nagopy.android.xposed.iconsizefixer;
import android.content.pm.PackageItemInfo;
import android.content.pm.PackageManager;
import android.content.res.Resources;
import android.content.res.XModuleResources;
import android.graphics.Bitmap;
import android.graphics.Matrix;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;