Skip to content

Instantly share code, notes, and snippets.

View joeltrew's full-sized avatar

Joel Trew joeltrew

View GitHub Profile
import UIKit
class AsyncOperation : NSOperation{
enum State{
case Waiting, Executing, Finished
}
@Marcocanc
Marcocanc / Label.swift
Last active September 3, 2023 09:14
A UILabel subclass that can hold attributes and apply them to text
import UIKit
/// A UILabel subclass that can hold attributes and apply them to text
@IBDesignable
final class Label: UILabel {
convenience init(attributes: [NSAttributedStringKey: Any]) {
self.init()
self.attributes = attributes
}
// MARK: Properties
@doctorpangloss
doctorpangloss / repetition_algorithm.ipynb
Last active November 23, 2023 19:13
Supermemo 2 Algorithm, Unobscured (Python 3)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.