Skip to content

Instantly share code, notes, and snippets.

View wesleyguirra's full-sized avatar
🃏
Open to work

Wes Guirra wesleyguirra

🃏
Open to work
  • Brasilia
  • 11:40 (UTC -03:00)
View GitHub Profile
@wesleyguirra
wesleyguirra / README.md
Last active November 18, 2022 20:33
[Assesment] - hackerrank-diagonal-difference

Given a square matrix, calculate the absolute difference between the sums of its diagonals.

For example, the square matrix

is shown below:

1 2 3
4 5 6
9 8 9  
#include <ESP8266WiFi.h>
#include <SPI.h>
//#####################################//
const char* ssid = "NOME_REDE_WIFI";
const char* password = "SENHA_REDE_WIFI";
String readString;
char c;
int sensor1 = 16;
int sensor2 = 5;
int sensor3 = 4;
import React, {Fragment, useState} from 'react';
import {
KeyboardAvoidingView,
Platform,
SafeAreaView,
ScrollView,
StyleSheet,
Text,
TextInput,
TouchableOpacity,
import React from 'react';
import {StyleSheet, Text, View} from 'react-native';
import {Colors} from 'react-native/Libraries/NewAppScreen';
const styles = StyleSheet.create({
bubbleWrapper: {
flexDirection: 'column',
},
bubbleWrapperSent: {
alignSelf: 'flex-end',
import React from 'react';
import {Image, StyleSheet, Text, View} from 'react-native';
import UserDefaultImage from './user.png';
const styles = StyleSheet.create({
chatItemContainer: {
flexDirection: 'row',
marginVertical: 16,
},
userPairImage: {
@wesleyguirra
wesleyguirra / Chats.js
Last active November 18, 2022 20:31
[Code tutorial] - Building a chat app
import React from 'react';
import {SafeAreaView, StyleSheet, Text} from 'react-native';
import ChatItem from './ChatItem';
const currentUser = 32;
const chatsMock = [
{
id: 1,
users: [
const chats = [
{
id: 1,
users: [
{
id: 32,
phone: '+5511999882323',
},
{
id: 99,
#EXTM3U
#EXTINF:-1 tvg-id="premiere2.br" tvg-name="Premiere 2 FHD₁" tvg-logo="http://paineliks.ddns.net/images/canaispng/Premiere%201%20HD.png" group-title="CANAIS: PREMIERE | PPV",Premiere 2 FHD₁
http://lista.minhadns.me:80/cris2021/2021cris/726
#EXTINF:-1 tvg-id="premiere2.br" tvg-name="Premiere 2 FHD₂" tvg-logo="http://paineliks.ddns.net/images/canaispng/Premiere%201%20HD.png" group-title="CANAIS: PREMIERE | PPV",Premiere 2 FHD₂
http://lista.minhadns.me:80/cris2021/2021cris/183481
#EXTINF:-1 tvg-id="premiere2.br" tvg-name="Premiere 2 HD₁" tvg-logo="http://paineliks.ddns.net/images/canaispng/Premiere%201%20HD.png" group-title="CANAIS: PREMIERE | PPV",Premiere 2 HD₁
http://lista.minhadns.me:80/cris2021/2021cris/136
#EXTINF:-1 tvg-id="premiere2.br" tvg-name="Premiere 2 HD₂" tvg-logo="http://paineliks.ddns.net/images/canaispng/Premiere%201%20HD.png" group-title="CANAIS: PREMIERE | PPV",Premiere 2 HD₂
http://lista.minhadns.me:80/cris2021/2021cris/183482
#EXTINF:-1 tvg-id="premiere2.br" tvg-name="Premiere 2
@wesleyguirra
wesleyguirra / FlutterPaystoreClientPlugin.java
Created July 2, 2020 14:14
Classe com a implementação do métodos nativos em Java
package br.com.enjoyin.flutter_paystore_client.flutter_paystore_client;
import androidx.annotation.NonNull;
import android.util.Log;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
@wesleyguirra
wesleyguirra / flutter_paystore_client.dart
Created July 2, 2020 13:55
Classe com a implementação dos métodos dart para o flutter_paystore_client
import 'dart:async';
import 'dart:collection';
import 'package:flutter/services.dart';
import 'package:flutter_paystore_client/flutter_paystore_client.dart';
import 'package:flutter_paystore_client/src/reverse_payment_request.dart';
class FlutterPaystoreClient {
static const MethodChannel _channel = const MethodChannel('flutter_paystore_client');
static Future<void> bindClient() async {