Skip to content

Instantly share code, notes, and snippets.

View FredSRocha's full-sized avatar
👨‍💻
TaurumORG 🛸

Fred Rocha FredSRocha

👨‍💻
TaurumORG 🛸
View GitHub Profile
@FredSRocha
FredSRocha / modern-reset.css
Last active July 11, 2021 23:26
Simple and modern CSS reset based on Normalize.
@charset "UTF-8";
/*!
* Modern reset CSS (https://gist.github.com/FredSRocha/7e6ab699c03a70c6854683fe38e38ca4)
* Simple and modern CSS reset based on Normalize.
*/
:root {
--reset-font-sans-serif: Roboto, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
--reset-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
--reset-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
}
@FredSRocha
FredSRocha / sendGridTemplate_1.php
Created July 6, 2019 10:12
SendEmail Template.
<?php
# Variables
$email = "***@gmail.com";
$subject = "Subject Email";
$message = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam velit enim, consequat ut est nec, rutrum blandit enim. Cras ultricies felis ac mattis elementum. Cras justo erat, efficitur et nulla sed, tempus tristique arcu. Donec diam nisl, vehicula vel sollicitudin vitae, facilisis a risus. Nunc fermentum, nibh non lacinia rhoncus, diam lacus fermentum lectus, et tempor dolor risus non est. Donec varius ligula a dignissim rutrum. In non vulputate purus, sit amet sollicitudin lorem. Etiam varius facilisis massa, non bibendum eros congue non. Nulla vel nulla vel lacus pretium sollicitudin quis non mi. Phasellus gravida purus ac eleifend laoreet.";
# General
define("EMAIL_PARTNER_NAME" , "copy");
define("EMAIL_PARTNER_WEBSITE" , "http://www.example.com");
define("EMAIL_PARTNER_EMAIL" , "contato@site.com");
define("EMAIL_PARTNER_PHONE" , "31999999999");
@FredSRocha
FredSRocha / sendGridClass.php
Last active July 6, 2019 09:38
Send Grid Class.
<?php
interface IEmail {
public static function sendGrid($email,$subject,$htmlmessage,$plaintext);
}
class SendGridEmail implements IEmail {
public static function sendGrid($email,$subject,$htmlmessage,$plaintext) {
$url = 'https://api.sendgrid.com/';
@FredSRocha
FredSRocha / html5-template.html
Last active April 21, 2019 03:23
Build HTML5 page simple and fast.
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Your Website</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Material+Icons|Roboto:100,300,400,700'>
</head>
<body>
<header role="banner">
@FredSRocha
FredSRocha / FSR Reset CSS
Last active February 6, 2018 05:47
Reset CSS based on Normalize.css with some steroids.
/*!
* FSR Reset CSS - Based on Normalize.css (https://necolas.github.io/normalize.css/) with some steroids.
* Gist: https://gist.github.com/fredsrocha/8c6119f5816df1378e10b1718c390e1b
* @fredsrocha (https://github.com/fredsrocha/)
*/
@charset "UTF-8";html {-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;}article, aside, details, figcaption, figure, footer, header, main, menu, nav, section, summary {display: block;}figure {margin: 1em 40px;}summary {display: list-item;}h1 {font-size: 2em;margin: .67em 0;}hr {-webkit-box-sizing: content-box;box-sizing: content-box;height: 0;overflow: visible;}a {background-color: transparent;-webkit-text-decoration-skip: objects;}abbr[data-original-title], abbr[title], dfn[title] {cursor: help;border-bottom: 1px dotted #818a91;}b, strong {font-weight: inherit;}b, strong {font-weight: bolder;}dfn {font-style: italic;}mark {background-color: #ff0;color: #000;}small {font-size: 80%;}sub, sup {font-size: 75%;line-height: 0;position: relative;vertical-align: baseline;}
@FredSRocha
FredSRocha / mobile-first-media.css
Last active February 7, 2018 16:19
My favorite reference for media screen Concepts (Based on Mobile First).
/* @media Concepts (Based on Mobile First) */
/* Mobile First in General Concepts. */
/**
* 16.1 Mobile Large 620px
*/
@media screen and (min-width: 38.75em) {}
@FredSRocha
FredSRocha / hack-browser.css
Last active January 27, 2018 19:04
Hack for browsers in CSS.
@charset "UTF-8";
/*!
* FSR Components - Hack Browser CSS v1.0.0 (https://gist.github.com/fredsrocha/f73f26fd39c976788166c4869b9ce239)
* By: @fredsrocha
*/
a {
color: #1976d2;
text-decoration: none;
@FredSRocha
FredSRocha / skeleton-page.txt
Last active December 30, 2022 10:02
Build pages with: HTML5, Meta(Open Graph/Twitter) and JsonLD.
<!doctype html>
<html itemscope itemtype="http://schema.org/WebPage" class="no-js" lang="[ISO-Code]">
<head>
<!--
To lang:
ISO [639-1] Language Codes:
(http://www.w3schools.com/tags/ref_language_codes.asp)
ISO Country Codes:
(http://www.w3schools.com/tags/ref_country_codes.asp)
-->