Skip to content

Instantly share code, notes, and snippets.

View object2dot0's full-sized avatar

object2.0 object2dot0

View GitHub Profile
@object2dot0
object2dot0 / gist:2648480
Created May 9, 2012 20:12
Flipboard like Turn Animation
CALayer* animationLayer=achievementNewsfeed.view.layer;
animationLayer.anchorPoint = CGPointMake(1.0, 0.5);
CATransform3D transform = CATransform3DMakeRotation(-M_PI / 1.1, 0.0, 1.0, 0.0);
transform.m34 = 1.0f / 2500.0f;
animationLayer.transform=transform;
float currentAngle,startFlipAngle=-M_PI;
float endFlipAngle=0;
float progress=1.0;
@object2dot0
object2dot0 / Attributes.md
Created May 7, 2017 10:53
Optimizing your Swift Codebase with Attributes
@object2dot0
object2dot0 / 0_reuse_code.js
Created December 9, 2016 02:15
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

Videos

#!/bin/sh
# Setup_Facebook_API_Keys.sh
# iOSConsumerApp
#
# Created by Muhammad Tanveer on 9/17/15.
# Copyright (c) 2015 iCarAsia. All rights reserved.
path_to_info_plist_file="$TARGET_BUILD_DIR/${PRODUCT_NAME}.app/Info.plist"
#!/bin/sh
# Setup_Crashlytics_API_Keys.sh
# iOSConsumerApp
#
# Created by Muhammad Tanveer on 9/17/15.
# Copyright (c) 2015 iCarAsia. All rights reserved.
path_to_info_plist_file="$TARGET_BUILD_DIR/${PRODUCT_NAME}.app/Info.plist"
#!/bin/sh
# Run_Crashlytics.sh
# iOSConsumerApp
#
# Created by Muhammad Tanveer on 9/17/15.
# Copyright (c) 2015 iCarAsia. All rights reserved.
# Import keys and secrets from a file
#!/bin/sh
# Crashlytics_keys.sh
# iOSConsumerApp
#
# Created by Muhammad Tanveer on 9/17/15.
# Copyright (c) 2015 iCarAsia. All rights reserved.
the_crashlytics_production_api_key="XXXXXXXXXXXXXXXXXXXXXX"
the_crashlytics_production_build_secret="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
#!/bin/sh
# Setup_GoogleAnalytics_API_Keys.sh
# iOSConsumerApp
#
# Created by Muhammad Tanveer on 9/17/15.
# Copyright (c) 2015 iCarAsia. All rights reserved.
#!/bin/sh
# GoogleAnalytics_keys.sh
# iOSConsumerApp
#
# Created by Muhammad Tanveer on 9/17/15.
# Copyright (c) 2015 iCarAsia. All rights reserved.
if [ ${TARGET_NAME} = "iOSConsumerApp" ]; then