Skip to content

Instantly share code, notes, and snippets.

View erkanyildiz's full-sized avatar

Erkan YILDIZ erkanyildiz

View GitHub Profile
# OS generated files #
######################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
.LSOverride
@erkanyildiz
erkanyildiz / IstanbulMetrobusStations
Last active August 29, 2015 14:03
Istanbul Metrobus Stations List with Coordinates (İstanbul Metrobüs Durak/İstasyon Listesi ve Koordinatları)
[
{
"station": "Söğütlüçeşme",
"lat": 40.991442,
"long": 29.037863
},
{
"station": "Fikirtepe",
"lat": 40.993656,
"long": 29.047085
@erkanyildiz
erkanyildiz / EYUtils.h
Last active January 29, 2020 03:11
Utilities for Cocoa
// erkanyildiz
// 20191228-2138+0900
//
// EYUtils.h
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#ifndef DEBUG_MODE
#define DEBUG_MODE 1
@erkanyildiz
erkanyildiz / ProvincesOfTurkey
Created July 2, 2014 07:51
Provinces of Turkey with coordinates (Türkiye'nin illeri ve koordinatları)
[
{
"name": "Adana",
"lat": 37.000428,
"long": 35.321976
},
{
"name": "Adıyaman",
"lat": 37.766915,
"long": 38.276659
@erkanyildiz
erkanyildiz / IstanbulM4MetroLineStations
Last active August 29, 2015 14:04
Istanbul M4 Metro Line (Kadikoy-Kartal) Stations List with Coordinates (İstanbul M4 Metro Hattı (Kadıköy-Kartal) İstasyon Listesi ve Koordinatları)
[
{
"station": "Kadıköy",
"lat": 40.99017,
"long": 29.0217
},
{
"station": "Ayrılık Çeşmesi",
"lat": 40.9999,
"long": 29.02985
@erkanyildiz
erkanyildiz / NSNumber+TurkishSpellOut.h
Created July 27, 2014 21:41
NSNumber+TurkishSpellOut
// erkanyildiz
// 20140728-0035
//
// NSNumber+TurkishSpellOut.h
#import <Foundation/Foundation.h>
@interface NSNumber (TurkishSpellOut)
-(NSString*)spellOutTurkish;
@end
@erkanyildiz
erkanyildiz / NSString+Evaluate.h
Created January 5, 2015 09:37
A simple expression evaluator category on NSString which can handle adding, subtracting, multiplication and division operations with parentheses precedence.
// erkanyildiz
// 20150105-1132
//
// NSString+Evaluate.h
#import <Foundation/Foundation.h>
extern NSString* const kEYStringEvaluateError;
@interface NSString (Evaluate)
@erkanyildiz
erkanyildiz / NSString+GoogleSuggestions.h
Last active July 7, 2016 05:19
Google Suggestions category on NSString with language support
// 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 / EYVersionLabel.h
Last active November 28, 2018 14:33
Convenience label for displaying app name, app version and copyright dates automatically
// erkanyildiz
// 20161004-1321+0900
//
// EYVersionLabel.h
#import <UIKit/UIKit.h>
@interface EYVersionLabel : UILabel
@property (nonatomic, strong) NSNumber* initialYear;
@end
@erkanyildiz
erkanyildiz / iOSDevices
Last active October 1, 2022 22:18
List of iOS devices with names and cpu models
{
"iPhone1,1":
{
"name": "iPhone",
"cpu": "RISC ARM 11"
},
"iPhone1,2":
{
"name": "iPhone 3G",