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
/* | |
Adding a ‘thousands’ separator to ChartJS’s Y axis and tooltips | |
I learned the toLocaleString() method for adding thousands separators from this Github issue (https://github.com/chartjs/Chart.js/issues/411) | |
These options in your options config will add a thousands separator to your tooltips and yAxes. | |
*/ | |
options: { | |
tooltips: { | |
callbacks: { |
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
Para permitir o acesso externo ao banco de dados mysql em um servidor remoto, é configurar-lo para acessos externos. | |
1. Acessar o mysql de dentro do servidor e dar as permissões de acesso a partir de qualquer IP. | |
mysql> GRANT ALL ON *.* TO 'root'@'%' IDENTIFIED BY '[senha]' WITH GRANT OPTION; | |
2. Para finalizar atualizar os privilégios mysql> FLUSH PRIVILEGES; |
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
INSERT INTO `cfop`(`Id`,`Descricao`,`Operacao`,`Aplicacao`) VALUES | |
(1000,'1000 - ENTRADAS OU AQUISIÇÕES DE SERVIÇOS DO ESTADO',0,'Classificam-se, neste grupo, as operações ou prestações em que o estabelecimento remetente esteja localizado na mesma unidade da Federação do destinatário'), | |
(1100,'1100 - COMPRAS PARA INDUSTRIALIZAÇÃO, PRODUÇÃO RURAL, COMERCIALIZAÇÃO OU PRESTAÇÃO DE SERVIÇOS',0,'(NR Ajuste SINIEF 05/2005) (DECRETO Nº 28.868, DE 31/01/2006)\r\n\r\n(Dec. 28.868/2006 – Efeitos a partir de 01/01/2006, ficando facultada ao contribuinte a sua adoção para fatos geradores ocorridos no período de 01 de novembro a 31 de dezembro de 2005)'), | |
(1101,'1101 - Compra para industrialização ou produção rural (NR Ajuste SINIEF 05/2005) (Decreto 28.868/2006)',0,'Compra de mercadoria a ser utilizada em processo de industrialização ou produção rural, bem como a entrada de mercadoria em estabelecimento industrial ou produtor rural de cooperativa recebida de seus cooperados ou de estabelecimento de outra cooperativa.\ |
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
/* Com campo aplicacao */ | |
INSERT INTO `cstcsosnicms` (id, descricao, aplicacao) VALUES | |
(101,'101 - Tributada pelo Simples Nacional com permissão de crédito', 'Classificam-se neste código as operações que permitem a indicação da alíquota do ICMS devido no Simples Nacional e o valor do crédito correspondente.'), | |
(102,'102 - Tributada pelo Simples Nacional sem permissão de crédito','Classificam-se neste código as operações que não permitem a indicação da alíquota do ICMS devido pelo Simples Nacional e do valor do crédito, e não estejam abrangidas nas hipóteses dos códigos 103, 203, 300, 400, 500 e 900.'), | |
(103,'103 - Isenção do ICMS no Simples Nacional para faixa de receita bruta','Classificam-se neste código as operações praticadas por optantes pelo Simples Nacional contemplados com isenção concedida para faixa de receita bruta nos termos da Lei Complementar no 123, de 2006.'), | |
(201,'201 - Tributada pelo Simples Nacional com permissão de crédito e com cobrança do ICMS por subst |
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
INSERT INTO cstpis (id, descricao, operacao) VALUES | |
(01, '01 - Operação tributável com alíquota básica', 1), | |
(02, '02 - Operação tributável com alíquota diferenciada', 1), | |
(03, '03 - Operação tributável com alíquota por unidade de medida de produto', 1), | |
(04, '04 - Operação tributável monofásica - revenda a alíquota zero', 1), | |
(05, '05 - Operação tributável por substituição tributária', 1), | |
(06, '06 - Operação tributável a alíquota zero', 1), | |
(07, '07 - Operação isenta da contribuição', 1), | |
(08, '08 - Operação sem incidência da contribuição', 1), | |
(09, '09 - Operação com suspensão da contribuição', 1), |
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
insert into cstipi (id, descricao, operacao) values | |
(50, '50 – Saída tributada', 1), | |
(51, '51 – Saída tributável com alíquota zero', 1), | |
(52, '52 – Saída isenta', 1), | |
(53, '53 – Saída não tributada', 1), | |
(54, '54 – Saída imune', 1), | |
(55, '55 – Saída com suspensão', 1), | |
(99, '99 – Outras saídas', 1), | |
(00, '00 – Entrada com recuperação de crédito', 0), | |
(01, '01 – Entrada tributada com alíquota zero', 0), |
This file has been truncated, but you can view the full file.
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
insert into ncm (id, codigo, ExcecaoTabelaIpi, uf, tipo, descricao, AliqNacional, AliqImportacao, AliqEstadual, AliqMunicipal) values | |
(00000000, "00000000", null, 33, 0, "PRODUTO NAO ESPECIFICADO NA LISTA DE NCM", 13.45, 15.45, 0.00, 0.00), | |
(01012100, "01012100", null, 33, 0, "Cavalos reprodutores,de raca pura", 4.20, 6.20, 14.00, 0.00), | |
(01012900, "01012900", null, 33, 0, "Cavalos vivos,exceto reprodutores de raca pura", 4.20, 6.94, 14.00, 0.00), | |
(01013000, "01013000", null, 33, 0, "Asininos", 4.20, 7.65, 6.84, 0.00), | |
(01019000, "01019000", null, 33, 0, "Outros asininos e muares,vivos", 4.20, 7.65, 6.84, 0.00), | |
(01022110, "01022110", null, 33, 0, "Bovinos reprodutores,de raca pura,prenhe ou com cria ao pe", 4.20, 6.20, 14.00, 0.00), | |
(01022190, "01022190", null, 33, 0, "Outros bovinos reprodutores,de raca pura", 4.20, 6.20, 14.00, 0.00), | |
(01022911, "01022911", null, 33, 0, "Outros bovinos para reprodução, prenhe ou com cria ao pe", 4.20, 6.94, 14.00, 0.00), | |
(01022919, "01022919", null, 33, 0, |
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
"editor.tokenColorCustomizations": { | |
"[Visual Studio Dark]": { | |
"comments": "#444444", | |
"functions": "#AAAAAA", | |
"keywords": "#00AAAA", | |
// "numbers": "#009999", | |
"strings": "#BF7766", | |
"types": "#AAAAAA", | |
"variables": "#AAAAAA", | |
"textMateRules": [ |
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
$userPath = $env:USERPROFILE | |
$pathExclusions = New-Object System.Collections.ArrayList | |
$processExclusions = New-Object System.Collections.ArrayList | |
$pathExclusions.Add('C:\source\repos') > $null | |
$pathExclusions.Add('C:\Windows\Microsoft.NET') > $null | |
$pathExclusions.Add('C:\Windows\assembly') > $null | |
$pathExclusions.Add($userPath + '\AppData\Local\Microsoft\VisualStudio') > $null | |
$pathExclusions.Add($userPath + '\AppData\Local\Microsoft\VisualStudio Services') > $null | |
$pathExclusions.Add($userPath + '\AppData\Local\GitCredentialManager') > $null |
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
Just create a folder on your desktop called Pics, open PowerShell and paste the following command press Enter: | |
Get-ChildItem -Path $env:localappdata\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets | Copy-Item -dest {"$home\desktop\pics\" + $_.BaseName + ($i++) +".jpg" } | |
All the images from the LocalState/Assets folder should be there in Pics folders. You’ll need to delete out the useless files, but | |
otherwise it saves you a lot of time. Enjoy! |
OlderNewer