Skip to content

Instantly share code, notes, and snippets.

View zach-snell's full-sized avatar

Zach Snell zach-snell

  • Pariveda Solutions
  • Dallas, TX
  • 11:53 (UTC -05:00)
View GitHub Profile
@zach-snell
zach-snell / control_flow_and_optionals.swift
Last active October 2, 2016 03:33
Swift 3 Bottom Up: Ep3 - Control Flow and Optionals https://www.youtube.com/watch?v=Fwdu_RRqejk
// MARK: Control Flow
// MARK: if / else if / else
var numberTest = 3
if numberTest < 1 {
print ("true")
} else if numberTest == 2 {
print ("equals two")
@zach-snell
zach-snell / Operators_and_Boolean_Logic.swift
Last active September 25, 2016 00:02
Swift 3 Bottom Up: Ep2 - Math and Boolean Operators (https://youtu.be/MANAkWA4_f0)
import Darwin
// MARK: Operators
// = : Assignment
// + : Addition
// - : Subtraction
// * : Multiplication
// / : Division
// % : Modulus, Divison returning the remainder
// += : Addition followed by an assigment
@zach-snell
zach-snell / Basics_Playground.swift
Last active September 21, 2016 04:03
Swift 3 Bottom Up: Ep1 - Constants, Variables, Types, and Comments
//: Playground - noun: a place where people can play
import UIKit
// Constants - Not Mutable, unchanging
let constantString = "Hello"
// Typed Constant