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
[ | |
{ | |
"insertId": "t56kj4f6hg9qq", | |
"jsonPayload": { | |
"loggerName": "RequestLogger", | |
"res": { | |
"body": { | |
"errors": [ | |
"Could not find user with specified CPF/CNPJ" | |
], |
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
{"lastUpload":"2020-08-26T18:06:35.700Z","extensionVersion":"v3.4.3"} |
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
# -*- coding: utf-8 -*- | |
import scrapy | |
import MySQLdb | |
from scrapy.utils.response import open_in_browser | |
from datetime import datetime, timedelta | |
class LoginiclassSpider(scrapy.Spider): | |
name = 'loginIclass' |
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
SELECT | |
chamado.cdchamado as 'COD. CHAMADO', | |
UPPER(usuario_abertura.nome) as 'USU. ABERTURA', | |
UPPER(usuario_fechamento.nome) as 'USU. FECHAMENTO', | |
chamado.status as 'STATUS CHAMADO', | |
tipo_chamado.descricao as 'TIPO CHAMADO', | |
chamado.dthi as 'DATA ABERTURA', | |
chamado.dthf as 'DATA FECHAMENTO' | |
FROM chamado | |
INNER JOIN usuario usuario_fechamento on usuario_fechamento.cdusuario = chamado.cdusuariof |
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
public function index() { | |
$this->validate($request, [ | |
"equipmentType" => 'bail|required|in:pac,cto,roteamento,ponto|string', | |
"equipmentId" => [ | |
"required", | |
Rule::exists($request->get('equipmentType')->where(function ($query) use ($request) { | |
$equipmentType = $request->get('equipmentType'); | |
if($equipmentType === 'pac') { | |
$column = 'cdpac' | |
} else if ($equipmentType === 'cto') { |
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
<?php | |
namespace App\Http\Controllers; | |
use function GuzzleHttp\Psr7\str; | |
use Illuminate\Http\Request; | |
use Illuminate\Support\Facades\DB; | |
class cobrancaController extends Controller | |
{ | |
private function getDD($codcli) |
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
{ | |
"data": [ | |
{ | |
"points": [ | |
0.0430421, | |
-51.0679453 | |
], | |
"distancia": { | |
"text": "0.1 km", | |
"value": 106 |
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
<soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/' xmlns:v1='http://v1.service.ws.activiafs.activia.com.br/'> | |
<soapenv:Header/> | |
<soapenv:Body> | |
<v1:buscarDisponibilidade> | |
<buscarDisponibilidadeIn> | |
<endereco> | |
<codigoEndereco>68900-095</codigoEndereco> | |
<codigoCliente>pacSTN127103</codigoCliente> | |
<logradouro>Av. Ataíde Teive, 1233 - Central, Macapá - AP, 68900-095, Brazil</logradouro> | |
<cep>68900-095</cep> |
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
class MyAdminSite(AdminSite, ModelAdmin): | |
def index(self, request, extra_context=None): | |
""" | |
Display the main admin index page, which lists all of the installed | |
apps that have been registered in this site. | |
""" | |
app_list = self.get_app_list(request) | |
client_count = Client.objects.count() | |
device_count = Device.objects.count() | |
identification_count = Identifications.objects.count() |
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
# Python Version: Python3 | |
# Django Version: 2.1 | |
# Server version: Apache/2.4.18 (Ubuntu) | |
# My requirements.txt | |
diff-match-patch==20121119 | |
Django==2.1.1 | |
django-ajax-selects==1.7.1 | |
django-crispy-forms==1.7.2 | |
django-filter==2.0.0 |
NewerOlder