Skip to content

Instantly share code, notes, and snippets.

View orgmir's full-sized avatar

Luis Ramos orgmir

View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleVersion</key>
<string>31</string>
</dict>
</plist>
@orgmir
orgmir / PauseFreeCamera.cs
Last active November 11, 2017 00:39
Unity script to pause the game and adjust the camera freely
using UnityEngine;
using System.Collections;
// Script taken from https://www.reddit.com/r/Unity3D/wiki/screenshots
public class PauseFreeCamera : MonoBehaviour {
float turnSpeed = 2.0f; // Speed of camera turning when mouse moves in along an axis
float panSpeed = 1.0f; // Speed of the camera when being panned
float zoomSpeed = 1.0f; // Speed of the camera going back and forth
@orgmir
orgmir / increment_build_number.sh
Created February 16, 2017 23:16
Increment Build Number Run Scrip
buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "${PROJECT_DIR}/${INFOPLIST_FILE}")
buildNumber=$(($buildNumber + 1))
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "${PROJECT_DIR}/${INFOPLIST_FILE}"
@orgmir
orgmir / highlight.txt
Last active December 28, 2015 23:59
HDC Json Highligths Template
\"{\"status\":0}\"

Get your app under Apples eyes!

We (Gleam) had a conf call with a product guy at Apple that gave us a lot of product tips. He gave us insight on how to polish and embezel our app so it will hopefully be featured on the App Store!

Points of our call:

  • One in five users have a eye sight disability;
  • Focus on early supporting new iOS features;
  • Take into account every device size (so your layout adapts);
  • Use all the iOS frameworks you can use!
  • Details matter a lot, thats where the magic is;
@interface DashboardCollectionViewCell : UICollectionViewCell
@property (weak, nonatomic) DashboardItem *dashboardItem;
+ (void) setupCell:(DashboardCollectionViewCell*)cell dashboardItem:(DashboardItem*)item;
@end
@implementation
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, "7.0"
target "MyCoolApp" do
pod 'AFNetworking', '~> 2.4'
pod 'Realm', :git => 'https://github.com/realm/realm-cocoa.git', :tag => 'v0.87.4'
pod 'Facebook-iOS-SDK'
pod 'UIActionSheet+Blocks', '~> 0.8'