Skip to content

Instantly share code, notes, and snippets.

View marcmascort's full-sized avatar
☠️
Searching the One Piece

Marc Mascort Bou marcmascort

☠️
Searching the One Piece
View GitHub Profile
@marcmascort
marcmascort / index.html
Created May 28, 2020 08:53
Async Google Ads
<html>
<head>
<title>Lazy ADs</title>
<style>
.adsbygoogle {
width:300px;
height:300px;
}
</style>
</head>
@marcmascort
marcmascort / .phpcs.xml
Last active June 30, 2020 11:29
phpcs compatible to phpinsights
<ruleset name="PHP_Codeer" xsi:noNamespaceSchemaLocation="phpcs.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<description>The coding standard for PHP_Codeer itself.</description>
<!-- Files -->
<file>bin</file>
<file>src</file>
<!-- Excludes -->
<exclude-pattern>vendor/</exclude-pattern>
@marcmascort
marcmascort / reset.css
Created March 21, 2015 14:31
Normalize.css
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
/**
* 1. Set default font family to sans-serif.
* 2. Prevent iOS text size adjust after orientation change, without disabling
* user zoom.
*/
html {
font-family: sans-serif; /* 1 */
@marcmascort
marcmascort / reset.css
Created March 21, 2015 14:29
Yahoo YUI Reset CSS
/*
YUI 3.18.1 (build f7e7bcb)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
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?
@marcmascort
marcmascort / reset.css
Created March 21, 2015 14:24
HTML5 Doctor CSS Reset
/*
html5doctor.com Reset Stylesheet
v1.6.1
Last Updated: 2010-09-17
Author: Richard Clark - http://richclarkdesign.com
Twitter: @rich_clark
*/
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
@marcmascort
marcmascort / reset.css
Created March 21, 2015 14:18
Eric Meyer's Reset CSS
/* 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,
@marcmascort
marcmascort / embed.css
Created March 21, 2015 14:01
Responsive embed CSS
.embed-container {
height: 0;
width: 100%;
padding-bottom: 56.25%;
overflow: hidden;
position: relative;
}
.embed-container iframe,
.embed-container object,
.embed-container embed {
@marcmascort
marcmascort / embed.html
Last active August 29, 2015 14:17
Responsive embed HTML
<div class="embed-container">
<iframe src="https://www.youtube.com/embed/p7giqhKB5XU"></iframe>
</div>
@marcmascort
marcmascort / functions.php
Created March 21, 2015 13:36
Funció hola_mon() al functions.php d'un theme
if ( !function_exists('hola_mon') )
{
function hola_mon()
{
echo 'Hola món! Sóc una funció del tema pare.' . "\n";
}
}
@marcmascort
marcmascort / functions.php
Created March 21, 2015 13:34
Funció hola_mon() al functions.php d'un child theme
function hola_mon()
{
echo 'Hola món! Sóc una funció del tema fill.' . "\n";
}