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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>IDEDidComputeMac32BitWarning</key> | |
<true/> | |
</dict> | |
</plist> |
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
//: Playground - noun: a place where people can play | |
import Foundation | |
class Node { | |
let value: Any | |
var next: Node? | |
init(value: Any, next: Node?) { |
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
// | |
// SwiftVersionSourceEditorCommand.swift | |
// WrapperExtension | |
// | |
// Created by Alan Zeino on 7/25/17. | |
// Copyright © 2017 Alan Zeino. All rights reserved. | |
// | |
import Foundation | |
import XcodeKit |
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
// | |
// OurCache.swift | |
// ConflictingSymbolsViaProtocolExtensions | |
// | |
// Created by Alan Zeino on 7/19/17. | |
// Copyright © 2017 Alan Zeino. 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
CollectionView.swift:111:24: error: method does not override any method from its superclass | |
open override func performBatchUpdates(_ updates: (() -> Void)?, completion: ((Bool) -> Void)? = nil) { | |
^ | |
UIKit.UICollectionView:122:15: note: potential overridden instance method 'performBatchUpdates(_:completion:)' here | |
open func performBatchUpdates(_ updates: (() -> Swift.Void)?, completion: ((Bool) -> Swift.Void)? = nil) |
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
#!/usr/bin/env ruby | |
require 'yaml' | |
def find_value_for_key(yaml_file, key) | |
yaml_file.each do |yaml_key, yaml_value| | |
if key == yaml_key | |
return yaml_value | |
end | |
end |
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
#!/usr/bin/env ruby | |
require 'yaml' | |
def find_value_for_key(yaml_file, key) | |
yaml_file.each do |yaml_key, yaml_value| | |
if key == yaml_key | |
return yaml_value | |
end | |
end |
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
@implementation NSArray (YOLO) | |
- (id)firstObject | |
{ | |
if (self.count) | |
return [self objectAtIndex:0]; | |
return nil; | |
} | |
@end |
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
// where 'syncLabel' is a UILabel | |
[UIView animateWithDuration:0.2 | |
delay:0.0 | |
options:0 | |
animations:^{ | |
self.syncLabel.alpha = 0.2; | |
self.syncLabel.transform = CGAffineTransformMakeScale(3.0,3.0); | |
} | |
completion:^(BOOL finished) { | |
self.syncLabel.alpha = 1.0; |
NewerOlder