Recursive mutexes are a hack. There's nothing wrong with using them, but they're a crutch. Got a broken leg or library? Fine, use the crutch. But at least be aware that you're using a crutch, and why; and once in a while check out the leg (or library) to be sure you still need the crutch. And if it's not healing up, go see a doctor, because that's just not OK. When you have no choice, there's no shame in using a crutch... but you can't run very well on a crutch, and you'll also be slowing down anyone who depends on you.
This file contains hidden or 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
/System/iOSSupport | |
├── System | |
│ └── Library | |
│ ├── AccessibilityBundles | |
│ │ ├── AVFoundation.axbundle | |
│ │ ├── AVKit.axbundle | |
│ │ ├── AccessibilitySettingsLoader.bundle | |
│ │ ├── AdSheet.axbundle | |
│ │ ├── AddressBook-Assistant.axbundle | |
│ │ ├── AddressBookUIFramework.axbundle |
This file contains hidden or 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
xccov(1) xccov(1) | |
NAME | |
xccov - view Xcode coverage data in human-readable or machine-parseable format. | |
SYNOPSIS | |
xccov view [--only-targets | --files-for-target target_name | --functions-for-file name_or_path] |
This file contains hidden or 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
//: Playground - noun: a place where people can play | |
import Foundation | |
let json = """ | |
[ | |
{"person":{"name":"foo", "age":20}}, | |
{"house":{"size":"large"}} | |
] | |
""".data(using: .utf8)! |
This file contains hidden or 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
// | |
// main.cpp | |
// jpm-code-dojo-2015-05-cpp | |
// | |
// Created by David Wagner on 18/05/2015. | |
// Copyright (c) 2015 David Wagner. All rights reserved. | |
// | |
#include <iostream> | |
#include <set> |
This file contains hidden or 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 Cocoa | |
//: Types to make my typing life simpler | |
typealias Cell = Int | |
typealias Board = [Cell] | |
typealias CellPosition = Int | |
typealias PackedBoard = Int64 | |
typealias AddNeighbours = (Board, CellPosition) -> Cell | |
typealias SwapNeighbours = (Board, CellPosition) -> Board | |
typealias Mutator = (add:AddNeighbours, swap:SwapNeighbours) |
This file contains hidden or 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 <UIKit/UIKit.h> | |
@interface NAHMainTable : UITableViewController | |
@end |
This file contains hidden or 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
- (NSArray *)tableView:(UITableView *)tableView editActionsForRowAtIndexPath:(NSIndexPath *)indexPath { | |
UITableViewRowAction *moreAction = [UITableViewRowAction rowActionWithStyle:UITableViewRowActionStyleDefault title:@"More" handler:^(UITableViewRowAction *action, NSIndexPath *indexPath){ | |
// maybe show an action sheet with more options | |
[self.tableView setEditing:NO]; | |
}]; | |
moreAction.backgroundColor = [UIColor lightGrayColor]; | |
UITableViewRowAction *blurAction = [UITableViewRowAction rowActionWithStyle:UITableViewRowActionStyleDefault title:@"Blur" handler:^(UITableViewRowAction *action, NSIndexPath *indexPath){ | |
[self.tableView setEditing:NO]; | |
}]; |
This file contains hidden or 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
### Keybase proof | |
I hereby claim: | |
* I am mnem on github. | |
* I am mnem (https://keybase.io/mnem) on keybase. | |
* I have a public key whose fingerprint is 1D88 0A68 B233 8A02 1B92 393A 17C9 EF8D 13F7 7DC2 | |
To claim this, I am signing this object: |
NewerOlder