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
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
async function demo() {
console.log('Taking a break...');
await sleep(2000);
console.log('Two seconds later');
}
<html>
<head>
<title>Conversão PDF para TXT</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
</head>
<body>
<form action="#" method="post" enctype="multipart/form-data" name="conversionform" id="conversionform">
<br>
<div class="container">
<p>Arquivo Local: <input id="file" name="file" type="file" /></p>
@viniciusmelocodes
viniciusmelocodes / dHIgb.markdown
Created July 20, 2019 15:41 — forked from anonymous/dHIgb.markdown
A Pen by Anonasaurus Rex.
@viniciusmelocodes
viniciusmelocodes / index.html
Created January 28, 2020 11:57
simple form editing in datatable
<html>
<head>
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/bs/dt-1.10.16/datatables.min.css"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/v/bs/dt-1.10.16/datatables.min.js"></script>
<link rel="stylesheet" type="text/css" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"/>
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.16/css/dataTables.bootstrap.min.css"/>
</head>
<body>
<bR>
INSERT INTO dvarows
(dva_id,position,description,groupnumber,type,recoil,amount)
VALUES
(1,1,'Receitas',1,'G',false,0),
(1,1,'Vendas brutas de produtos e serviços',1,'S',true,0),
(1,2,'Variação no valor justo dos ativos biológicos',1,'S',false,0),
(1,3,'Outras receitas',1,'S',false,874),
(1,4,'Provisão para créditos de liquidação duvidosa - reversão/(constituição)',1,'S',false,0),
(1,1,'Receitas',1,'T',false,874),
(1,1,'Insumos adquiridos de terceiros',2,'G',false,0),
Listing...
a11y-profile-manager-indicator/eoan,now 0.1.11-0ubuntu4 amd64 [installed,automatic]
accountsservice-ubuntu-schemas/eoan,eoan,now 0.0.7+17.10.20170922-0ubuntu1 all [installed,automatic]
accountsservice/eoan,now 0.6.55-0ubuntu10 amd64 [installed,automatic]
acl/eoan,now 2.2.53-4 amd64 [installed,automatic]
acpi-support/eoan,now 0.143 amd64 [installed,automatic]
acpid/eoan,now 1:2.0.31-1ubuntu2 amd64 [installed,automatic]
adduser/eoan,eoan,now 3.118ubuntu1 all [installed]
adwaita-icon-theme/eoan,eoan,now 3.34.0-1ubuntu1 all [installed,automatic]
alsa-base/eoan,eoan,now 1.0.25+dfsg-0ubuntu5 all [installed,automatic]
/// <summary>
/// A string extension method that get the string between the two specified string.
/// </summary>
/// <param name="this">The @this to act on.</param>
/// <param name="before">The string before to search.</param>
/// <param name="after">The string after to search.</param>
/// <returns>The string between the two specified string.</returns>
public static string GetBetween(this string @this, string before, string after)
{
int beforeStartIndex = @this.IndexOf(before);
{
"workbench.iconTheme": "vscode-icons",
"files.autoSave": "afterDelay",
"[php]": {
"editor.defaultFormatter": "kokororin.vscode-phpfmt",
},
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
},
"[blade]": {
/**
* Consultando por nome de empresas (pessoas juridicas)
*
* @param string $term = termo a ser pesquisado
* @return array
*/
public static function getLegalPeople($term)
{
$term = strtoupper($term);
$results = [];