Skip to content

Instantly share code, notes, and snippets.

View viniciusmelocodes's full-sized avatar
:octocat:
Serving customers with high quality projects

Vinícius Melo viniciusmelocodes

:octocat:
Serving customers with high quality projects
  • Vinícius Melo
  • Brazil
View GitHub Profile
<div class="row" style="margin-top: 40px">
<div class="container">
<table id="example" class="display" style="width:100%">
<thead>
<tr>
<th>Name</th>
<th>Position</th>
<th>Office</th>
<th>Age</th>
<th>Start date</th>
function registrarAcesso() {
let codigo_acesso = $('#codigo-acesso').val();
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
return $.ajax({
@viniciusmelocodes
viniciusmelocodes / git.md
Created December 16, 2020 14:27 — forked from leocomelli/git.md
Lista de comandos úteis do GIT

GIT

Estados

  • Modificado (modified);
  • Preparado (staged/index)
  • Consolidado (comitted);

Ajuda

SELECT
R.RDB$RELATION_NAME,
R.RDB$FIELD_NAME,
R.RDB$FIELD_SOURCE,
F.RDB$FIELD_LENGTH,
F.RDB$FIELD_TYPE,
F.RDB$FIELD_SCALE,
F.RDB$FIELD_SUB_TYPE
FROM RDB$RELATION_FIELDS R
JOIN RDB$FIELDS F ON
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default" /va /f
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Servers" /f
reg add "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Servers"
del /f /ah %homepath%\documents\default.rdp
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs" /va /f
Get-AppxPackage Microsoft.3DBuilder | Remove-AppxPackage
Get-AppxPackage Microsoft.BingWeather | Remove-AppxPackage
Get-AppxPackage Microsoft.DesktopAppInstaller | Remove-AppxPackage
Get-AppxPackage Microsoft.GetHelp | Remove-AppxPackage
Get-AppxPackage Microsoft.Getstarted | Remove-AppxPackage
Get-AppxPackage Microsoft.HEIFImageExtension | Remove-AppxPackage
Get-AppxPackage Microsoft.Messaging | Remove-AppxPackage
Get-AppxPackage Microsoft.Microsoft3DViewer | Remove-AppxPackage
Get-AppxPackage Microsoft.MicrosoftOfficeHub | Remove-AppxPackage
Get-AppxPackage Microsoft.MicrosoftSolitaireCollection | Remove-AppxPackage
powershell -executionpolicy bypass -File <Filename>
@viniciusmelocodes
viniciusmelocodes / README.md
Created June 21, 2021 18:25 — forked from leomp12/README.md
E-Com Plus - Carregando images de produtos via Storage API

E-Com Plus - Carregando images de produtos via Storage API

Recomendamos que as imagens dos produtos sejam carregadas para a Storage API, onde serão normalizadas em tamanhos que comuns para o Storefront, otimizadas para WebP e também salvas em PNG/JPEG para utilização em dispositivos que não suportam o formato WebP.

Source code da Storage API

Upload

function TServicoIntegradorEComPlus.pesquisarCliente: TStringList;
var
documentosClientes: TStringList;
qry: TFDQuery;
i: Integer;
dadosClientes, arrayCliente: ISuperObject;
arrayClientes: TSuperArray;
mensagem401: string;
begin
mensagem401 := '';
function TServicoIntegradorEComPlus.gerarTokenAcesso(servicoAtivo: Boolean): TStringList;
var
bodyParamItem, expires: string;
dadosToken: ISuperObject;
bodyRequest: TJSONObject;
qry: TFDQuery;
begin
qry := TFDQuery.Create(nil);
try
try