(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
#!/usr/bin/env bash | |
# | |
# Originally from https://gist.github.com/IanVaughan/2902499 | |
# | |
# authors: Ian Vaughan | |
# Jacob Zimmerman | |
# | |
# usage: uninstall_gems [<version> ...] | |
# | |
# examples: |
- (void)reconfigureVisibleCells | |
{ | |
NSInteger sectionCount = [self numberOfSectionsInTableView:self.tableView]; | |
for (NSInteger section = 0; section < sectionCount; ++section) { | |
NSInteger rowCount = [self tableView:self.tableView numberOfRowsInSection:section]; | |
for (NSInteger row = 0; row < rowCount; ++row) { | |
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:row inSection:section]; | |
UITableViewCell *cell = [self.tableView cellForRowAtIndexPath:indexPath]; |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
// | |
// FlowersTableViewController.swift | |
// Flowers++ | |
// | |
// Created by Mohammad Azam on 6/6/14. | |
// Copyright (c) 2014 AzamSharp Consulting LLC. All rights reserved. | |
// www.azamsharp.com | |
// www.youtube.com/azamsharp |
#import <UIKit/UIKit.h> | |
@interface NumberPadDoneBtn : UIView | |
@end | |
@interface NumberPadButton : UIButton | |
@end |
BEGIN:VCALENDAR | |
VERSION:2.0 | |
PRODID:-//Apple Inc.//Mac OS X 10.9.3//EN | |
CALSCALE:GREGORIAN | |
X-COMMENT: Copy your timezone data from an exported .ics file from Reminders.app. | |
BEGIN:VTIMEZONE | |
TZID:America/Denver | |
BEGIN:DAYLIGHT | |
TZOFFSETFROM:-0700 |
This entire guide is based on an old version of Homebrew/Node and no longer applies. It was only ever intended to fix a specific error message which has since been fixed. I've kept it here for historical purposes, but it should no longer be used. Homebrew maintainers have fixed things and the options mentioned don't exist and won't work.
I still believe it is better to manually install npm separately since having a generic package manager maintain another package manager is a bad idea, but the instructions below don't explain how to do that.
Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.
#import <UIKit/UIKit.h> | |
@interface UIButton (TCCustomFont) | |
@property (nonatomic, copy) NSString* fontName; | |
@end | |
@implementation UIButton (TCCustomFont) | |
- (NSString *)fontName { | |
return self.titleLabel.font.fontName; |
I've done the same process every couple years since 2013 (Mountain Lion, Mavericks, High Sierra, Catalina) and I updated the Gist each time I've done it.
I kinda regret for not using something like Boxen (or anything similar) to automate the process, but TBH I only actually needed to these steps once every couple years...