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
@Override | |
public boolean onTouchEvent(MotionEvent event) { | |
if (mTopCard == null) { | |
return false; | |
} | |
if (mGestureDetector.onTouchEvent(event)) { | |
return true; | |
} | |
Log.d("Touch Event", MotionEvent.actionToString(event.getActionMasked()) + " "); | |
final int pointerIndex; |
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
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_item_add); | |
// ImageButton | |
ImageButton imageButton = (ImageButton) findViewById(R.id.imageButton); | |
imageButton.setOnClickListener(new View.OnClickListener() { | |
@Override | |
public void onClick(View v) { | |
ViewHelper.selectImage(PickImageActivity.this); |
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
public static void get(Context context, int idStatus, final int id, final SuccessListener successListener, final ErrorListener errorListener) { | |
String url = "some_url_to_get_json"; | |
ARequest.get(context, url, | |
new AResponse.SuccessListener() { | |
@Override | |
public void onResponse(Object response) { | |
JSONArray jsonArray = null; | |
try { | |
JSONObject jsonObject = new JSONObject(response.toString()); | |
if (jsonObject.getJSONObject("meta").getInt("code") == 200) { |
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
/** | |
* Sample React Native App | |
* https://github.com/facebook/react-native | |
*/ | |
'use strict'; | |
var React = require('react-native'); | |
var { | |
AppRegistry, | |
StyleSheet, |
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
<?php | |
define("AGILE_DOMAIN", "tiagogouvea"); | |
define("AGILE_USER_EMAIL", "yourEmail"); | |
define("AGILE_REST_API_KEY", "yourApiKey"); | |
function curl_wrap($entity, $data, $method) | |
{ | |
$agile_url = "https://" . AGILE_DOMAIN . ".agilecrm.com/dev/api/" . $entity; | |
$agile_php_url = "https://" . AGILE_DOMAIN . ".agilecrm.com/core/php/api/" . $entity . "?id=" . AGILE_REST_API_KEY; |
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
<?php | |
// Test Agile curl_wrap | |
require 'php-api-master/curlwrap_v2.php'; | |
$email = "[email protected]"; | |
// Try get contact from Agile | |
$contact = curl_wrap("contacts/search/email/" . $email, null, "GET"); | |
// Get contatct Agile |
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
<?php | |
/** | |
* Authors: | |
* Júlio Paulillo <[email protected]> | |
* Tulio Monte Azul <[email protected]> | |
* | |
* DOCS | |
* ############# | |
* Guia de integrações | |
* http://ajuda.rdstation.com.br/hc/pt-br/articles/200310549-Guia-de-integra%C3%A7%C3%B5es-com-o-RD-Station |
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
public static string SomenteNumeros(string texto = null) | |
{ | |
if (texto == null) return texto; | |
Regex re = new Regex("[0-9]"); | |
StringBuilder s = new StringBuilder(); | |
foreach (Match m in re.Matches(texto)) | |
{ | |
s.Append(m.Value); | |
} | |
return s.ToString(); |
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
public function sendEmail($email, $subject, $html, $text) | |
{ | |
$sesClient = SesClient::factory(array( | |
'credentials' => array( | |
'key' => 'YOURKEY', | |
'secret' => 'YOURSECRET', | |
), | |
'region' => 'us-east-1', | |
'version' => '2010-12-01' | |
)); |
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
public function sendCampaignMailSes() | |
{ | |
if ($this->date_sent != null) { | |
// Log!!! | |
$this->showLog("Already sent"); | |
return; | |
} | |
if ($this->date_sending != null) { | |
$this->showLog("Already sending! - since: " . $this->date_sending); | |
return; |
OlderNewer