Skip to content

Instantly share code, notes, and snippets.

View kenshin03's full-sized avatar

Kenny Tang kenshin03

View GitHub Profile
[UIView animateWithDuration:40.0f
delay:0.0f
options:
UIViewAnimationOptionCurveLinear |
UIViewAnimationOptionAutoreverse |
UIViewAnimationOptionRepeat
animations:^{
[UIView setAnimationRepeatCount:10];
CGAffineTransform moveRight = CGAffineTransformMakeTranslation(20, -100);
CGAffineTransform zoomIn = CGAffineTransformMakeScale(1.5, 1.5);
@kenshin03
kenshin03 / gist:29447d217bce8286e108
Created February 5, 2015 06:02
liquidfun pod spec
{
"name": "liquidfun",
"license": {
"type": "zlib"
},
"version": "1.1.0",
"summary": "LiquidFun is a 2D physics engine for games.",
"description": "LiquidFun is an extension of Box2D. It adds a particle based fluid and soft body simulation to the rigid body functionality of Box2D.",
"homepage": "http://google.github.io/liquidfun/",
"authors": "Google",
@kenshin03
kenshin03 / gist:6c6da73b7b180023c92e
Created August 28, 2014 17:54
uncrustify config file
#
# uncrustify config file for objective-c and objective-c++
#
indent_with_tabs = 0 # 1=indent to level only, 2=indent with tabs
output_tab_size = 4 # new tab size
indent_columns = output_tab_size
indent_label = 2 # pos : absolute col, neg : relative column
indent_align_assign = FALSE
indent_oc_block = true
//
// PSHCoverFeedViewController.m
// SocialHome
//
// Created by Kenny Tang on 4/14/13.
// Copyright (c) 2013 corgitoergosum.net. All rights reserved.
//
#import "FeedItem.h"
#import "ItemSource.h"
//
// PSHCoverFeedViewController.m
// SocialHome
//
// Created by Kenny Tang on 4/14/13.
// Copyright (c) 2013 corgitoergosum.net. All rights reserved.
//
#import "PSHCoverFeedViewController.h"
#import "PSHFacebookDataService.h"
- (NSDateFormatter*)dateFormatter
{
if (!_dateFormatter) {
_dateFormatter = [[NSDateFormatter alloc] init];
[_dateFormatter setDateFormat:@"MMMM d"];
}
return _dateFormatter;
}
- (void)setupViewFrameBounds
{
CGRect screenBounds = [[UIScreen mainScreen] bounds];
self.view.frame = screenBounds;
}
- (void)setupNavigationBar
{
self.navigationController.navigationBarHidden = YES;
self.navigationItem.hidesBackButton = YES;
- (void)viewDidLoad
{
[super viewDidLoad];
// animate menus
[self animateMenuOnStart];
[self.menuViewController animateHideMenuButtons];
}
- (void)didReceiveMemoryWarning
- (void)viewDidLoad
{
[super viewDidLoad];
CGRect screenBounds = [[UIScreen mainScreen] bounds];
self.view.frame = screenBounds;
self.navigationController.navigationBarHidden = YES;
self.navigationItem.hidesBackButton = YES;
self.dateFormatter = [[NSDateFormatter alloc] init];
[self.dateFormatter setDateFormat:@"MMMM d"];
#import "FeedItem.h"
#import "ItemSource.h"
#import "PSHCoverFeedPageViewController.h"
#import "PSHCoverFeedViewController.h"
#import "PSHFacebookDataService.h"
#import "PSHMenuViewController.h"
#import "PSHMessagingViewController.h"
@interface PSHCoverFeedViewController () <
UIPageViewControllerDataSource,