Github will be the main account and bitbucket the secondary.
ssh-keygen -t rsa -C "github email"
Enter passphrase when prompted. If you see an option to save the passphrase in your keychain, do it for an easier life.
var usuarioJaExiste = function ( err, data, res, req ) { | |
var dados, | |
model; | |
if ( err ) return res.json(err); | |
if ( data ) return res.json({ Error: "Usuario ja existe.", Code: 0 }); | |
dados = { | |
idFace: req.body.idFace, | |
arrayUsuario: [{ |
Read the blog at http://fokkezb.nl/2013/09/20/url-schemes-for-ios-and-android-2/
<?php | |
// API access key from Google API's Console ( Server KEY ) | |
define( 'API_ACCESS_KEY', 'SERVER-API-KEY' ); | |
$registrationIds = array( "userToken", "user2Token" ); | |
$nome_empresa = "Sheep Kebab"; | |
$id_push = "1"; | |
$id_empresa = "2"; | |
$abrirPush = "1"; | |
$payload = '{"id_push":'.$id_push.',"id_empresa":'.$id_empresa.', "abrir":' . $abrirPush . '}'; |
$.getView().backgroundImage = getImageFileFromSVG({ | |
image : "/images/hearts.svg", | |
width : 400, | |
height : 400, | |
top : 0, | |
left : 0 | |
}); | |
function getImageFileFromSVG(svgOpts) { | |
var file = Ti.Filesystem.getFile(Ti.Filesystem.applicationCacheDirectory, |
function doClick(e) { | |
if(OS_IOS) { | |
if(Ti.Platform.canOpenURL('Urlschemes://')) { | |
Ti.Platform.openURL('Urlschemes://'); | |
} else { | |
alert('You must install the Urlschemes app first'); | |
} | |
} else { | |
var didItWork = Ti.Platform.openURL('urlschemes://'); | |
if(!didItWork) { |
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.io=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){ | |
module.exports = _dereq_('./lib/'); | |
},{"./lib/":2}],2:[function(_dereq_,module,exports){ | |
/** | |
* Module dependencies. | |
*/ |
/** | |
* Ti.TouchID | |
* | |
* Summary: Support native Touch ID with Hyperloop in Titanium Mobile. | |
* Author: Hans Knoechel | Appcelerator, Inc | |
* Date: 03/22/2016 | |
* Version: 0.1.0 | |
* Example | |
* | |
* var touchID = require("ti.touchid"); |