This file contains 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 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 ): |
This file contains 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
<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> |
This file contains 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
<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> |
This file contains 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
<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"/> |
This file contains 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
<template> | |
<f-crud-form | |
v-if="service" | |
v-on="$listeners" | |
:schema="service" | |
:styleCell="styleCell" | |
:formValidation="formValidationConta" | |
@mode="mode = $event" | |
@newRecord="newRecord" | |
ref="formConta" |
This file contains 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
package utils | |
import ( | |
"bytes" | |
"comps/errors" | |
"encoding/json" | |
"fmt" | |
"github.com/sirupsen/logrus" | |
"io/ioutil" | |
"net/http" |
This file contains 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
{ | |
"id": "1wgSClZh60Sffmwlxzt0y53MCfl", | |
"tipo": "nfe", | |
"chave": "24210819843657000149550010000003521984980930", | |
"serie": 1, | |
"total": 181.94, | |
"numero": 352, | |
"pessoa": { | |
"id": "1wLtlpGBiVHcX7p2lT2C9srX1xd", | |
"nome": "FERNANDA CARBAL DE ANDRADE", |
This file contains 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
{ | |
"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", |
This file contains 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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"gorm.io/driver/postgres" | |
"gorm.io/gorm" | |
"io/ioutil" | |
) |
This file contains 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
<!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 { |
OlderNewer