Skip to content

Instantly share code, notes, and snippets.

View alexandrino's full-sized avatar

Alexandrino Santana de Souza alexandrino

View GitHub Profile
Moto fria
motor, esticador, suspensão, pastilhas
---
iluminação
setas
farol
painel
---
Painel
Request 1:
INFO: 3.230.248.18:0 - "POST /pvt/orderForms/simulation HTTP/1.1" 200 OK
{'items': [{'id': '2221156', 'quantity': 1, 'seller': '2221', 'parentItemIndex': None, 'parentAssemblyBinding': None}], 'priceTables': [], 'marketingData': None, 'postalCode': None, 'country': None, 'selectedSla': None, 'clientProfileData': None, 'shippingData': None, 'paymentData': None, 'geoCoordinates': [], 'isCheckedIn': False, 'storeId': None, 'checkedInPickupPointId': None, 'orderFormId': None}
Request 2:
INFO: 52.73.230.96:0 - "POST /pvt/orderForms/simulation HTTP/1.1" 200 OK
{'items': [{'id': '2221156', 'quantity': 1, 'seller': '2221', 'parentItemIndex': None, 'parentAssemblyBinding': None}], 'priceTables': [], 'marketingData': None, 'postalCode': None, 'country': None, 'selectedSla': 'Normal', 'clientProfileData': None, 'shippingData': {'state': None, 'city': None, 'neighborhood': None, 'street': None, 'isFOB': False, 'selectedAddresses': [], 'logisticsInfo': [{'itemIndex': 0, 'selectedDeliveryChannel': 'deli
<?xml version="1.0" encoding="UTF-8"?><Carga xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><Imoveis>
<Imovel>
<CodigoImovel>TH1249</CodigoImovel>
<TipoImovel>Rural</TipoImovel>
<SubTipoImovel>Sítio</SubTipoImovel>
<CategoriaImovel>Padrão</CategoriaImovel>
<UF>SP</UF>
<Cidade>São Paulo</Cidade>
<Bairro>Capela do Socorro</Bairro>
<?xml version="1.0" encoding="UTF-8"?>
<Carga xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Imoveis>
<Imovel>
<CodigoImovel>12344</CodigoImovel>
<TipoImovel>Apartamento</TipoImovel>
<SubTipoImovel>Apartamento Padrão</SubTipoImovel>
<CategoriaImovel>Padrão</CategoriaImovel>
<UF>RR</UF>
<Cidade>Otima Vista</Cidade>
@alexandrino
alexandrino / iterm2-solarized.md
Created January 4, 2018 13:34 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)

Default

Default

Powerlevel9k

Powerlevel9k

@alexandrino
alexandrino / git-commands
Last active August 29, 2015 14:06
Git Commands
# REVERT COMMIT
git reset --hard f414f31
git reset --soft HEAD@{1}
git commit -m "Reverting to the state of the project at f414f31`
# Reset and sync local respository with remote branch
git fetch origin
git reset --hard origin/master
git clean -f -d
@alexandrino
alexandrino / gist:7026030
Created October 17, 2013 14:32
Gruntfile.js
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
},
build: {
@alexandrino
alexandrino / Add jQuery Snippets
Created July 15, 2013 19:54
Add jQuery to any page that does not have it already.
// jquerify.js
// https://github.com/bgrins/devtools-snippets
// Add jQuery to any page that does not have it already.
(function () {
if ( !window.jQuery ) {
var s = document.createElement('script');
s.setAttribute('src', '//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js');
document.body.appendChild(s);
@alexandrino
alexandrino / webperformance.md
Created August 22, 2012 18:35
Web Performance

Web Performance

Componentes modulares

Em uma grande aplicação web, para tratar da complexidade valendo-se de componentes modulares, ou módulos, você deve encapsular tudo que o componente precisa dentro de partes pequenas e bem definidas da aplicação. Isso permite a divisão de uma grande aplicação em partes mais facilmente manuseáveis que podem ser construídas com um foco específico e reutilizadas sempre que necessário.

###Atingindo a modularidade A modularidade de grandes aplicações web pode ser atingida, assim como em outros tipos de software, por meio do encapsulamento, da abstração e do maior