Skip to content

Instantly share code, notes, and snippets.

Avatar

chuross chuross

View GitHub Profile
View gist:46c7fecc9fe76aaf385e
View gist:eb82ad9a9e5e6c51308b
```java
public static void setBackgroundColor(View view, int color) {
if(view == null) {
return;
}
// 4.2以降は対応済みなのでそのまま処理する
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {
view.setBackgroundColor(color);
return;
}
@chuross
chuross / gist:8b3d8533a038cd550000
Last active Aug 29, 2015
Sparkの挙動チェック
View gist:8b3d8533a038cd550000
  public static void main(String[] args) {
      get("/", ((request, response) -> "test"));
      get("/", ((request, response) -> "piyo"));
  }
@chuross
chuross / AndroidManifest.xml
Created Sep 8, 2013
View・通信の処理を簡単実装できるAndroid-Queryの使い方をまとめた ref: http://qiita.com/chuross/items/00da8311f6dac9b7140b
View AndroidManifest.xml
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
@chuross
chuross / maid.md
Last active Sep 4, 2016
メイド構想
View maid.md

基本

  • ENV
  • HUBOT_MAID_WORKDIR
  • ping
  • update
  • botをfetchし直して再起動する
  • restart
  • publickey
  • rain|雨降る?
@chuross
chuross / .md
Last active Nov 22, 2017
Qiitaの自作ライブラリ紹介用のテンプレート
View .md

今回の成果物

{library name}

{github repository url} {library image}

特長

導入

  1. jitpackをrepositoryに追加する
View .kt
val router = MoriRouter.from(fm, R.id.container)
router.pop()
router.hoge().start()
router.hoge(fuga).start()
router.hoge(fuga).piyo(foo).start()
// SharedElement support
router.hoge().shareFooImage(imageView).start()