- 2007 - iPhone
- 2008 - iPhone 3G
- 2009 - iPhone 3GS
- 2010 - iPhone 4 (new design)
- 2011 - iPhone 4s
- 2012 - iPhone 5 (new design)
- 2013 - iPhone 5s and iPhone 5c
- 2014 - iPhone 6 and iPhone 6 Plus (new design)
- 2015 - iPhone 6s and iPhone 6s Plus
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
[ | |
"aback", | |
"abase", | |
"abate", | |
"abbey", | |
"abbot", | |
"abhor", | |
"abide", | |
"abled", | |
"abode", |
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
function xcodeclean | |
echo "Cleaning Xcode Derived Data folder..." | |
command rm -frd ~/Library/Developer/Xcode/DerivedData/* | |
echo "Cleaning Xcode caches folder..." | |
command rm -frd ~/Library/Caches/com.apple.dt.Xcode/* | |
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
function ll | |
command ls -lashG $argv | |
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
{ | |
"hello": "world" | |
} |
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
public extension Array { | |
/// Retrieve an item from an array by index with optional result | |
/// - parameter index: Index of the item to be retrieved | |
/// - returns: an item by index | |
public func getAt(index index: Int) -> Element? { | |
if count > index { | |
return self[index] | |
} | |
return nil |
- Proposal: SE-NNNN
- Authors: Eneko Alonso
- Review Manager: TBD
- Status: Awaiting implementation
Add support for indirect
modifier keyword for struct properties
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
// Cartesian product of two arrays | |
func * <U, V>(lhs: [U], rhs: [V]) -> [(U, V)] { | |
lhs.flatMap { left in | |
rhs.map { right in | |
(left, right) | |
} | |
} | |
} | |
print([1, 2, 3] * ["a", "b"]) |
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
function gp | |
echo "Pulling latest code..." | |
git pull | |
git pull --tags -f | |
echo "\nDeleting local branches that were removed in remote..." | |
git fetch -p | |
git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -D | |
echo "\nRemaining local branches:" | |
git branch -vv | |
end |