One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| // 1. First Create a Dummy UIViewController that has a root relation with the UITabBarController | |
| // 2. Make this controller implement a UITabBarControllerDelegate | |
| // 3. In ViewDidLoad: | |
| override func viewDidLoad() { | |
| super.viewDidLoad() | |
| self.tabBarController?.delegate = self | |
| } | |
| // 4. Implement this delegate method: | |
| func tabBarController(tabBarController: UITabBarController, didSelectViewController viewController: UIViewController) { | |
| let isModalTab = viewController == self |
| # set cache proxy | |
| sudo vi /etc/apt/apt.conf << EOT | |
| Acquire::http::Proxy "http://192.168.88.10:3142"; | |
| Acquire::HTTP::Proxy::192.168.88.10 "DIRECT"; | |
| EOT | |
| sudo apt-get update | |
| sudo apt-get upgrade |
| #!/usr/bin/env bash | |
| sudo -i; | |
| apt-get update; | |
| apt-get install --yes \ | |
| git \ | |
| bison \ | |
| autoconf \ |
| #!/bin/bash | |
| # Sometimes you need to move your existing git repository | |
| # to a new remote repository (/new remote origin). | |
| # Here are a simple and quick steps that does exactly this. | |
| # | |
| # Let's assume we call "old repo" the repository you wish | |
| # to move, and "new repo" the one you wish to move to. | |
| # | |
| ### Step 1. Make sure you have a local copy of all "old repo" | |
| ### branches and tags. |
| --- | |
| # ^^^ YAML documents must begin with the document separator "---" | |
| # | |
| #### Example docblock, I like to put a descriptive comment at the top of my | |
| #### playbooks. | |
| # | |
| # Overview: Playbook to bootstrap a new host for configuration management. | |
| # Applies to: production | |
| # Description: | |
| # Ensures that a host is configured for management with Ansible. |
| // | |
| // RBResizer.swift | |
| // Locker | |
| // | |
| // Created by Hampton Catlin on 6/20/14. | |
| // Copyright (c) 2014 rarebit. All rights reserved. | |
| // | |
| import UIKit |
| # xcode-build-bump.sh | |
| # @desc Auto-increment the build number every time the project is run. | |
| # @usage | |
| # 1. Select: your Target in Xcode | |
| # 2. Select: Build Phases Tab | |
| # 3. Select: Add Build Phase -> Add Run Script | |
| # 4. Paste code below in to new "Run Script" section | |
| # 5. Drag the "Run Script" below "Link Binaries With Libraries" | |
| # 6. Insure that your starting build number is set to a whole integer and not a float (e.g. 1, not 1.0) |