Skip to content

Instantly share code, notes, and snippets.

View luizhenriquesoares's full-sized avatar
:octocat:
Focusing

Luiz Henrique Soares luizhenriquesoares

:octocat:
Focusing
  • pathbit
  • São Paulo, Brasil
View GitHub Profile
<div class="col-md-12"><div id="componentFlightOptions-departureFlightOptions" class="flightOptions"><div class="header row"><div class="flight-title collapsedFixedTitle col-md-12"><div><span>Selecione o voo de ida</span></div></div></div><div class="row"><div class="flight-description col-md-12"><span class="airport-description" id="lblDepartureAirport">Guarulhos Intl, Sao Paulo-Guarulhos - BR (GRU)</span><!-- react-text: 4228 -->&nbsp;<!-- /react-text --><!-- react-text: 4229 -->para<!-- /react-text --><!-- react-text: 4230 -->&nbsp;<!-- /react-text --><span class="airport-description" id="lblReturnAirport">Lisboa, Lisbon - PT (LIS)</span></div></div><div class="row"><div class="box-filters row"><div class="col-allFilters col-xs-8"><div class="row-filters row"><div class="col-filter col-xs-3"><div class="filter-wrapper"><div class="picky ta-dropdown" id="picky" role="combobox" aria-controls="picky__button" aria-expanded="false" aria-haspopup="false" aria-owns="" tabindex="0"><button id="picky__button__butto
{
"appenders": {
"access": {
"type": "dateFile",
"filename": "log/access.log",
"pattern": "-yyyy-MM-dd",
"category": "http"
},
"app": {
"type": "file",
{
"watch": ["src"],
"ext": "ts",
"ignore": ["src/**/*.spec.ts"],
"exec": "node -r tsconfig-paths/register --inspect=5000 --require ts-node/register src/main.ts"
}
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch NestJS",
const data = require("./response.json")
const responseData = data.ExtratoPedido
function nextChildren(key, beforeKey, copy){
for(next in key) {
if(next == beforeKey) {
let nextChildren = Object.getOwnPropertyNames(copy)[0]
key[nextChildren] = [];
key[nextChildren].push(copy[nextChildren])

Valor de multa para reembolso (Voos nacionais)

Cia. Aérea Antes do embarque No show
AZUL/Tudoazul R$ 370,00 R$ 370,00
LATAM/Multiplus R$ 255,00 R$ 255,00
GOL/Smiles R$ 255,00 Não é possível
AVIANCA Brasil/Amigo R$ 220,00 R$ 220,00

Valor de multa para reembolso (Voos internacionais)

using FluentFTP;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using WinSCP;
namespace MoverArquivoFTP
public static void Reconize(String fileName)
{
try
{
using (var engine = new TesseractEngine(@"tessdata", "por", EngineMode.Default))
{
using (var img = Pix.LoadFromFile(fileName))
{
using (var data = engine.Process(img))
{
exports.dateRange = async (req, res) => {
const month = moment(req.departureDate, "YYYY-MM-DD");
var count = 0;
const nextMonth = month.range("month");
const nextMonthFormated = Moment(nextMonth.end).format("YYYY-MM-DD");
const range = moment.range(req.departureDate, nextMonthFormated);
const existDateArray = [];
for (let month of range.by("day")) {
req.departureDate = month.format("YYYY-MM-DD");
const data = await getDates(req, res);
@luizhenriquesoares
luizhenriquesoares / table.jsx
Last active April 8, 2018 02:36
table-semantic
import React, { Component } from "react"
import { Form, Radio, Tab, Icon, Table, Image, Label, Segment, Grid, Divider, Accordion } from "semantic-ui-react"
import ReviewFlight from "../review-flight/ReviewFlight"
import classnames from "classnames"
import Collapsible from "react-collapsible"
const radioButton = () => (
<Form.Field>
<Radio name="radioGroup" />
</Form.Field>