Skip to content

Instantly share code, notes, and snippets.

View andrey-str's full-sized avatar

Andrey Streltsov andrey-str

View GitHub Profile
@andrey-str
andrey-str / NSString+Additions.h
Created December 25, 2014 09:14
String with format macros
#define $S(format, ...) [NSString stringWithFormat:format, ## __VA_ARGS__]
@andrey-str
andrey-str / UIColor+Hex.h
Last active August 29, 2015 14:12
Convert hex color to UIColor
//
// UIColor+Hex.h
// Gists
//
// Created by Andrey Streltsov on 24 Dec 2014.
// Copyright (c) 2014 Scopicsoftware. All rights reserved.
//
#import <UIKit/UIKit.h>
@andrey-str
andrey-str / xcodeSwitch.sh
Created March 20, 2012 07:47 — forked from doronkatz/xcodeSwitch.sh
XCode switch script
$ sudo /usr/bin/xcode-select -switch /Applications/Xcode.app