Skip to content

Instantly share code, notes, and snippets.

View aaronksaunders's full-sized avatar

Aaron K Saunders aaronksaunders

View GitHub Profile
@aaronksaunders
aaronksaunders / Nested ng-repeat in AngularJS with Checkboxes.markdown
Created September 3, 2015 03:43
Nested ng-repeat in AngularJS with Checkboxes

Nested ng-repeat in AngularJS with Checkboxes

example of how to render data in nested ng-repeat(s) get the selected items from the nested list in real-time through a change event or looping through the data in the end

A Pen by aaron k saunders on CodePen.

License.

@aaronksaunders
aaronksaunders / Ionic Ion: Tinder Cards.markdown
Created September 3, 2015 03:04
Ionic Ion: Tinder Cards
@aaronksaunders
aaronksaunders / snippet.js
Last active July 31, 2018 08:14
Cordova camera - Choose camera OR photo library
//
// you need the actionsheet plugin, image picker plugin and the camera plugin for this code to work
//
/**
* displays an action sheet for the user to select a photo from
* the gallery or using the camera
*
* @param _event {Object} information from the webview on the event
*
<!DOCTYPE html>
<html>
<head>
<title>Hello React!</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.13.0/react.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.13.0/JSXTransformer.js"></script>
</head>
<body>
/**
* Sample React Native Modal Dialog Example App
*
* @see - https://github.com/facebook/react-native
* @see - https://github.com/Kureev/react-native-navbar
*/
'use strict';
var React = require('react-native');
var {
@aaronksaunders
aaronksaunders / test.js
Created April 29, 2015 05:20
tcomb-form-native with React-Native - Missing documentation on setting default date for DatePickerIOS
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @see https://github.com/gcanti/tcomb-form-native
*/
var React = require('react-native');
var t = require('tcomb-form-native');
@aaronksaunders
aaronksaunders / parse.js
Last active August 29, 2015 14:19 — forked from stephenfeather/parse.js
Update parse service for working with Appcelerator Titanium, still some open issues but making progress - will be moving the complete file into a sample starter project
//
// Copyright Aaron K. Saunders and other contributors. 2015
//
// Primarily based on work by Stephen Feather - https://gist.github.com/sfeather/4400387
// with additions listed below
// - added promise functionality (https://github.com/kriskowal/q), and removing callbacks
// - added url query param support to allow for more interesting queries
// - added promises.notify to support in progress information from http request
// - added init function to extract credentials from the library
// - fare number of the user functions are not correct
@aaronksaunders
aaronksaunders / Information.md
Last active August 29, 2015 14:19
Working with Object Relationship in Parse and Ionic Framework
TutorSession
    +-- Tutor
    +-- Student
    +-- Place
    +-- TimeSlot
    
Tutor     - Parse User Object
Student   - Parse User Object
Place - Parse Custom Object
@aaronksaunders
aaronksaunders / _readme.md
Last active August 29, 2015 14:18
Create Event Sample for Howard U Cross-Platform Mobile App Class Using Titanium Appcelerator Alloy + Appcelerator Cloud Services

Create Event Sample for Howard U Cross-Platform Mobile App Class Using Titanium Appcelerator Alloy

  1. Create New Project and make sure you cloud-enable the application
  2. Download the starter template from the github repo https://github.com/aaronksaunders/acs-adapter-starter/archive/master.zip
  3. Copy the contents of the app directory from the starter-template to replace the files in the new project you just created
  4. Login to the appcelerator cloud service console - my.appcelerator.com
  5. create a new test user for the application
  6. add the event.js file to the app/models directory
  7. add the function to you application and that should create a new Event
@aaronksaunders
aaronksaunders / _ReadMe.md
Last active March 15, 2017 18:50
Alternate Implementation Appcelerator Titanium Models/Collections

Implementing Appcelerator Titanium Models/Collections for Cloud Services without all the extra files

It is a PITA working with Appecelerator Alloy Models and Collection because you need to create these template files for everything, even of you are not using them. This is a "HACK" that I came up with after a few hours that appears to address the issue.

I am certain that there might be a cleaner way, which would require deeper understand of the underpinnings of Alloy, maybe someone can make a suggestion, maybe it will come to me later.

###Notes This code is using a ACS Sync Adapter customize for cloud services with promises integration

https://github.com/aaronksaunders/Appcelerator-Cloud-Services-Sync-Adapter