Skip to content

Instantly share code, notes, and snippets.

View limadm's full-sized avatar

Daniel Lima limadm

View GitHub Profile
@limadm
limadm / tabela-nbm.sql
Last active October 28, 2015 15:46
Tabela NBM (NCM/SH Brasileiro)
INSERT INTO NBM VALUES
('0000.10.0000','ENCOMENDAS'),
('0000.20.0000','MERCADORIAS PARA FINS DE DIVULGACAO E TESTES EXTERIOR'),
('0000.70.0000','DOACOES'),
('0000.71.0010','PEDRAS EM BRUTO,DO CAPITULO 71 DA NBM-SH'),
('0000.71.0020','PEDRAS LAPIDADAS/TRABALHADAS DO CAPITULO 71 DA NBM-SH'),
('0000.71.0030','JOALHERIA DE OURO DO CAPITULO 71 DA NBM-SH'),
('0000.71.0040','DEMAIS ARTIGOS DO CAPITULO 71 DA NBM-SH'),
('0000.80.0100','CONSUMO DE BORDO - COMBUSTIVEIS E LUBRIF.P/EMBARCACOES'),
('0000.80.0200','CONSUMO DE BORDO - COMBUSTIVEIS E LUBRIF.P/AERONAVES'),
@limadm
limadm / tabela-cfop.sql
Created October 24, 2015 16:40
Tabela CFOP
INSERT INTO CFOP VALUES
('1.000', 'ENTRADAS OU AQUISIÇÕES DE SERVIÇOS DO ESTADO'),
('1.100', 'COMPRAS PARA INDUSTRIALIZAÇÃO, COMERCIALIZAÇÃO OU PRESTAÇÃO DE SERVIÇOS'),
('1.101', 'Compra para industrialização ou produção rural'),
('1.102', 'Compra para comercialização'),
('1.111', 'Compra para industrialização de mercadoria recebida anteriormente em consignação industrial'),
('1.113', 'Compra para comercialização, de mercadoria recebida anteriormente em consignação mercantil'),
('1.116', 'Compra para industrialização ou produção rural originada de encomenda para recebimento futuro'),
('1.117', 'Compra para comercialização originada de encomenda para recebimento futuro'),
('1.118', 'Compra de mercadoria para comercialização pelo adquirente originário, entregue pelo vendedor remetente ao destinatário, em venda à ordem'),
diff --git a/cpp/BoostParts/boost/python/detail/wrap_python.hpp b/cpp/BoostParts/boost/python/detail/wrap_python.hpp
index eaef784..f7a8d09 100644
--- a/cpp/BoostParts/boost/python/detail/wrap_python.hpp
+++ b/cpp/BoostParts/boost/python/detail/wrap_python.hpp
@@ -85,7 +85,9 @@
#if defined(_WIN32) || defined(__CYGWIN__)
# if defined(__GNUC__) && defined(__CYGWIN__)
-# define SIZEOF_LONG 4
+# ifndef SIZEOF_LONG
@limadm
limadm / multivariate-gaussian.m
Last active October 5, 2020 20:15
multivariate gaussian example
%This script illustrates a multivariate Gaussian distribution and its
%marginal distributions
%This code is issued under the CC0 "license" by https://commons.wikimedia.org/wiki/User:Bscan
%From https://commons.wikimedia.org/wiki/File:MultivariateNormal.png
pkg load nan
pkg load statistics
%Define limits of plotting
X = -5:0.1:5;
@limadm
limadm / datascience-links.md
Last active February 21, 2021 17:19
Some links
# windows vista
bitsadmin /transfer myDownloadJob /download /priority normal http://downloadsrv/10mb.zip c:\10mb.zip
# windows 7 / 2008
Start-BitsTransfer -Source "https://example.com/file.zip" -Destination "C:\file.zip" -DisplayName "myDownloadJob"
##
$client = new-object System.Net.WebClient
# $client.Credentials = Get-Credential
$client.DownloadFile("http://www.xyz.net/file.txt","C:\tmp\file.txt")