Skip to content

Instantly share code, notes, and snippets.

<?php
use Rubricate\Fpdf\FileFpdf;
$pdf = new FileFpdf();
$pdf->addPage();
$pdf->setFont('Arial','B',16);
$pdf->cell(40,10,'Hello World!');
$pdf->output();
@estefanionsantos
estefanionsantos / reset.css
Created April 3, 2024 03:18 — forked from poychang/reset.css
Eric Meyer's Reset CSS 2.0
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
@estefanionsantos
estefanionsantos / yahoo.css
Created April 3, 2024 02:47 — forked from marharyta/yahoo.css
Yahoo Reset CSS
/**
* YUI 3.5.0 - reset.css (http://developer.yahoo.com/yui/3/cssreset/)
* https://cssreset.com/
* Copyright 2012 Yahoo! Inc. All rights reserved.
* http://yuilibrary.com/license/
*/
/*
TODO will need to remove settings on HTML since we can't namespace it.
TODO with the prefix, should I group by selector or property for weight savings?
*/
<?php
require 'vendor/autoload.php';
use Rubricate\Paginator\Paginator;
use Rubricate\Paginator\TotalPaginator;
use Rubricate\Paginator\PerPagePaginator;
use Rubricate\Paginator\CurrentNumberPaginator;
use Rubricate\Paginator\LinkNumberPaginator;
@estefanionsantos
estefanionsantos / .htaccess
Created March 2, 2024 17:20
htaccess Rubricate
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?/$1 [L]
# EOF
<?php
$route['afrodite'] = 'mitologia/afrodite';
$route['journals'] = 'blogs';
$route['blog/joe'] = 'blogs/users/34';
# Wildcards
$route['user/{id}/{name}'] = 'user/:id/:name';
$route['product/{id}'] = 'catalog/product_lookup_by_id/:id';
<?php
$u = new Rubricate\Uri\CoreUri();
# localhost:8080
$u->getController(); # Index
$u->getAction(); # index
# uri: /sports/basketball/lorem/ipsum/dolor
$u->getController(); # Sports
<form>
<div class="row row_fluid">
<div class="gr gr_4 gr_field gr_md_12">
<label for="first_name">First Name:</label>
<input type="text" id="first_name" />
</div>
<div class="gr gr_4 gr_field gr_md_12">
<label for="last_name">Last Name:</label>
<input type="text" id="last_name" />
</div>
@estefanionsantos
estefanionsantos / inline-form.html
Last active February 29, 2024 11:36
Inline form
<form>
<div class="row row_fluid">
<div class="gr gr_4 gr_field gr_md_12">
<input type="email" name="email" placeholder="Email" />
</div>
<div class="gr gr_4 gr_field gr_md_12">
<input type="password" name="password" placeholder="password" />
</div>
<div class="gr gr_4">
<button class="bt bt_prm">Send</button>
<form>
<div class="row">
<div class="gr gr_8 gr_md_12">
<div class="row">
<div class="gr gr_12 gr_field">
<input type="email" name="email" placeholder="Email" />
</div>
</div>
<div class="row">
<div class="gr gr_12 gr_field">