Skip to content

Instantly share code, notes, and snippets.

View aaronksaunders's full-sized avatar

Aaron K Saunders aaronksaunders

View GitHub Profile
class Player : NSObject {
var objectId: String?
var teamName : NSString?
var team :Team?
var firstName : NSString?
var lastName : NSString?
//Inivitation.swift
override func hostToKinveyPropertyMapping() -> [NSObject : AnyObject]! {
return [

This will open the share dialog for the PDF file and allow the user to take action.

I discovered that you cannot open the file directly because it is sandboxed on IOS, see information on the cordova-plugin-file repo regarding directoy structure and R/W access

Needs the following plugins.
  • cordova-plugin-file
  • cordova-plugin-file-opener2
//
// NSURLSession and JSON Objects
//
// References:
// - https://littlebitesofcocoa.com/136-xcplayground-basics
//
import UIKit
import Foundation
import XCPlayground
//
// CLASSES and PROTOCOLS
//
// References:
// - http://nshipster.com/swift-documentation/
// - http://books.aidanf.net/learn-swift/protocols
//
import UIKit
//: Playground - noun: a place where people can play
import UIKit
var str = "Hello, playground"
var myLabel:UILabel = UILabel(frame: CGRectMake(0,0,280,32))
myLabel.font = UIFont.systemFontOfSize(32.0)
/**
@aaronksaunders
aaronksaunders / console.log
Created December 23, 2015 23:30
Running Latest Ionic2 Release
aks-retina-mbp:MyIonicV2App aaronksaunders$ cd ..
aks-retina-mbp:~ aaronksaunders$ git clone [email protected]:driftyco/ionic-conference-app.git
Cloning into 'ionic-conference-app'...
remote: Counting objects: 12299, done.
remote: Compressing objects: 100% (57/57), done.
remote: Total 12299 (delta 28), reused 0 (delta 0), pack-reused 12242
Receiving objects: 100% (12299/12299), 27.13 MiB | 4.18 MiB/s, done.
Resolving deltas: 100% (3267/3267), done.
Checking connectivity... done.
aks-retina-mbp:~ aaronksaunders$ cd ionic-conference-app/
@aaronksaunders
aaronksaunders / client.js
Created December 10, 2015 01:39
Meteor sample code to scrape data from a remote website
/**
*
* @param _type
* @param _url
* @param _data
* @param _callback
*/
function getInfoFromURL(_type, _url, _data, _callback) {
Meteor.call("callServer", _url, _type, _data, function (error, results) {
@aaronksaunders
aaronksaunders / developer-wanted.md
Last active April 19, 2016 19:04
Looking for Javascript Developer with Appcelerator Experience

###Clearly Innovative Inc We are looking for a talented candidate with 2-4 years of cross-platform mobile application development. The candidate will work with a team of designers, developers and project managers to create mobile solutions for clients ranging from startups to large enterprises. The candidate should have 1-2 years of experience with front-end development. We are considering full-time and contract employees. For part-time and contract employees, we are looking for a minimum of 30 hours per week.

We are looking for candidates with the following:

Responsibilities:

  • Write and modify code based on functional and system requirements
  • Work closely with the project manager, designer and other developers to understand functional and system requirements
  • Work closely with the development team to ensure architectural integrity and product quality
@aaronksaunders
aaronksaunders / Demo ui-router basic state change.markdown
Created September 10, 2015 15:09
Demo ui-router basic state change

####For this sample to work you must do the following:

  • Create an account in Parse

  • Create a new application by clicking on "Create a new App" Button in the Dashboard

  • Create a user in that new application, set the username to admin and the password to test

    Screen Shot: Creating a new user account in application alt tag

  • Go to the Settings - Keys Section and copy appropriate keys and update the variable named authenticationHeaders in the sample code provided with the appropriate values; around line 68 in the code.