Skip to content

Instantly share code, notes, and snippets.

View ashikahmad's full-sized avatar

Ashik Uddin Ahmad ashikahmad

View GitHub Profile
@ashikahmad
ashikahmad / Interesting Git Repos.md
Last active August 29, 2015 14:06
All GitHub (and possibly other git) repos that I may like to remember.

Useful Codes

//
// category_file.h
@interface SomeClass (Private)
@property (nonatomic, assign) id newProperty;
@end
NSString * const kNewPropertyKey = @"kNewPropertyKey";
@implementation SomeClass (Private)
@dynamic newProperty;
- (void)setNewProperty:(id)aObject
@ashikahmad
ashikahmad / pretty_prompt
Last active December 29, 2015 11:09
A pretty prompt for terminal or iTerm. (Inspired by this link: https://github.com/Lokaltog/powerline). Check attached images to see what to achieve. Check pretty_prompt_HowTo.md for instructions.
# Install and use menlo font-patch from: https://gist.github.com/qrush/1595572
# Setting GIT prompt
b_black=`tput setab 0`
b_red=`tput setab 9`
b_green=`tput setab 2`
b_cyan=`tput setab 14`
b_white=`tput setab 15`
f_black=`tput setaf 0`
//
// KSDIdlingWindow.h
//
// Created by Brian King on 4/13/10.
// Copyright 2010 King Software Designs. All rights reserved.
//
// Based off:
// http://stackoverflow.com/questions/273450/iphone-detecting-user-inactivity-idle-time-since-last-screen-touch
//
@ashikahmad
ashikahmad / BetterNSLog.md
Last active December 11, 2015 20:58
A quick replacement to NSLog in your Obj C project

#Better NSLog A quick replacement to NSLog in your Obj C project

This will need no extra effort at all and changes the way you see your logs in debug area.

###How it looks in Debug Area:

Before:

2013-01-29 15:46:24.076 Looptivity[76673:c07] ----2013-01-28 19:02:47 +0000