Skip to content

Instantly share code, notes, and snippets.

@scott-recker
scott-recker / KeyboardTableView.swift
Created January 11, 2019 17:48 — forked from douglashill/KeyboardTableView.swift
A UITableView that allows navigation and selection using a hardware keyboard.
// Douglas Hill, December 2018
// Made for https://douglashill.co/reading-app/
import UIKit
/// A table view that allows navigation and selection using a hardware keyboard.
/// Only supports a single section.
class KeyboardTableView: UITableView {
// These properties may be set or overridden to provide discoverability titles for key commands.
var selectAboveDiscoverabilityTitle: String?
- (void)testCompleteEnrollment {
BNRemoteDepositStartViewController *const startController = [BNRemoteDepositStartViewController new];
__block UIAlertController *alertController;
BNValidateBlock validator = extractArgTo(alertController);
id mockController = OCMPartialMock(startController);
[mockController setExpectationOrderMatters:YES];
OCMExpect([mockController setShouldShowSignUpSubmitted:YES]);
@scott-recker
scott-recker / brew-perms.sh
Created June 9, 2016 20:05 — forked from jaibeee/brew-perms.sh
Configure homebrew permissions to allow multiple users on MAC OSX. Any user from the admin group will be able to manage the homebrew and cask installation on the machine.
#!/bin/sh
# Configure homebrew permissions to allow multiple users on MAC OSX.
# Any user from the admin group will be able to manage the homebrew and cask installation on the machine.
# allow admins to manage homebrew's local install directory
chgrp -R admin /usr/local
chmod -R g+w /usr/local
# allow admins to homebrew's local cache of formulae and source files
chgrp -R admin /Library/Caches/Homebrew