Skip to content

Instantly share code, notes, and snippets.

View boarnoah's full-sized avatar

Adipa Wijayathilaka boarnoah

View GitHub Profile
@boarnoah
boarnoah / example.js
Created February 29, 2016 15:36
TIMOB-20220
//index.js:
Ti.API.info("Creating activity...");
var activity = Ti.App.iOS.createUserActivity({
activityType:'com.foo.message',
title:'Handoff Messenger',
userInfo:{
msg: 'Tag! You\'re it!'
}
});
@boarnoah
boarnoah / stringReverse.asm
Last active February 20, 2016 01:17
String reversal assembly pic24
.include "xc.inc"
.bss
sz_1: .space 16
sz_2: .space 16
mplab_x_bug: .space 2
.section .const, psv
@boarnoah
boarnoah / gist:df88d579d5f5ca8bc42b
Created February 4, 2016 01:47
Stack Overflow question
//http://stackoverflow.com/questions/35190920/wrapping-objects-in-js-best-pratices
// later in the code:
obj.addListener('click', function(){
//Here I would prefer having access to wrapper's other children/functions
console.log(wrapper.anotherProperty);
console.log(wrapper.anotherFunction());
});
tiapp.xml (condensed to relevant bits):
<ios>
<plist>
<dict>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>