Skip to content

Instantly share code, notes, and snippets.

@ilteris
ilteris / index.html
Created November 23, 2020 03:19
Rubber Mesh Swipe Transition
<div id='root'></div>
<div id='message'>PULL & RELEASE IMAGE UP OR DOWN</div>
@ilteris
ilteris / SketchSystems.spec
Created October 16, 2018 02:19
Meet Id Request?
Meet Id Request?
not blank? -> Loading
Loading
server accepted -> Success
server rejected -> Failure
Success
load -> Display URL
Display URL
@ilteris
ilteris / SketchSystems.spec
Created October 15, 2018 17:07
Meet Id Request?*
Meet Id Request?*
not blank? -> Loading
Loading
server accepted -> Success
server rejected -> Failure
Success
load -> Display URL
Display URL
@ilteris
ilteris / cloudSettings
Last active September 18, 2018 01:56
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-09-18T01:56:28.554Z","extensionVersion":"v3.1.2"}
var reduceView: UIView = UIView()
reduceView.translatesAutoresizingMaskIntoConstraints = false
addSubview(reduceView)
let label = UILabel()
//style label
label.translatesAutoresizingMaskIntoConstraints = false
addSubview(label)
var constraints = [NSLayoutConstraint]()
import Foundation
protocol Term {
var value: String { get }
}
extension Term {}
struct Statement {
var terms: [Term] = []
mutating func addItem(term: Term) {
terms.append(term)
import UIKit
class StatementView: UIControl, Drawable {
var viewLocation:ViewLocation
let termView:TermView
private func setupView() {
termView = TermView() //gotta pass the /viewLocation enum value to TermView now
}
init(frame: CGRect, item: ViewLocation) {
class PopupInputBox: UIControl {
let label = UILabel()
var item: Statement = Statement() {
didSet {
setupLabel()
}
}
class TermView: UIView {
var item: Term
convenience init(item: Term) {
self.init(frame:CGRectZero, item: item)
}
init(frame: CGRect, item: Term) {
class TermView: UIControl {
var item: Term
convenience init(item: Term) {
self.init(frame:CGRectZero, item: item)
}
init(frame: CGRect, item: Term) {
self.item = item