Skip to content

Instantly share code, notes, and snippets.

View goodreds's full-sized avatar
🎯
Focusing

Allen Goodreds goodreds

🎯
Focusing
View GitHub Profile
@goodreds
goodreds / swift-cheat-sheet.md
Last active February 24, 2018 04:11 — forked from ehuynh/swift-cheat-sheet.md
Swift Cheat Sheet

Basic

Integers

Int

In most cases, you don't need to pick a specific size of integer to use in your code. Swift provides an integer type, Int, which has the same size as the current platform's native word size:

  • On a 32bit platform, Int is the same size as Int32
  • On a 64bit platform, Int is the same size as Int64

Using Git to Manage a Live Web Site

###Overview

As a freelancer, I build a lot of web sites. That's a lot of code changes to track. Thankfully, a Git-enabled workflow with proper branching makes short work of project tracking. I can easily see development features in branches as well as a snapshot of the sites' production code. A nice addition to that workflow is that ability to use Git to push updates to any of the various sites I work on while committing changes.

####Contents