Skip to content

Instantly share code, notes, and snippets.

View kincade71's full-sized avatar
📱
Mobile

Richard Robinson kincade71

📱
Mobile
View GitHub Profile
@kincade71
kincade71 / Acknowledgements.plist
Last active June 16, 2019 19:03
Auto add Acknowledgements to settings bundle using Pods.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!--
Acknowledgements.plist
Created by Richard on 6/16/19.
Copyright (c) 2019 ___ORGANIZATIONNAME___. All rights reserved.
-->
<plist version="1.0">
@kincade71
kincade71 / openfromie.html
Created November 2, 2018 15:00
Open applications from standard html links. As seen in GitHub "open in desktop" and "open in Xcode"
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<!--[if IE]>
<hta:application applicationname=”HTA Test” scroll=”yes” singleinstance=”yes”>
<script type="text/javascript">
function openURL()
{
var shell = new ActiveXObject("WScript.Shell");
@kincade71
kincade71 / iOS Icon.png bash script
Created July 5, 2018 04:33 — forked from alexaubry/iOS Icon.png bash script
A simple bash script using OSX command line tool sips to resample a 1024x1024 image
#!/bin/bash
f=$(pwd)
sips --resampleWidth 512 "${f}/${1}" --out "${f}/iTunesArtwork.png"
sips --resampleWidth 1024 "${f}/${1}" --out "${f}/iTunesArtwork@2x.png"
sips --resampleWidth 20 "${f}/${1}" --out "${f}/Icon-App-20x20@1x.png"
sips --resampleWidth 40 "${f}/${1}" --out "${f}/Icon-App-20x20@2x.png"
sips --resampleWidth 60 "${f}/${1}" --out "${f}/Icon-App-20x20@3x.png"
sips --resampleWidth 29 "${f}/${1}" --out "${f}/Icon-App-29x29@1x.png"
sips --resampleWidth 58 "${f}/${1}" --out "${f}/Icon-App-29x29@2x.png"
@kincade71
kincade71 / README-Template.md
Created November 8, 2017 06:50 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
#add as run script in xcode
if which taylor >/dev/null; then
taylor -p ${PROJECT_DIR} -r xcode
else
echo "Taylor not installed"
fi
#Add as Run Script in Xcode
if which swiftlint >/dev/null; then
swiftlint
else
echo "warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint"
fi
@kincade71
kincade71 / .gitignore
Created October 7, 2015 19:53
Xcode gitignore
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
## Build generated
build/
DerivedData
## Various settings
*.pbxuser
@kincade71
kincade71 / xcode-build-bump.sh
Last active August 29, 2015 14:27 — forked from sekati/xcode-build-bump.sh
Xcode Auto-increment Build & Version Numbers
# xcode-build-bump.sh
# @desc Auto-increment the build number every time the project is run.
# @usage
# 1. Select: your Target in Xcode
# 2. Select: Build Phases Tab
# 3. Select: Add Build Phase -> Add Run Script
# 4. Paste code below in to new "Run Script" section
# 5. Drag the "Run Script" below "Link Binaries With Libraries"
# 6. Insure that your starting build number is set to a whole integer and not a float (e.g. 1, not 1.0)