Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View ricardokdz's full-sized avatar

Ricardo Pedrosa ricardokdz

View GitHub Profile
{
"results": [
{
"id": 2,
"name": null,
"description": null,
"slug": null,
"negotiation": "rent",
"details": {
"place_type": "house",
<!-- 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>
<?php if($_POST['formBuilderForm']): ?>
<div class="alert">
Thank you for your interest in the Forum on Energy.
</div>
<?php endif; ?>
# 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",
{
"id": 4,
"name": "4 quartos em Botafogo",
"description": null,
"slug": null,
"negotiation": "buy",
"place_type": "apartment",
"place_subtype": "apartment_kitchenette",
"listed_by": null,
"details": {
// main.js
function onDeviceReady () {
require('./components')
checkConnection()
checkLocationStatus()
const push = PushNotification.init({
android: {
senderID: '1037852817999'
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`, {
Card.create!([
{user_id: 1, card_brand: "mastercard", card_number: "1234-1234-1234-1234", card_expiration_date: "07/2018", card_cvv: "321"}
])
Bus.create!([
{company_id: 1, code: "D0001", plate: "KYH6182", carrying_capacity: 10, station_id: nil},
{company_id: 2, code: "P2017", plate: "KOA3006", carrying_capacity: 50, station_id: nil}
])
Company.create!([
{name: "Expresso Recreio"},
{name: "Ideal"}
class Register extends Component {
constructor(props){
super(props)
this.state = {}
}
handleSubmit(){
const {name, email} = this.state
this.props.register(name, email)
class Home extends Component {
render(){
const Buses = this.props.home.buses.map((b) => {
return (
<MapView.Marker
title={b.title}
description={b.route}
key={b.id}
coordinate={{
latitude: parseFloat(b.latitude),