Skip to content

Instantly share code, notes, and snippets.

View mfferreira's full-sized avatar
🏠
Working from home

Marco Ferreira mfferreira

🏠
Working from home
View GitHub Profile
Verifying my Blockstack ID is secured with the address 18h5k9nadKVzYaNGByQZYmbBoArYJEU1ER https://explorer.blockstack.org/address/18h5k9nadKVzYaNGByQZYmbBoArYJEU1ER

Keybase proof

I hereby claim:

  • I am mfferreira on github.
  • I am marfife (https://keybase.io/marfife) on keybase.
  • I have a public key whose fingerprint is FEBB 8702 45AC 3611 615B 56AC 1C08 481C 6202 8F66

To claim this, I am signing this object:

> HCI Event: Connect Request (0x04) plen 10 [hci0] 211.150645
Address: 64:BC:0C:FC:D7:74 (OUI 64-BC-0C)
Class: 0x5a020c
Major class: Phone (cellular, cordless, payphone, modem)
Minor class: Smart phone
Networking (LAN, Ad hoc)
Capturing (Scanner, Microphone)
Object Transfer (v-Inbox, v-Folder)
Telephony (Cordless telephony, Modem, Headset)
Link type: ACL (0x01)
@mfferreira
mfferreira / app.js
Last active December 23, 2015 16:59
Titanium UI lib
var win = ui.win({
config: 'windowProperties',
properties: {
title: 'window title,
rightNavButton: ui.button({
config: 'button',
events: [ ['click', function(e){
e.source.enabled = false;
}] ]
}),
@mfferreira
mfferreira / gist:3896904
Created October 16, 2012 02:11 — forked from meeech/gist:3894108
sidemenu distilled
//Barebones example of how we do sidemenu in NirvanaHQ iOS app.
//You use this window as the container for your navGroup.
var rootWin = Titanium.UI.createWindow({
zIndex: 2,
width: '100%',
backgroundColor: '#f00',
listPanelVisible: false //Custom prop
});
@mfferreira
mfferreira / followers
Created October 3, 2012 23:33
Followers list
[
{
"entity": "https://mcp.tent.is",
"permissions": {
"groups": [],
"entities": {},
"public": true
},
"id": "lu8sah",
"created_at": 1349306541,
@mfferreira
mfferreira / gist:3279924
Created August 7, 2012 00:26 — forked from aaronpk/gist:2947274
Example of using sign up / log in methods of the Titanium SDK
geoloqi.init({
clientId: "xxxxxxx",
clientSecret: "xxxxxxx",
trackingProfile: "OFF", // Don't automatically start tracking
allowAnonymousUsers:false, // Don't automatically create a user when starting up the first time
pushAccount: "example@gmail.com", // Sets the push account to use for Android notifications
pushIcon: "push_icon" // Also required for Android push notifications
}, {
onSuccess:function(e) {
if (geoloqi.session==null) {
@mfferreira
mfferreira / gist:2467458
Created April 22, 2012 23:16 — forked from pulkitsinghal/gist:1481376
Move Git repository from Unfuddle to BitBucket
mkdir temp
cd temp
git clone git@yourDomain.unfuddle.com:yourDomain/yourRepoName.git
cd yourRepoName/
git remote rm origin
git remote add origin https://yourUsername@bitbucket.org/yourUsername/yourNewRepoName.git
git remote show origin
git push origin master
cd ../..
rm -rf temp
/**
* @preserve
* Titanium Cloud Module
*
* This module is used across three distinct platforms (iOS, Android, and Mobile Web), each with their own architectural
* demands upon it.
*
* Appcelerator Titanium is Copyright (c) 2009-2010 by Appcelerator, Inc.
* and licensed under the Apache Public License (version 2)
*/