(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.
| # Assume we are in your home directory | |
| cd ~/ | |
| # Clone the repo from GitLab using the `--mirror` option | |
| $ git clone --mirror git@your-gitlab-site.com:mario/my-repo.git | |
| # Change into newly created repo directory | |
| $ cd ~/my-repo.git | |
| # Push to GitHub using the `--mirror` option. The `--no-verify` option skips any hooks. |
| // #!Swift-1.1 | |
| import Foundation | |
| // MARK: - (1) classes | |
| // Solution 1: | |
| // - Use classes instead of struct | |
| // Issue: Violate the concept of moving model to the value layer | |
| // http://realm.io/news/andy-matuschak-controlling-complexity/ |
| #!/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.