We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
This file contains hidden or 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
mr Marathi | |
bs Bosnian | |
ee_TG Ewe (Togo) | |
ms Malay | |
kam_KE Kamba (Kenya) | |
mt Maltese | |
ha Hausa | |
es_HN Spanish (Honduras) | |
ml_IN Malayalam (India) | |
ro_MD Romanian (Moldova) |
This file contains hidden or 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/UIKit.h> | |
extern NSString * const SwipeCollectionViewCurrentSwipeCell; | |
@interface ZLCSwipeCollectionViewCell : UICollectionViewCell | |
@property (nonatomic,strong) UIView *revealView; | |
/// default: YES, if you want to disable panGestureRecoginzer, you can use this property. | |
@property (nonatomic,assign) BOOL canSwiped; | |
/// optional: when only use default revealView, you maybe set this property, eg: xxx.deleteButtonTitle = @"delete" | |
@property (nonatomic,copy) NSString *deleteButtonTitle; |
This file contains hidden or 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
func createBitmapContext (pixelsWide pixelsWide: Int, pixelsHigh: Int) -> CGContextRef? { | |
//set colorSpace | |
let colorSpace = CGColorSpaceCreateWithName(kCGColorSpaceGenericRGB) | |
//set 32 bits per pixel, 8 bits per component, kCGImageAlphaPremultipliedLast | |
let bitmapBytesPerRow = (pixelsWide * 4) | |
let context = CGBitmapContextCreate(nil, pixelsWide, pixelsHigh, 8, bitmapBytesPerRow, colorSpace, CGImageAlphaInfo.PremultipliedLast.rawValue) | |
return context | |
} | |
This file contains hidden or 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
enum HTTPMethod: String { | |
case GET,POST,UPDATE,PUT | |
} | |
func getDataFromServer(method: HTTPMethod) { | |
//request | |
let url = URL(string: "https://httpbin.org/\(method)") | |
var request = URLRequest(url: url!) | |
request.httpMethod = method.rawValue | |
request.cachePolicy = .reloadIgnoringLocalCacheData |