- 2018-05-30
- try! Swift Tokyo 2018 - Creating conversational interfaces in iOS/Swift https://youtu.be/NcYjfIeZgR8
- try! Swift Tokyo 2018 - The Type Erasure Advantage https://youtu.be/NcYjfIeZgR8
- try! Swift Tokyo 2018 - Preparing for Swift 5 Ownership https://youtu.be/O1U1JQT5bG4
- 2018-05-23
- Swiss Mobile Developers Association - Krzysztof Zabłocki - iOS Application Architecture https://youtu.be/PdkWjdKOqfo
- 2018-05-16
- App Builders Switzerland 2018 - How to Build a Modern iOS App: Wide color, 3D Touch, Spotlight, and more https://youtu.be/gmc5gwMNzBE
- 2018-05-09
- try! Swift Tokyo 2018 - UI Testing for Fun and Profit https://youtu.be/Ie_MF8B5f6E
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// v3以前 | |
Glide.with(context) | |
.loadFromMediaStore(localMedia.getLocalPath()) | |
.asBitmap() | |
.imageDecoder(new StreamBitmapDecoder( | |
Downsampler.AT_LEAST, | |
Glide.get(mContext).getBitmapPool(), | |
DecodeFormat.PREFER_ARGB_8888 | |
)) | |
.into(imageView); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@GlideModule | |
public final class MiteneGlideModule extends AppGlideModule { | |
// Daggerでinjectできるように設定済みである前提 | |
@Inject okhttp3.OkHttpClient authOkHttpClient; | |
@Override | |
public void applyOptions(Context context, GlideBuilder builder) { | |
// 必要なOptionを書きます | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// onlyRetrieveFromCache | |
// trueを指定することで、URLにアクセスすることなくキャッシュからのみ画像を取得することが可能 | |
GlideApp.with(fragment) | |
.load(url) | |
.onlyRetrieveFromCache(true) | |
.into(imageView); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 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))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
navigator.getUserMedia({video:true}, function(stream) { | |
video.src = (window.webkitURL || window.URL).createObjectURL(stream); | |
localMediaStream = stream; | |
}, onFailSoHard); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
navigator.getUserMedia = navigator.webkitGetUserMedia || navigator.getUserMedia; | |
if(navigator.getUserMedia){ | |
console.log('You can getUserMedia.'); | |
} else { | |
alert('Your Browser cannot use getUserMedia API!!'); | |
} |