Skip to content

Instantly share code, notes, and snippets.

View RetVal's full-sized avatar
💭
SwiftUI

RetVal

💭
SwiftUI
  • Bytedance, Inc
View GitHub Profile
@RetVal
RetVal / CompositionalTwoColumnWaterfall.swift
Created September 1, 2020 03:28 — forked from breeno/CompositionalTwoColumnWaterfall.swift
Simple take on a compositional layout with 2 column variable height items waterfall
import UIKit
class ViewController: UIViewController {
enum Section {
case main
}
struct Item: Hashable {
let height: CGFloat
@RetVal
RetVal / diff.mdown
Created December 15, 2019 08:12 — forked from ndarville/diff.mdown
Paul Heckel's Diff Algorithm

[Isolating Differences Between Files][paper]

Advantage over Other Algorithms

The diff output is more specific:

[I]f a whole block of text is moved, then all of it, rather than just the beginning and end, is detected as changed.

>The algorithm described here avoids these difficulties. It detects differences that correspond very closely to our intuitive notion of difference.

@RetVal
RetVal / diff.mdown
Created December 15, 2019 08:12 — forked from ndarville/diff.mdown
Paul Heckel's Diff Algorithm

[Isolating Differences Between Files][paper]

Advantage over Other Algorithms

The diff output is more specific:

[I]f a whole block of text is moved, then all of it, rather than just the beginning and end, is detected as changed.

>The algorithm described here avoids these difficulties. It detects differences that correspond very closely to our intuitive notion of difference.