(Taken from Xcode 10)
- 2x - 40px
- 3x - 60px
| #!/usr/bin/env bash | |
| # Exit if no title is provided | |
| if [ -z "$1" ]; then | |
| echo "Usage: $0 \"Post Title\"" | |
| exit 1 | |
| fi | |
| # Get current date parts | |
| YEAR=$(date +%Y) |
| #!/usr/bin/env bash | |
| # Admin API key goes here | |
| KEY="this is your admin api key" | |
| # Split the key into ID and SECRET | |
| TMPIFS=$IFS | |
| IFS=':' read ID SECRET <<<"$KEY" | |
| IFS=$TMPIFS |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <opml version="2.0"> | |
| <head> | |
| <title>Bloggers</title> | |
| </head> | |
| <body> | |
| <outline title="Personal" text="Personal"> | |
| <outline text="Blog – Cal Newport" type="rss" htmlUrl="https://www.calnewport.com" xmlUrl="https://feeds.feedburner.com/StudyHacks" title="Blog – Cal Newport" /> | |
| <outline type="rss" title="Matt Gemmell" text="Matt Gemmell" htmlUrl="http://mattgemmell.com/" xmlUrl="https://mattgemmell.com/atom-nosponsor.xml?utm_source=MattGemmell.com+Members&utm_campaign=311f4cf54b-Writers_Life_Newsletter_0073&utm_medium=email&utm_term=0_3fbd89148b-311f4cf54b-135530901" /> | |
| <outline xmlUrl="http://kylesethgray.com/rss/" htmlUrl="https://kylesethgray.com/" text="Kyle Seth Gray" title="Kyle Seth Gray" type="rss" /> |
| import UIKit | |
| class InsetLabel: UILabel { | |
| var contentInsets = UIEdgeInsets.zero | |
| override func drawText(in rect: CGRect) { | |
| let insetRect = UIEdgeInsetsInsetRect(rect, contentInsets) | |
| super.drawText(in: insetRect) | |
| } |
| import PlaygroundSupport | |
| import UIKit | |
| class DataSource: NSObject, UITableViewDataSource { | |
| func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { | |
| return 5 | |
| } | |
| func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { |