Skip to content

Instantly share code, notes, and snippets.

Avatar

Erkan YILDIZ erkanyildiz

View GitHub Profile
View gitignore
# OS generated files #
######################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
.LSOverride
@erkanyildiz
erkanyildiz / IstanbulMetrobusStations
Last active Aug 29, 2015
Istanbul Metrobus Stations List with Coordinates (İstanbul Metrobüs Durak/İstasyon Listesi ve Koordinatları)
View IstanbulMetrobusStations
[
{
"station": "Söğütlüçeşme",
"lat": 40.991442,
"long": 29.037863
},
{
"station": "Fikirtepe",
"lat": 40.993656,
"long": 29.047085
@erkanyildiz
erkanyildiz / ProvincesOfTurkey
Created Jul 2, 2014
Provinces of Turkey with coordinates (Türkiye'nin illeri ve koordinatları)
View ProvincesOfTurkey
[
{
"name": "Adana",
"lat": 37.000428,
"long": 35.321976
},
{
"name": "Adıyaman",
"lat": 37.766915,
"long": 38.276659
@erkanyildiz
erkanyildiz / IstanbulM4MetroLineStations
Last active Aug 29, 2015
Istanbul M4 Metro Line (Kadikoy-Kartal) Stations List with Coordinates (İstanbul M4 Metro Hattı (Kadıköy-Kartal) İstasyon Listesi ve Koordinatları)
View IstanbulM4MetroLineStations
[
{
"station": "Kadıköy",
"lat": 40.99017,
"long": 29.0217
},
{
"station": "Ayrılık Çeşmesi",
"lat": 40.9999,
"long": 29.02985
View NSNumber+TurkishSpellOut.h
// erkanyildiz
// 20140728-0035
//
// NSNumber+TurkishSpellOut.h
#import <Foundation/Foundation.h>
@interface NSNumber (TurkishSpellOut)
-(NSString*)spellOutTurkish;
@end
@erkanyildiz
erkanyildiz / NSString+Evaluate.h
Created Jan 5, 2015
A simple expression evaluator category on NSString which can handle adding, subtracting, multiplication and division operations with parentheses precedence.
View NSString+Evaluate.h
// erkanyildiz
// 20150105-1132
//
// NSString+Evaluate.h
#import <Foundation/Foundation.h>
extern NSString* const kEYStringEvaluateError;
@interface NSString (Evaluate)
@erkanyildiz
erkanyildiz / EYUSBDeviceConnectivity.h
Created Mar 11, 2016
A simple helper class to check and get notified if a USB device is connected/disconnected
View EYUSBDeviceConnectivity.h
// erkanyildiz
// 20160311-1158
//
// EYUSBDeviceConnectivity.h
#import <Foundation/Foundation.h>
@interface EYUSBDeviceConnectivity : NSObject
+ (instancetype)sharedInstance;
@property (nonatomic, copy) void (^onDeviceConnect)(NSNotification* notification);
@erkanyildiz
erkanyildiz / NSString+GoogleSuggestions.h
Last active Jul 7, 2016
Google Suggestions category on NSString with language support
View NSString+GoogleSuggestions.h
// erkanyildiz
// 20160707-1213-UTC+09
//
// NSString+GoogleSuggestions.h
#import <Foundation/Foundation.h>
@interface NSString (GoogleSuggestions)
- (void)GoogleSuggestions:(void (^)(NSArray* suggestions, NSError* error))completion;
- (void)GoogleSuggestionsForLanguage:(NSString*)ISOLanguageCode completion:(void (^)(NSArray* suggestions, NSError* error))completion;
@erkanyildiz
erkanyildiz / EYHilbertCurveView.h
Last active Jun 7, 2017
Colorful Hilbert Curves from Level 1 to Level 5
View EYHilbertCurveView.h
// erkanyildiz
// 20170608-0308+0900
//
// EYHilbertCurveView.h
#import <UIKit/UIKit.h>
@interface EYHilbertCurveView : UIView
@erkanyildiz
erkanyildiz / EYInfiniteEquilateralTriangleAnimationView.h
Created Aug 13, 2015
Infinite Equilateral Triangle Animation as Activity Indicator
View EYInfiniteEquilateralTriangleAnimationView.h
// erkanyildiz
// 20150813-1940
//
// EYInfiniteEquilateralTriangleAnimationView.h
#import <UIKit/UIKit.h>
@interface EYInfiniteEquilateralTriangleAnimationView : UIView
- (instancetype) initWithSide:(CGFloat)side andCenter:(CGPoint)center;
- (void) start;
You can’t perform that action at this time.