- Introduction to Functional Programming Johannes Weiß - https://vimeo.com/100786088
- ReactiveCocoa at MobiDevDay Andrew Sardone - https://vimeo.com/65637501
- The Future Of ReactiveCocoa Justin Spahr-Summers - https://www.youtube.com/watch?v=ICNjRS2X8WM
- Enemy of the State Justin Spahr-Summers - https://www.youtube.com/watch?v=7AqXBuJOJkY
- WWDC 2014 Session 229 - Advanced iOS Application Architecture and Patterns Andy Matuschak - https://developer.apple.com/videos/play/wwdc2014/229/
- Functioning as a Functionalist Andy Matuschak - https://www.youtube.com/watch?v=rJosPrqBqrA
- Controlling Complexity in Swift Andy Matuschak - https://realm.io/news/andy-matuschak-controlling-complexity/
This file contains 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 ContactsUI | |
class ExampleViewController: UIViewController { | |
private func dispayContacts() { | |
let contactPicker = CNContactPickerViewController() | |
contactPicker.delegate = self | |
contactPicker.displayedPropertyKeys = [CNContactGivenNameKey, CNContactPhoneNumbersKey] | |
contactPicker.predicateForEnablingContact = NSPredicate(format: "phoneNumber.@count > 0") | |
contactPicker.predicateForSelectionOfContact = NSPredicate(value: false) |
This file contains 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
// | |
// JuxNetworkActivityIndicator.swift | |
// Bilal Arslan | |
// | |
// Created by BILAL ARSLAN on 14.12.2018. | |
// Copyright © 2018 BILAL ARSLAN. All rights reserved. | |
// | |
import UIKit |
This file contains 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
// | |
// PlistDecoder.swift | |
// Bilal Arslan | |
// | |
// Created by BILAL ARSLAN on 14.12.2018. | |
// Copyright © 2018 BILAL ARSLAN. All rights reserved. | |
// | |
import Foundation |
This file contains 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
disabled_rules: # rule identifiers to exclude from running | |
# Number of function parameters should be low. | |
- function_parameter_count | |
# Type bodies should not span too many lines. | |
- type_body_length | |
# Complexity of function bodies should be limited. | |
- cyclomatic_complexity |
This file contains 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 | |
/// A validation rule for text input. | |
public enum TextValidationRule { | |
/// Any input is valid, including an empty string. | |
case noRestriction | |
/// The input must not be empty. | |
case nonEmpty | |
/// The enitre input must match a regular expression. A matching substring is not enough. | |
case regularExpression(NSRegularExpression) |
This file contains 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
let firstRequestGroup = DispatchGroup() | |
let secondRequestGroup = DispatchGroup() | |
for () { | |
requestGroup.enter() | |
firstRequest() { | |
print("DEBUG: FIRST Request") | |
if success { | |
requestGroup.enter() | |
secondRequest() { |
This file contains 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
#!/bin/sh | |
echo downloading pdf.. | |
wget www.pdf995.com/samples/pdf.pdf | |
echo pdf downloaded. | |
echo changing the name from pdf.pdf to new-name.pdf.. | |
mv pdf.pdf new-name.pdf |
This file contains 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
git log --graph --full-history --all --color \ | |
--pretty=format:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s" | |
#Example Output: | |
* 3876a55 (origin/master, origin/HEAD, master) Merge branch 'master' of https://github.com/ArslanBilal/Instagram-Client | |
|\ | |
| * 7d677fa Merge pull request #1 from ArslanBilal/develop | |
| |\ | |
* | | d799dbc (HEAD, origin/develop, develop) Update README.md for new "Infinite scroll through paginated set of results" feature | |
* | | 88ac929 Infinite scroll through paginated set of results is added |
This file contains 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 <Foundation/Foundation.h> | |
#if DEBUG == 0 | |
#define DebugLog(...) | |
#elif DEBUG == 1 | |
#define DebugLog(...) NSLog(__VA_ARGS__) | |
#endif | |
int main() | |
{ |
NewerOlder