This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Updates all plug-ins to be compatible with the latest Xcode and Xcode-beta | |
# | |
plugins_location="~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins" | |
# Get Xcode's version | |
current_xcode_version="$(defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID)" |
Action | Shortcut |
---|---|
Add a Cc | ⇧⌘c |
Mark as unread | ⇧u |
Undo | z |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html, body, .container, .content { | |
height: 100%; | |
} | |
.container, .content { | |
position: relative; | |
} | |
.proper-content { | |
padding-top: 40px; /* >= navbar height */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// swift version 4.1 | |
import UIKit | |
/// Ready made `UITableViewDataSource` for those simple scenarios in which you want to display | |
/// homogeneous data, of type `T`, in a single section, on a standard `UITableViewCell`. | |
class SimpleDataSource<T>: NSObject, UITableViewDataSource { | |
typealias Item = T | |
let data: [T] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run your tests in Xcode, copy the result in the console in a file, the run | |
# | |
# cat your_file | ruby sort-tests.rb | |
report = ARGF.read | |
times = report.lines | |
.select { |l| l.match(/Test Case .* \((\d*\.\d*) seconds\)/).nil? == false } | |
.map do |m| | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Setup your local copy of the app. Run this script immediately after cloning | |
# the codebase. | |
# | |
set -eo pipefail | |
# First ensure all the required tools are available |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Eureka | |
/// This row is build based on the implementation of `ButtonRowWithPresent`, and | |
/// allows consurmers to set a detail value for the row, which is not possible | |
/// in the other. | |
/// | |
/// To set the value use `$0.cellUpdate { cell, _ in cell.detailLabel?.text = "value" }`. | |
/// | |
/// - See: https://github.com/xmartlabs/Eureka/blob/master/Source/Rows/ButtonRowWithPresent.swift | |
open class _TitleAndValueRowWithPresenter<VCType: TypedRowControllerType>: Row<LabelCellOf<VCType.RowValue>>, PresenterRowType where VCType: UIViewController { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
/// This `NSDate` extension provides a builder method intended to be used to | |
/// simplify creating dates in unit tests. | |
extension NSDate { | |
static func date( | |
year year: Int = 1970, | |
month: Int = 01, | |
day: Int = 01, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cross = "\u2718" # => ✘ | |
love = "\u2665" # => ♥ | |
tick = "\u2714" # => ✔ | |
warning = "\u26A0" # => ⚠ |