Skip to content

Instantly share code, notes, and snippets.

@ohsc
ohsc / RoundedCornerImageA.m
Created December 29, 2011 03:08
RoundedCornerImage
//
// RoundedCornerImageA.m
// tutugogo
//
// Created by ohsc on 11-12-28.
// Copyright (c) 2011年 __MyCompanyName__. All rights reserved.
//
#import "RoundedCornerImageA.h"
@ohsc
ohsc / UIColor+Hex.h
Created December 31, 2011 05:15
Enable hex value with UIColor
//
// UIColor+Hex.h
//
//
// Created by 超 沈 on 11-12-31.
// Copyright (c) 2011年 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
@ohsc
ohsc / BlockTest.m
Created January 24, 2014 08:47
Test Block in loops
#import <Foundation/Foundation.h>
int main(int argc, char *argv[]) {
@autoreleasepool {
typedef void (^MyBlock)();
MyBlock blocks[12];
int i = 0;
for (; i<5; i++) {
blocks[i] = ^(){
#!/bin/bash
# This script automatically sets the version and short version string of
# an Xcode project from the Git repository containing the project.
#
# To use this script in Xcode, add the script's path to a "Run Script" build
# phase for your application target.
set -o errexit
set -o nounset