Skip to content

Instantly share code, notes, and snippets.

View Nicholas-Swift's full-sized avatar

Nick Swift Nicholas-Swift

  • SCH Games
  • San Francisco, California
View GitHub Profile
@Nicholas-Swift
Nicholas-Swift / astar.py
Last active November 1, 2024 11:04
A* pathfinding algorithm. Please see comments below for a fork of this gist that includes bug fixes!
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
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() {
//
// BetterTableViewController.swift
// TableViewMemoryManagement
//
// Created by Nicholas Swift on 1/24/17.
// Copyright © 2017 Nicholas Swift. All rights reserved.
//
import UIKit
import AlamofireImage
//
// BadTableViewController.swift
// TableViewMemoryManagement
//
// Created by Nicholas Swift on 1/24/17.
// Copyright © 2017 Nicholas Swift. All rights reserved.
//
import UIKit