Skip to content

Instantly share code, notes, and snippets.

@estefanionsantos
estefanionsantos / agent_main.php
Created April 7, 2026 23:18
Preparing the Configuration Data
<?php
use Rubricate\Agent\UserAgent;
// 1. Instantiate the class passing the configurations
$ua = new UserAgent($config);
// 2. Checking the device type
if ($ua->isMobile()) {
@estefanionsantos
estefanionsantos / agent_config.php
Last active April 8, 2026 00:17
Preparing the Configuration Data
$config = [
'platforms' => [
'windows nt 10.0' => 'Windows 10',
'android' => 'Android',
'iphone' => 'iPhone',
'linux' => 'Linux',
'ubuntu' => 'Ubuntu Linux',
'fedora' => 'Fedora Linux',
'x11' => 'Linux (Generic)'
],
@estefanionsantos
estefanionsantos / background.html
Last active September 4, 2025 04:10
background color
<div class="pp_3 bg_prm">x.bg_prm - primary </div>
<div class="pp_3 bg_scn">.bg_scn - secundary </div>
<div class="pp_3 bg_lgt">.bg_lgt - light </div>
<div class="pp_3 bg_ntl">.bg_ntl - neutral </div>
<div class="pp_3 bg_raw">.bg_raw - raw (transparente) </div>
<body>
<nav class="bg_prm">
<div class="container py_1">
menu
</div>
</nav>
<div class="container py_1">
lorem ipsum dolor sit amet
</div>
<body>
<nav class="bg_prm">
<div class="container py_1">
menu
</div>
</nav>
<div class="fx_content">
<div class="container py_1">
lorem ipsum dolor sit amet
Austria; Vienna; 83859; 8075
Belgium; Brussels; 30518; 10192
Denmark; Copenhagen; 43094; 5295
Finland; Helsinki; 304529; 5147
France; Paris; 543965; 58728
Germany; Berlin; 357022; 82057
Greece; Athens; 131625; 10511
Ireland; Dublin; 70723; 3694
Italy; Roma; 301316; 57563
Luxembourg; Luxembourg; 2586; 424
@estefanionsantos
estefanionsantos / fpdf-tuto6-1.php
Last active April 19, 2025 05:18
fpdf-tuto6-1
<?php
use Rubricate\Fpdf\FileFpdf;
class PDF extends FileFpdf
{
protected $B = 0;
protected $I = 0;
protected $U = 0;
protected $HREF = '';
<?php
use Rubricate\Fpdf\FileFpdf;
class PDF extends FileFpdf
{
public function loadData($file)
{
$lines = file($file);
$data = [];
@estefanionsantos
estefanionsantos / fpdf-tuto4-1.php
Last active April 19, 2025 04:36
fpdf-tuto4-1
<?php
use Rubricate\Fpdf\FileFpdf;
class PDF extends FileFpdf
{
protected $col = 0; // Current column
protected $y0; // Ordinate of column start
public function header()
During the period in which these developments were occurring, I had returned from a scientific undertaking organized to explore the Nebraska badlands in the United States. In my capacity as Assistant Professor at the Paris Museum of Natural History, I had been attached to this expedition by the French government. After spending six months in Nebraska, I arrived in New York laden with valuable collections near the end of March. My departure for France was set for early May. In the meantime, then, I was busy classifying my mineralogical, botanical, and zoological treasures when that incident took place with the Scotia.
I was perfectly abreast of this question, which was the big news of the day, and how could I not have been? I had read and reread every American and European newspaper without being any farther along. This mystery puzzled me. Finding it impossible to form any views, I drifted from one extreme to the other. Something was out there, that much was certain, and any doubting Thomas was invited to plac