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 { get } from '../../state' | |
import { POST } from '../../http' | |
import { apiUrlNew } from '../../garupa' | |
const setAvatar = (file) => new Promise((resolve, reject) => { | |
const reader = new FileReader() | |
reader.onload = function (e) { | |
POST(`${apiUrlNew}/users/avatar`, { |
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
// main.js | |
function onDeviceReady () { | |
require('./components') | |
checkConnection() | |
checkLocationStatus() | |
const push = PushNotification.init({ | |
android: { | |
senderID: '1037852817999' |
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
{ | |
"id": 4, | |
"name": "4 quartos em Botafogo", | |
"description": null, | |
"slug": null, | |
"negotiation": "buy", | |
"place_type": "apartment", | |
"place_subtype": "apartment_kitchenette", | |
"listed_by": null, | |
"details": { |
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
# data = { | |
# #:notId => 2, # id da transacao, | |
# #:title => 'Mani', | |
# #:image => mani_img, # img do mani deve ser passada local | |
# #:picture => "http://36.media.tumblr.com/c066cc2238103856c9ac506faa6f3bc2/tumblr_nmstmqtuo81tssmyno1_1280.jpg", # img do mapa | |
# #:message => 'Compra de R$ 100,00 APROVADA no seu cartão Mani em Outback Steakhouse.', | |
# #:message => 'Você não tem saldo na sua conta, deseja sacar de planos?.', | |
# :message => 'notificacao', | |
# #:soundname => "beep.wav", |
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 if($_POST['formBuilderForm']): ?> | |
<div class="alert"> | |
Thank you for your interest in the Forum on Energy. | |
</div> | |
<?php endif; ?> |
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
<!-- Languages --> | |
<select onchange="javascript:location.href = this.value;"> | |
<?php | |
$langs = icl_get_languages('skip_missing=0&orderby=KEY&order=DIR&link_empty_to=#notranslation'); | |
foreach($langs as $lang): | |
$str = $lang['native_name'] === $lang['translated_name'] ? $lang['native_name'] : $lang['translated_name'] . ' (' . $lang['native_name'] . ')'; | |
?> | |
<option value="<?php echo $lang['url'] ?>" <?php if($lang['active']): ?>selected="selected"<?php endif; ?>><?php echo $str ?></option> | |
<?php endforeach; ?> | |
</select> |
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
{ | |
"results": [ | |
{ | |
"id": 2, | |
"name": null, | |
"description": null, | |
"slug": null, | |
"negotiation": "rent", | |
"details": { | |
"place_type": "house", |
NewerOlder