(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.
| #import <UIKit/UIKit.h> | |
| @interface NumberPadDoneBtn : UIView | |
| @end | |
| @interface NumberPadButton : UIButton | |
| @end |
| // | |
| // 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 |
(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.
| - (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]; |
| #!/usr/bin/env bash | |
| # | |
| # Originally from https://gist.github.com/IanVaughan/2902499 | |
| # | |
| # authors: Ian Vaughan | |
| # Jacob Zimmerman | |
| # | |
| # usage: uninstall_gems [<version> ...] | |
| # | |
| # examples: |
| // #!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/ |
| # 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. |
| # xcode-icon-tag.sh | |
| # The MIT License (MIT) | |
| # | |
| # Copyright (c) <2015> <Valerio Mazzeo> | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| # copies of the Software, and to permit persons to whom the Software is |
This guide assumes that you recently run brew upgrade postgresql and discovered to your dismay that you accidentally bumped from one major version to another: say 9.3.x to 9.4.x. Yes, that is a major version bump in PG land.
First let's check something.
brew info postgresqlThe top of what gets printed as a result is the most important:
| (* | |
| Export All Safari Tabs in All Open Windows to a Markdown File | |
| July 13, 2015 | |
| // SCRIPT PAGE | |
| http://hegde.me/urlsafari | |
| // ORIGINAL SCRIPT ON WHICH THIS SCRIPT IS BUILT | |
| http://veritrope.com/code/export-all-safari-tabs-to-a-text-file |