Skip to content

Instantly share code, notes, and snippets.

View sughimura's full-sized avatar
🎯
Focusing

noritsugu sugimura sughimura

🎯
Focusing
View GitHub Profile
@o0h
o0h / 参考にした記事等のリンク.md
Last active June 29, 2021 06:57
RDS Performance Insights調査メモ

Perfoemance Insights

リファレンス・マニュアル系

講演資料・ブログ等のユースケース紹介系

  • [Using Performance Insights to
@stepney141
stepney141 / BookmarkAPI_en.md
Last active April 4, 2023 01:45
(DEPRECATED) Twitter Undocumented Endpoints for Bookmark
@romainpiel
romainpiel / MyTest.java
Last active August 13, 2019 08:31
Source for https://medium.com/p/3f6f4179652e - "RecyclerView and espresso, a complicated story"
RecyclerViewInteraction.<Item>onRecyclerView(withId(R.id.recyclerview))
.withItems(items)
.check(new ItemViewAssertion<Item>() {
@Override
public void check(Item item, View view, NoMatchingViewException e) {
matches(hasDescendant(withText(item.getDisplayName())))
.check(view, e);
}
});
@polbins
polbins / README.md
Last active February 29, 2024 09:58
Simple RecyclerView Divider

Simple RecyclerView Divider

Simple Horizontal Divider Item Decoration for RecyclerView

    mRecyclerView.addItemDecoration(new SimpleDividerItemDecoration(
            getApplicationContext()
    	));

NOTE: Add item decoration prior to setting the adapter

@jaredrummler
jaredrummler / colors.xml
Last active July 23, 2021 16:52
Android colors.xml - Material, Holo, and other colors.
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Social media and other company colors -->
<eat-comment />
<color name="facebook">#FF3B5998</color>
<color name="twitter">#FF00ACED</color>
<color name="google_plus">#FFDD4B39</color>
<color name="youtube">#FFBB0000</color>
@skyisle
skyisle / gist:c9e5b0a43a4b4313ac19
Created July 25, 2014 07:23
espresso static import
import static com.google.android.apps.common.testing.ui.espresso.Espresso.onData;
import static com.google.android.apps.common.testing.ui.espresso.Espresso.onView;
import static com.google.android.apps.common.testing.ui.espresso.Espresso.pressBack;
import static com.google.android.apps.common.testing.ui.espresso.action.ViewActions.click;
import static com.google.android.apps.common.testing.ui.espresso.action.ViewActions.closeSoftKeyboard;
import static com.google.android.apps.common.testing.ui.espresso.action.ViewActions.typeText;
import static com.google.android.apps.common.testing.ui.espresso.assertion.ViewAssertions.matches;
import static com.google.android.apps.common.testing.ui.espresso.matcher.ViewMatchers.withId;
import static com.google.android.apps.common.testing.ui.espresso.matcher.ViewMatchers.withText;
@sideshowcoder
sideshowcoder / awesome_report_test.rb
Last active May 12, 2018 01:51
Helper for testing rake tasks in rails using minitest.
require 'test_helper'
# testing rake task app:awesome_report
# defined in file lib/tasks/app/awesome_report.rake
describe 'App::AwesomeReportTaskTest' do
it 'generates the awesomeness report' do
subject.invoke
assert File.exists?('awesomeness_report.csv')
end
@esehara
esehara / gist:2523056
Created April 29, 2012 01:03
好きな言語とその理由

Python

 個人的には、一番好きな言語。好きな理由としては、Pythonが、 簡潔さと解法の一意性 を求めているからだ。どういうことかといえば、例えばPythonにはSwitchらしいものはない。Switchを実現したければ、elseifを連呼するしかない。そういう意味では、Pythonという言語は「不便な言語」ではある。しかし、その代償に、Pythonは「読みやすくなる」。こう考えてみよう。switchを連打したら、そもそも何の関数を比較しているのかわからなくなるでしょ?ただ、やはりPythonには不満がある。まず一つに、そのマルチバイト文字処理が未成熟であったこと。これは、日本に住んでいる私たちにとっては痛いことである。Python3になってから、文字列はUnicodeで扱うようになったため、この問題は解決する予定ではあるものの、しかしPythonよりもRubyが選ばれるのは、このへんの事情もあるように思う。

PHP

 嫌われ率No.1の言語ではあるが、個人的には嫌いではない。そして、それは個人的に使う限りにおいてだ。PHPの好きなところというのは、その節操の無さだ。必要な機能は何でも詰め込む。それは、機能が膨張し、汚くなりがちではあるものの、そういう割り切り方は嫌いではないし、その部分は周辺言語と比較して突き抜けている。また、ドキュメントがちゃんと日本語化されていたりという点も好印象。問題は、その緩さ。Warning出しまくっていようが、何だろうが、なんとなーく動いてしまう点とかその辺り。PHP5.3あたりになってから、Classなんかが書けるようになったのは良かった点ではないでしょうか。