Skip to content

Instantly share code, notes, and snippets.

View midorikocak's full-sized avatar
😎
cool

Midori Kocak midorikocak

😎
cool
  • Prague
View GitHub Profile
@tsiege
tsiege / The Technical Interview Cheat Sheet.md
Last active April 20, 2024 16:52
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\

@marzapower
marzapower / MPSimpleLog.h
Last active July 17, 2019 08:41
A simple way to make your Xcode console logs more readable. SLog stands for "Short Log", DLog for "Debug Log" and ALog for "Always Log". Automagically, all the NSLog calls will be redirected to the new SLog. SLog just replaces NSLog and removes all the log noise (complete timestamp, app name, memory addresses, etc.). DLog and ALog will also prep…
#define LOG_DEBUG
#define __PREPEND_DATE(format) ([NSString stringWithFormat:@"[%@] %@", [[[NSDate new] description] componentsSeparatedByString:@" "][1], [@"%@" stringByAppendingString:format]])
#define SLog(args,...) do { [[NSFileHandle fileHandleWithStandardOutput] writeData:[[NSString stringWithFormat:__PREPEND_DATE(args), @"", ##__VA_ARGS__] dataUsingEncoding: NSUTF8StringEncoding]]; [[NSFileHandle fileHandleWithStandardOutput] writeData: [@"\n" dataUsingEncoding: NSUTF8StringEncoding]]; } while(0);
#ifdef LOG_DEBUG
#define NSLog SLog
#endif
// ALog always displays output regardless of the DEBUG setting