This file contains hidden or 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 React, { useEffect, useState } from 'react'; | |
import { View, ActivityIndicator, StyleSheet } from 'react-native'; | |
import Geolocation from "@react-native-community/geolocation"; | |
import { PermissionsAndroid } from 'react-native'; | |
import MapView, { Marker, PROVIDER_GOOGLE } from 'react-native-maps'; | |
import firebase from './firebase'; | |
export default function App() { |
This file contains hidden or 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 | |
session_start(); | |
header('Content-Type: text/html; charset=UTF-8'); | |
ini_set('display_errors', 0); | |
// $servername = ""; | |
// $username = ""; | |
// $password = ""; | |
// DBName = '' |
This file contains hidden or 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 | |
namespace App\Http\Controllers\API; | |
use SoapClient; | |
use App\Http\Controllers\Controller; | |
class SoapController extends Controller | |
{ | |
public function index() { |
This file contains hidden or 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 index() | |
{ | |
if (isset($_GET['competition'])) { | |
$query = DB::table('profile_competitions') | |
->orderBy('users.name') | |
->join('profiles', 'profile_competitions.profile_id', '=', 'profiles.id') | |
->join('users', 'profiles.user_id', '=', 'users.id') | |
->join('competitions', 'profile_competitions.competition_id', '=', 'competitions.id') | |
->join('tickets', 'tickets.profile_competition_id', '=', 'profile_competitions.id') | |
->where('competitions.id', '=', $_GET['competition']); |
This file contains hidden or 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 React from 'react'; | |
import { | |
TouchableHighlight | |
} from 'react-native'; | |
import Icon from 'react-native-vector-icons/MaterialIcons'; | |
import { createAppContainer } from 'react-navigation'; | |
import { createStackNavigator } from 'react-navigation-stack'; | |
import { createDrawerNavigator } from 'react-navigation-drawer'; |
This file contains hidden or 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 React, { useReducer } from 'react'; | |
import { View, Text, Button } from 'react-native'; | |
const reducer = (state, action) => { | |
switch (action.type) { | |
case 'add': | |
return { ...state, count: state.count + 1 }; | |
break; | |
case 'minus': | |
return { ...state, count: state.count - 1 }; |
This file contains hidden or 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
Documentação: https://laravel.com/docs/5.5/queues#supervisor-configuration | |
Passo 1: | |
sudo apt-get install supervisor | |
Passo 2 - Criar um arquivo de conf para a queue: | |
sudo vim /etc/supervisor/conf.d/laravel-procedimento.conf | |
[program:laravel-procedimento] | |
process_name=%(program_name)s_%(process_num)02d |
This file contains hidden or 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 React from 'react'; | |
import { Button, Text, View } from 'react-native'; | |
import { Ionicons } from '@expo/vector-icons'; | |
import { createStackNavigator, createBottomTabNavigator, createAppContainer, createDrawerNavigator } from 'react-navigation'; | |
class HomeScreen extends React.Component { | |
render() { | |
return ( | |
<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}> | |
<Text>Home!</Text> |
This file contains hidden or 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 latest jdk Oracle | |
sudo tar xzf jdk-<version>-linux-x64.tar.gz | |
sudo mv jdk<version> /opt | |
sudo update-alternatives --install /usr/bin/java java /opt/jdk<version>/bin/java 2 | |
sudo update-alternatives --config java |
This file contains hidden or 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
sudo certbot --apache -d meudominio.com -d www.meudominio.com |
NewerOlder