Skip to content

Instantly share code, notes, and snippets.

View rodrigorodriguescosta's full-sized avatar

Rodrigo Rodrigues Costa rodrigorodriguescosta

View GitHub Profile
import falcon
import signxml
from OpenSSL import crypto
from lxml import etree
from signxml import XMLSigner
from wsgiref.simple_server import make_server
def find_between( s, first, last ):
<NFe xmlns="http://www.portalfiscal.inf.br/nfe">
<infNFe versao="4.00" Id="NFe24200919843657000149550010000007351745980290">
<ide>
<cUF>24</cUF>
<cNF>74598029</cNF>
<natOp>VENDA</natOp>
<mod>55</mod>
<serie>1</serie>
<nNF>735</nNF>
<dhEmi>2020-09-29T09:16:24-03:00</dhEmi>
<NFe xmlns="http://www.portalfiscal.inf.br/nfe">
<infNFe versao="4.00" Id="NFe24200919843657000149550010000007351745980290">
<ide>
<cUF>24</cUF>
<cNF>74598029</cNF>
<natOp>VENDA</natOp>
<mod>55</mod>
<serie>1</serie>
<nNF>735</nNF>
<dhEmi>2020-09-29T09:16:24-03:00</dhEmi>
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
<SignedInfo>
<CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
<SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
<Reference URI="#NFe24200919843657000149550010000007351745980290">
<Transforms>
<Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
<Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
</Transforms>
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
<template>
<f-crud-form
v-if="service"
v-on="$listeners"
:schema="service"
:styleCell="styleCell"
:formValidation="formValidationConta"
@mode="mode = $event"
@newRecord="newRecord"
ref="formConta"
package utils
import (
"bytes"
"comps/errors"
"encoding/json"
"fmt"
"github.com/sirupsen/logrus"
"io/ioutil"
"net/http"
{
"id": "1wgSClZh60Sffmwlxzt0y53MCfl",
"tipo": "nfe",
"chave": "24210819843657000149550010000003521984980930",
"serie": 1,
"total": 181.94,
"numero": 352,
"pessoa": {
"id": "1wLtlpGBiVHcX7p2lT2C9srX1xd",
"nome": "FERNANDA CARBAL DE ANDRADE",
{
"id": "1wM5Ftk2GlWl8dr148IIkQX0j2M",
"obs": "TESTE DE OBSERVACAO DE NFE, TESTANDO MUITOS CATECRES VALIDOSFFF",
"tipo": "nfe",
"chave": "24210819843657000149550010000002241271318611",
"serie": 1,
"total": 5561.92,
"numero": 224,
"pessoa": {
"nome": "RODRIGO RODRIGUES DA COSTA",
package main
import (
"encoding/json"
"fmt"
"gorm.io/driver/postgres"
"gorm.io/gorm"
"io/ioutil"
)
<!doctype html>
<html lang=pt-br>
<meta charset=utf-8>
<meta name=viewport content="width=device-width,initial-scale=1">
<title>PEDIDO</title>
<style> .coluna {
padding: 3px;
}
.coluna .caption {