Skip to content

Instantly share code, notes, and snippets.

View r-dent's full-sized avatar

Roman Schlagowsky r-dent

View GitHub Profile
{
"title": "The Podcast",
"info": "Sodales netus ac blandit faucibus lacinia montes dignissim pellentesque, tincidunt odio fames et eros ullamcorper inceptos malesuada, sociosqu consectetur massa habitant justo dapibus penatibus. Nunc commodo habitasse primis nam inceptos turpis suscipit adipiscing leo cubilia ultrices, venenatis senectus mus tempor aliquam nisi mollis vel ullamcorper.",
"episodes": [
{
"id": "4d9dbed9-6145-4603-a43e-c4551741bac2",
"title" : "The first Episode",
"release-date": "2021-08-20T11:01:57+02:00",
"image": "https://picsum.photos/id/10/1024/768",
"info": "Cursus nullam magnis adipiscing viverra maecenas ullamcorper donec, a potenti pharetra auctor phasellus dictumst nec, lacus luctus volutpat consequat tortor facilisis. Nulla porttitor justo vulputate viverra sollicitudin condimentum maecenas per, sagittis sociosqu magnis eu non orci bibendum integer molestie, netus tincidunt posuere nisi suspendisse ipsum
@r-dent
r-dent / iOS Constants.swift
Last active July 9, 2016 12:06
iOS Constants Swift
let IS_iOS_7 = UIDevice.currentDevice().systemVersion.hasPrefix("7")
let IS_iOS_8 = UIDevice.currentDevice().systemVersion.hasPrefix("8")
let IS_iPad = UI_USER_INTERFACE_IDIOM() == .Pad
let IS_IPHONE = UI_USER_INTERFACE_IDIOM() == .Phone
let IS_IPHONE_4S_AND_LOWER (IS_IPHONE && max(UIScreen.mainScreen().bounds.size.height, UIScreen.mainScreen().bounds.size.width) == 480.0)
let IS_IPHONE_5 = (IS_IPHONE && max(UIScreen.mainScreen().bounds.size.height, UIScreen.mainScreen().bounds.size.width) == 568.0)
let IS_iPhone6 = (IS_IPHONE && max(UIScreen.mainScreen().bounds.size.height, UIScreen.mainScreen().bounds.size.width) == 667)
let IS_iPhone6Plus = (IS_IPHONE && max(UIScreen.mainScreen().bounds.size.height, UIScreen.mainScreen().bounds.size.width) == 736)
@r-dent
r-dent / Macros.h
Last active August 29, 2015 14:20
iOS Macros
#define IS_iOS_8 [[[UIDevice currentDevice] systemVersion] hasPrefix:@"8"]
#define IS_iPad UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad
#define IS_IPHONE (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
#define IS_IPHONE_4S_AND_LOWER (IS_IPHONE && MAX([UIScreen mainScreen].bounds.size.height, [UIScreen mainScreen].bounds.size.width) == 480.0)
#define IS_IPHONE_5 (IS_IPHONE && MAX([UIScreen mainScreen].bounds.size.height, [UIScreen mainScreen].bounds.size.width) == 568.0)
#define IS_iPhone6 (IS_IPHONE && MAX([UIScreen mainScreen].bounds.size.height, [UIScreen mainScreen].bounds.size.width) == 667)
#define IS_iPhone6Plus (IS_IPHONE && MAX([UIScreen mainScreen].bounds.size.height, [UIScreen mainScreen].bounds.size.width) == 736)
#define DEGREES_TO_RADIANS(angle) ((angle) / 180.0 * M_PI)