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 / EYUtils.h
Last active Jan 29, 2020
Utilities for Cocoa
View EYUtils.h
// 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 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 / 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 / EYVersionLabel.h
Last active Nov 28, 2018
Convenience label for displaying app name, app version and copyright dates automatically
View EYVersionLabel.h
// erkanyildiz
// 20161004-1321+0900
//
// EYVersionLabel.h
#import <UIKit/UIKit.h>
@interface EYVersionLabel : UILabel
@property (nonatomic, strong) NSNumber* initialYear;
@end
@erkanyildiz
erkanyildiz / iOSDevices
Last active Sep 24, 2019
List of iOS devices with names and cpu models
View iOSDevices
{
"iPhone1,1":
{
"name": "iPhone",
"cpu": "RISC ARM 11"
},
"iPhone1,2":
{
"name": "iPhone 3G",
You can’t perform that action at this time.