- not (a or b or c) <=> (not a) and (not b) and (not c)
- not (a and b and c) <=> (not a) or (not b) or (not c)
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
{ | |
"brand": "BMW", | |
"model": "3", | |
"grade": "M340i", | |
"thumbnails": [ | |
"https://cache.bmwusa.com/cosy.arox?pov=walkaround&brand=WBBM&vehicle=223Q&client=byoc&paint=P0300&fabric=FKHSW&sa=S01PD%2CS02NH%2CS02TB%2CS0302%2CS0322%2CS03DZ%2CS0403%2CS0430%2CS0431%2CS0459%2CS0465%2CS0481%2CS0493%2CS04KK%2CS04UR%2CS0534%2CS0544%2CS05A4%2CS05AC%2CS05AV%2CS0676%2CS06AC%2CS06AK%2CS06C4%2CS06CP%2CS06U3%2CS0704%2CS0710%2CS0715%2CS0754%2CS0760%2CS0775&angle=0&quality=100&sharp=99&resp=png&cut=1&bkgnd=transparent&width=2000", | |
"https://cache.bmwusa.com/cosy.arox?pov=walkaround&brand=WBBM&vehicle=223Q&client=byoc&paint=P0300&fabric=FKHSW&sa=S01PD%2CS02NH%2CS02TB%2CS0302%2CS0322%2CS03DZ%2CS0403%2CS0430%2CS0431%2CS0459%2CS0465%2CS0481%2CS0493%2CS04KK%2CS04UR%2CS0534%2CS0544%2CS05A4%2CS05AC%2CS05AV%2CS0676%2CS06AC%2CS06AK%2CS06C4%2CS06CP%2CS06U3%2CS0704%2CS0710%2CS0715%2CS0754%2CS0760%2CS0775&angle=10&quality=100&sharp=99&resp=png&cut=1&bkgnd=transparent&width=2000", | |
"https://cache.bmwusa.com/cosy.arox?pov=walkaroun |
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
#if DEBUG | |
import SwiftUI | |
struct <# UIView #>UIViewRepresentable: UIViewRepresentable { | |
typealias UIViewType = <# UIView #> | |
func makeUIView(context: Context) -> <# UIView #> { | |
<# UIView #>() | |
} |
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
class SpringEffectFlowLayout: UICollectionViewFlowLayout { | |
var dynamicAnimator: UIDynamicAnimator! | |
var visibleIndexPathsSet = Set<IndexPath>() | |
var visibleHeaderAndFooterSet = Set<IndexPath>() | |
private var latestDelta: CGFloat = 0 | |
var scrollResistanceFactor: CGFloat? | |
override init() { |
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
// | |
// ContentView.swift | |
// WatchOS Extension | |
// | |
// Created by won on 2021/04/18. | |
// | |
import SwiftUI | |
struct ContentView: View { |
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
import Foundation | |
@_functionBuilder | |
public class NSAttributedStringBuilder { | |
public static func buildBlock(_ components: NSAttributedString...) -> NSAttributedString { | |
let att = NSMutableAttributedString(string: "") | |
return components.reduce(into: att) { $0.append($1) } | |
} | |
} |
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
import Foundation | |
@dynamicMemberLookup | |
public struct Builder<Base: AnyObject> { | |
let _build: () -> Base | |
public init(_ build: @escaping () -> Base) { | |
self._build = build |
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
This is a cool way to add a gist! |
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
:'<,'>!nl -s '. ' -w 2 |
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
import UIKit | |
import Shared | |
class TooltipView: UIView { | |
var message: String? { | |
didSet { label.text = message } | |
} | |
var actionWithHide: (() -> Void)? |