Skip to content

Instantly share code, notes, and snippets.

View clebercar's full-sized avatar

Cleber Carvalho clebercar

View GitHub Profile
//For Create-react-app
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug CRA Tests",
"type": "node",
"request": "launch",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/react-scripts",
"args": ["test", "--runInBand", "--no-cache", "--env=jsdom"],

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@clebercar
clebercar / create pdf with php - part 8
Created August 27, 2018 14:32
create pdf with php - part 8
file_put_contents('doc.pdf', $dompdf->output());
@clebercar
clebercar / create pdf with php - part 7
Created August 27, 2018 14:31
create pdf with php - part 7
$dompdf->render();
$dompdf->stream();
@clebercar
clebercar / create pdf with php - part 6
Created August 27, 2018 14:30
create pdf with php - part 6
$dompdf->setPaper('A4', 'portrait');
@clebercar
clebercar / create pdf with php - part 5
Created August 27, 2018 14:27
create pdf with php - part 5
$dompdf->loadhtml($tabela);
@clebercar
clebercar / create pdf with php - part 4
Created August 27, 2018 14:26
create pdf with php - part 4
$tabela = file_get_contents('tabela.html');
@clebercar
clebercar / create pdf with php - part 3
Created August 27, 2018 14:24
create pdf with php - part 3
<!DOCTYPE html>
<html>
<head>
<style>
h2{
color: #777;
text-align: center;
text-transform: uppercase;
}
table{
@clebercar
clebercar / create pdf with php - part 2
Created August 27, 2018 12:58
create pdf with php - part 2
$dompdf = new Dompdf\Dompdf;
@clebercar
clebercar / create pdf with php - part 1
Last active August 27, 2018 12:57
create pdf with php - part 1
<?php
require __DIR__.'/vendor/autoload.php';