Skip to content

Instantly share code, notes, and snippets.

@zacwolff
zacwolff / Tabbar.Swift
Created November 21, 2016 21:30 — forked from calt/Tabbar.Swift
UITabBar with custom height in Swift
extension UITabBar {
override public func sizeThatFits(size: CGSize) -> CGSize {
super.sizeThatFits(size)
var sizeThatFits = super.sizeThatFits(size)
sizeThatFits.height = 71
return sizeThatFits
}
}
@zacwolff
zacwolff / AsyncImageSwift
Created August 7, 2016 15:13 — forked from anonymous/AsyncImageSwift
Async Image download with Swift 2.2
import UIKit
import Foundation
class ViewController: UIViewController {
@IBOutlet var mainTitle: UILabel!
@IBOutlet var mainPoster: UIImageView!
override func viewDidLoad() {
super.viewDidLoad()
@zacwolff
zacwolff / _verify-repair-permissions-disk.md
Created May 7, 2016 22:49 — forked from bzerangue/_verify-repair-permissions-disk.md
Mac OS X Utilities via Terminal: (Verify and Repair: Disk Permissions AND Disk / Software Update / TimeMachine)

Verify and Repair Disk Permissions via Terminal (Mac OS X)

Verify Permissions

diskutil verifyPermissions /

Repair Permissions

diskutil repairPermissions /

@zacwolff
zacwolff / GradientBackgroundView.swift
Last active May 7, 2016 12:46 — forked from delba/BackgroundView.swift
Gradient background in Swift
//
// BackgroundView.swift
// Quiz
//
// Created by Damien D on 09/09/2014.
// Copyright (c) 2014 Damien D. All rights reserved.
//
import UIKit
// AppDelegate.swift
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
var activeCornerRadius : Int = 6
var incativeCornerRadius : Int = 0
@zacwolff
zacwolff / Constants.swift
Created December 15, 2015 10:10 — forked from mikesparr/Constants.swift
Swift IOS Architecture Quick Start
//
// Constants.swift
// Goomzee
//
// Created by Michael Sparr on 11/11/15.
//
import Foundation
// MARK: - Environment
@zacwolff
zacwolff / hubot-slack-heroku.md
Last active August 30, 2015 22:15 — forked from trey/hubot-slack-heroku.md
Steps to Install Hubot in Slack using Heroku
@zacwolff
zacwolff / 0_reuse_code.js
Last active August 29, 2015 14:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console