Skip to content

Instantly share code, notes, and snippets.

Terminal
=============
cd - change directory allows you to navigate via terminal
ls - list all files and folders in directory
ls -la - list files vertically and show all hidden files (like .git and .gitignore)
pwd - print working directory
Git Commands
=============
git add -A
func selectionSort(unsortedArray: [Int]) -> [Int] {
var arr = unsortedArray
var temp: Int
for i in 0..<unsortedArray.count {
temp = i
for j in i..<unsortedArray.count {
if arr[j] < arr[temp] {
temp = j
}
import UIKit
extension UIView {
class func toString() -> String {
let name = NSStringFromClass(self)
let components = name.componentsSeparatedByString(".")
guard let classString = components.last
else { fatalError("") }
@ocwang
ocwang / file1.txt
Created February 14, 2017 16:29
none
string file content
@ocwang
ocwang / makestagram_competencies.txt
Last active June 27, 2017 05:06
Makestagram Section Competencies
Students should be able to apply the knowledge and concepts put forth after each section.
Students will be able to ___.
0. Getting Started
- n/a
1. Setting Up Firebase
- understand what functionality Firebase provides
- identify whether an app will need to use Firebase
events: {
uid_one: {
eventId: {
title: "Example Event",
details: ...
owner: {
uid: uid_one,
username: username
}
}