- Swiftkiqをバックエンドに持つアプリケーション
- Kituraを利用したServer Side Swiftアプリケーション
- LINEブログのランキングページをスクレイピングして各ブログをクローリング、記事の中の画像を取得してくる
navigator.getUserMedia = navigator.webkitGetUserMedia || navigator.getUserMedia; | |
if(navigator.getUserMedia){ | |
console.log('You can getUserMedia.'); | |
} else { | |
alert('Your Browser cannot use getUserMedia API!!'); | |
} |
navigator.getUserMedia({video:true}, function(stream) { | |
video.src = (window.webkitURL || window.URL).createObjectURL(stream); | |
localMediaStream = stream; | |
}, onFailSoHard); |
; 1.2 ============================================================== | |
; (/ (+ 5 4 (- 2 (- 3 ( + 6 (/ 4 5))))) (* 3 (- 6 2) (- 2 7))) | |
; 1.3 ============================================================== | |
; (define (square i) (* i i)) | |
; | |
; (define (func x y z) | |
; (if (= x (large x y)) | |
; (+ (square x) (square (large y z))) | |
; (+ (square y) (square (large x z))) |
// onlyRetrieveFromCache | |
// trueを指定することで、URLにアクセスすることなくキャッシュからのみ画像を取得することが可能 | |
GlideApp.with(fragment) | |
.load(url) | |
.onlyRetrieveFromCache(true) | |
.into(imageView); |
@GlideModule | |
public final class MiteneGlideModule extends AppGlideModule { | |
// Daggerでinjectできるように設定済みである前提 | |
@Inject okhttp3.OkHttpClient authOkHttpClient; | |
@Override | |
public void applyOptions(Context context, GlideBuilder builder) { | |
// 必要なOptionを書きます | |
} |
// v3以前 | |
Glide.with(context) | |
.loadFromMediaStore(localMedia.getLocalPath()) | |
.asBitmap() | |
.imageDecoder(new StreamBitmapDecoder( | |
Downsampler.AT_LEAST, | |
Glide.get(mContext).getBitmapPool(), | |
DecodeFormat.PREFER_ARGB_8888 | |
)) | |
.into(imageView); |