Skip to content

Instantly share code, notes, and snippets.

View chuross's full-sized avatar

chuross chuross

View GitHub Profile
@chuross
chuross / AndroidManifest.xml
Created September 8, 2013 08:07
View・通信の処理を簡単実装できるAndroid-Queryの使い方をまとめた ref: http://qiita.com/chuross/items/00da8311f6dac9b7140b
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
```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 August 29, 2015 14:25
Sparkの挙動チェック
  public static void main(String[] args) {
      get("/", ((request, response) -> "test"));
      get("/", ((request, response) -> "piyo"));
  }
@chuross
chuross / maid.md
Last active September 4, 2016 14:39
メイド構想

基本

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

今回の成果物

{library name}

{github repository url} {library image}

特長

導入

  1. jitpackをrepositoryに追加する
@chuross
chuross / .kt
Last active March 22, 2018 09:50
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()