Skip to content

Instantly share code, notes, and snippets.

View trilliwon's full-sized avatar
🎯
Focusing

WonJo trilliwon

🎯
Focusing
View GitHub Profile
{
"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
#if DEBUG
import SwiftUI
struct <# UIView #>UIViewRepresentable: UIViewRepresentable {
typealias UIViewType = <# UIView #>
func makeUIView(context: Context) -> <# UIView #> {
<# UIView #>()
}
class SpringEffectFlowLayout: UICollectionViewFlowLayout {
var dynamicAnimator: UIDynamicAnimator!
var visibleIndexPathsSet = Set<IndexPath>()
var visibleHeaderAndFooterSet = Set<IndexPath>()
private var latestDelta: CGFloat = 0
var scrollResistanceFactor: CGFloat?
override init() {
//
// ContentView.swift
// WatchOS Extension
//
// Created by won on 2021/04/18.
//
import SwiftUI
struct ContentView: View {
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) }
}
}
import Foundation
@dynamicMemberLookup
public struct Builder<Base: AnyObject> {
let _build: () -> Base
public init(_ build: @escaping () -> Base) {
self._build = build
@trilliwon
trilliwon / sample.txt
Created January 2, 2021 06:37
Sample Gist
This is a cool way to add a gist!
  • 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)
@trilliwon
trilliwon / TooltipView.swift
Created November 6, 2020 04:03
Tooltipview for button descirptions
import UIKit
import Shared
class TooltipView: UIView {
var message: String? {
didSet { label.text = message }
}
var actionWithHide: (() -> Void)?