class MyCell: UITableViewCell {
let gradientLayer = CAGradientLayer()
}
Droplr will auto-copy the sharing link when you take a screenshot. You'll use this on GitHub.
That copied link will look like this: http://d.pr/i/13PDt
To paste that into a GitHub issue:
![](http://d.pr/i/13PDt+)
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
This snippet tested on Yosemite 10.10.1 | |
1. Define your python3 directory (for example, "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/") | |
2. Download "http://download.qt-project.org/official_releases/qt/5.3/5.3.2/qt-opensource-mac-x64-clang-5.3.2.dmg" or any other new version of qt for mac and install it. | |
3. Download SIP sources here: http://www.riverbankcomputing.com/software/sip/download | |
4. Download PyQt5-gpl sources here: http://www.riverbankcomputing.com/software/pyqt/download5 | |
5. Go to your downloads by terminal (for example, "cd ~/Downloads") | |
6. tar xvf PyQt-gpl-5.3.2.tar.gz | |
7. tar xvf sip-4.16.4.tar.gz | |
8. cd sip-4.16.4/ |
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 Cocoa | |
extension String { | |
func dictionaryFromJSON () -> Dictionary<String, AnyObject>? { | |
if let dict = NSJSONSerialization.JSONObjectWithData(self.dataUsingEncoding(NSUTF8StringEncoding, allowLossyConversion: true), | |
options: .AllowFragments, | |
error: nil) as? Dictionary<String,AnyObject> | |
{ |
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
i386 : iPhone Simulator | |
x86_64 : iPhone Simulator | |
arm64 : iPhone Simulator | |
iPhone1,1 : iPhone | |
iPhone1,2 : iPhone 3G | |
iPhone2,1 : iPhone 3GS | |
iPhone3,1 : iPhone 4 | |
iPhone3,2 : iPhone 4 GSM Rev A | |
iPhone3,3 : iPhone 4 CDMA | |
iPhone4,1 : iPhone 4S |
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
in upload handler | |
in file close | |
.. | |
---------------------------------------------------------------------- | |
Ran 2 tests in 0.021s | |
OK |