Skip to content

Instantly share code, notes, and snippets.

View orgmir's full-sized avatar

Luis Ramos orgmir

View GitHub Profile
@orgmir
orgmir / highlight.txt
Last active December 28, 2015 23:59
HDC Json Highligths Template
\"{\"status\":0}\"
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'
@interface DashboardCollectionViewCell : UICollectionViewCell
@property (weak, nonatomic) DashboardItem *dashboardItem;
+ (void) setupCell:(DashboardCollectionViewCell*)cell dashboardItem:(DashboardItem*)item;
@end
@implementation

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;
@orgmir
orgmir / HiResScreenShots.cs
Created January 23, 2017 11:07
Script to take a high resolution screenshot
using UnityEngine;
using System.Collections;
using System.IO;
// This was taken from https://www.reddit.com/r/Unity3D/wiki/screenshots
public class HiResScreenShots : MonoBehaviour
{
public int resWidth = 1920; public int resHeight = 1080;
@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}"
<?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 / UIView+AutoLayout.swift
Last active March 19, 2024 08:16
UIView extension with AutoLayout helpers to simplify your code layout creation
//
// UIView+AutoLayout.swift
//
// Created by Luis Ramos on 21/6/17.
// Copyright © 2017 All rights reserved.
//
import UIKit
extension UIView {
@orgmir
orgmir / Microsoft.PowerShell_profile.ps1
Created April 16, 2018 13:30
Prompt for powershell that imitates robbierussel oh-my-zsh theme, including basic git branch support.
function prompt {
$ESC = [char]27
$p = Split-Path -leaf -path (Get-Location)
$branch = $(git symbolic-ref -q HEAD) -replace "refs/heads/"
if ($branch) {
$branch = "$ESC[34mgit:($ESC[0m$ESC[31m$branch$ESC[0m$ESC[34m)$ESC[0m "
}
"$ESC[1m$ESC[32m$([char]0x279C)$ESC[0m $ESC[36m$p$ESC[0m $branch$ESC[0m"