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
// | |
// BadTableViewController.swift | |
// TableViewMemoryManagement | |
// | |
// Created by Nicholas Swift on 1/24/17. | |
// Copyright © 2017 Nicholas Swift. All rights reserved. | |
// | |
import UIKit |
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
// | |
// BetterTableViewController.swift | |
// TableViewMemoryManagement | |
// | |
// Created by Nicholas Swift on 1/24/17. | |
// Copyright © 2017 Nicholas Swift. All rights reserved. | |
// | |
import UIKit | |
import AlamofireImage |
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 BestTableViewCell: UITableViewCell { | |
// MARK: - Instance Vars | |
@IBOutlet weak var mainStackView: UIStackView! | |
@IBOutlet weak var titleLabel: UILabel! | |
@IBOutlet weak var mainImageView: UIImageView! | |
@IBOutlet weak var bodyLabel: UILabel! | |
// MARK: - View Lifecycle | |
override func awakeFromNib() { |
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 Node(): | |
"""A node class for A* Pathfinding""" | |
def __init__(self, parent=None, position=None): | |
self.parent = parent | |
self.position = position | |
self.g = 0 | |
self.h = 0 |