Skip to content

Instantly share code, notes, and snippets.

@xocialize
xocialize / Create iOS Icons 2017 Sizes.jsx
Created October 25, 2017 21:51 — forked from alexsdesign/Create iOS Icons 2016 Sizes.jsx
Photoshop Script to Create iOS Icons from a source image
// JavaScript Document
// Photoshop Script to Create iPhone Icons from iTunesArtwork
//
// WARNING!!! In the rare case that there are name collisions, this script will
// overwrite (delete perminently) files in the same folder in which the selected
// iTunesArtwork file is located. Therefore, to be safe, before running the
// script, it's best to make sure the selected iTuensArtwork file is the only
// file in its containing folder.
//
// Copyright (c) 2010 Matt Di Pasquale
@xocialize
xocialize / Tutorial.md
Created October 17, 2017 17:47 — forked from RF-Nelson/Tutorial.md
Using the Multipeer Connectivity Framework to Create the Open Source Selfie Stick iOS App

Using the iOS Multipeer Connectivity Framework to Create Open Source Selfie Stick

In this gist, I will discuss how I used the Multipeer Connectivity framework to create Open Source Selfie Stick. Open Source Selfie Stick is a free open-source iOS app that allows users to sync two devices over WiFi or Bluetooth and allows one to act as a remote control for the other's camera.

This tutorial assumes some knowledge of the Swift programming language and iOS development with Xcode.

Feel free to comment and point out any errors or improvements. If you'd like to help improve the app itself, make a fork from dev branch of the git repo. I plan on updating this document and explaining any newly added features or refactoring. As this gist w

@xocialize
xocialize / cloudkit-server.php
Created December 10, 2016 02:10 — forked from NSURLSession0/cloudkit-server.php
CloudKit server-to-server in PHP
<?php
// Constants
$KEY_ID = 'YOUR_KEY_ID';
$CONTAINER = 'YOUR_CONTAINER';
$PRIVATE_PEM_LOCATION = 'eckey.pem'; // Store this file outside the public folder!
// Config
$url = 'https://api.apple-cloudkit.com/database/1/' . $CONTAINER . '/development/public/records/query';
$body = '{"query":{"recordType":"Articles"}}';
//
// MPCManager.swift
// MPCRevisited
//
// Created by Gabriel Theodoropoulos on 11/1/15.
// Copyright (c) 2015 Appcoda. All rights reserved.
//
import UIKit
import MultipeerConnectivity
@xocialize
xocialize / Custom Class
Created December 4, 2016 21:15 — forked from speaktoalvin/Custom Class
Multipeer Connectivity Framework - Sharing Custom Classes
import UIKit
//MARK: MultiPeer_CustomClass
class MultiPeer_CustomClass : NSObject
{
//MARK: Local Variables
var name : String?
var age : Int?
var email : String?