This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
asdf asdf asdfa sdfasdf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"estados": [ | |
{ | |
"sigla": "AC", | |
"nome": "Acre", | |
"cidades": [ | |
"Acrelândia", | |
"Assis Brasil", | |
"Brasiléia", | |
"Bujari", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function _uploadProfileImage(params) { | |
var d = $q.defer(); | |
function onUploadSuccess(result) { | |
console.log("result uploa image profile ==>> "+ JSON.stringify(result)); | |
d.resolve(result.data); | |
} | |
function onUploadFail(error) { | |
// 1 = FileTransferError.FILE_NOT_FOUND_ERR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function _openCamera() { | |
var options = _getOptionsCamera(Camera.PictureSourceType.CAMERA); | |
$cordovaCamera.getPicture(options).then(function(imageUrl) { | |
UserSrv.uploadProfileImage({ | |
image : imageUrl | |
}).then(function(image) { // jshint ignore:line | |
console.log("image => "+ JSON.stringify(image)); | |
}).catch(function(err) { // jshint ignore:line | |
// console.error("error upload => "+ JSON.stringify(err)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function _getOptionsCamera(sourceType) { | |
var _cameraPopover = new CameraPopoverOptions(300, 300, 100, 100, Camera.PopoverArrowDirection.ARROW_ANY); | |
return { | |
quality: 90, | |
destinationType: Camera.DestinationType.FILE_URI, | |
sourceType: sourceType, | |
mediaType: Camera.MediaType.PICTURE, | |
allowEdit: true, | |
encodingType: ionic.Platform.isAndroid()?Camera.EncodingType.JPEG:Camera.EncodingType.PNG, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Focus-in APIs</title> | |
<meta charset="UTF-8"> | |
</head> | |
<body style="margin: 0px; padding: 0px;"> | |
<a name="top"></a> | |
<h1>API</h1> | |
<b>Mensagem Boas Vindas</b> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Author: James Shrager (@jshrager) | |
Intended use: Appcelerator Titanium | |
Usage: http://www.LearningTitanium.com (@learningTi) | |
*/ | |
var client_id = "YOUR_CLIENT_ID"; | |
var client_secret = "YOUR_CLIENT_SECRET"; | |
var redirectUri = 'http://YOUR_URL/foursquareCallback.php'; | |
var ui = require('ui/ui'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
import java.io.*; | |
import java.security.*; | |
public class ChangePassword | |
{ | |
private final static JKS j = new JKS(); | |
public static void main(String[] args) throws Exception | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Download the following ZIPs: | |
ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links) | |
Download the correct GApps for your Android version: | |
Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip) | |
Google Apps for Android 4.4.4 (https://www.androidfilehost.com/?fid=23311191640114013) | |
Google Apps for Android 4.3 (https://www.androidfilehost.com/?fid=23060877490000124 - gapps-jb-20130813-signed.zip) | |
Google Apps for Android 4.2 (https://www.androidfilehost.com/?fid=23060877490000128 - gapps-jb-20130812-signed.zip) | |
Google Apps for Android 4.1 (https://www.androidfilehost.com/?fid=22979706399755082 - gapps-jb-20121011-signed.zip) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = Ti.Network.createHTTPClient({ | |
onerror : function(e) { | |
console.error('Error Send Photo : '+ e); | |
args.error(e); | |
}, | |
onload : function () { | |
console.debug('Success Send Photo : '+ JSON.stringify(data)); | |
args.success({responseText : this.responseText}); | |
}, | |
onsendstream : function(e) { |
NewerOlder