Skip to content

Instantly share code, notes, and snippets.


Philipp Engel nosyjoe

View GitHub Profile
nosyjoe / SquareFrameLayout.kt
Created Oct 20, 2017
Square FrameLayout Kotlin implementation
View SquareFrameLayout.kt
* A FrameLayout subclass that always has the same width and height and forms a square.
* The larger dimension will be set to the smaller to meet this invariant.
class SquareFrameLayout: FrameLayout {
constructor(context: Context) : super(context)
constructor(context: Context, attrs: AttributeSet?) : super(context, attrs)
override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) {
View gist:bc118778b3d50b6f1d616e312a2124fe
# Built application files
# Files for the ART/Dalvik VM
# Java class files
nosyjoe / YoutubeController.swift
Created Jun 8, 2017
Youtube Controller for playing videos in a new screen
View YoutubeController.swift
// Created by Philipp Engel on 26.04.17.
import Foundation
import UIKit
import youtube_ios_player_helper
class YoutubeController: UIViewController {
nosyjoe / RetryWithExponentialBackoff.swift
Created Jun 2, 2017
RxSwift Retry Operator With Exponential Back Off Extension
View RetryWithExponentialBackoff.swift
// Created by Philipp Engel on 02.06.17.
import Foundation
import RxSwift
extension ObservableType {