Skip to content

Instantly share code, notes, and snippets.

View erickcomp's full-sized avatar

Erick de Azevedo Lima erickcomp

  • Fundação CECIERJ
  • Niterói, RJ - Brazil
View GitHub Profile
@mithicher
mithicher / tom-select.blade.php
Last active April 25, 2024 16:10
Tom Select Livewire Blade Component
/* Component Usage
// Data for options
$users = \App\User::limit(6)->get()->transform(fn($user) => [
'id' => $user->id,
'title' => $user->name,
'subtitle' => $user->email
]);
// Usage in view
@mlocati
mlocati / exceptions-tree.php
Created March 9, 2017 10:58
Throwable and Exceptions tree
<?php
if (!function_exists('interface_exists')) {
die('PHP version too old');
}
$throwables = listThrowableClasses();
$throwablesPerParent = splitInParents($throwables);
printTree($throwablesPerParent);
if (count($throwablesPerParent) !== 0) {
die('ERROR!!!');
@MacDada
MacDada / ShowBlogPostsController.php
Last active April 9, 2022 21:38
PHP: Use Case architecture example
<?php
class ShowBlogPostsController
{
/**
* @param ShowBlogPostUseCase
**/
private $useCase;
/**
@manuholiveira
manuholiveira / CID10.SQL
Last active August 3, 2022 20:25
Carga para inserir todos os registro do CID10
This file has been truncated, but you can view the full file.
INSERT INTO CID10 VALUES ('A00.0','Cólera devida a Vibrio 01, biótipo ');
INSERT INTO CID10 VALUES ('A00.1','Cólera devida a Vibrio 01, biótipo El Tor');
INSERT INTO CID10 VALUES ('A00.9','Cólera não especificada');
INSERT INTO CID10 VALUES ('A01.0','Febre tifóide');
INSERT INTO CID10 VALUES ('A01.1','Febre paratifóide A');
INSERT INTO CID10 VALUES ('A01.2','Febre paratifóide B');
INSERT INTO CID10 VALUES ('A01.3','Febre paratifóide C');
INSERT INTO CID10 VALUES ('A01.4','Febre paratifóide não especificada');
INSERT INTO CID10 VALUES ('A02.0','Enterite por salmonela');
INSERT INTO CID10 VALUES ('A02.1','Septicemia por salmonela');

Some HTML:

<html>
<head>
  <title>Book-O-Rama - New Book Entry</title>
</head>

<body>