Skip to content

Instantly share code, notes, and snippets.

View Mao8a's full-sized avatar

Mauricio Ochoa Mao8a

View GitHub Profile
@Mao8a
Mao8a / index.html
Created April 4, 2013 23:54
HTML: Starting Template html5 es
<!doctype html>
<html lang="es">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
</body>
</html>
@Mao8a
Mao8a / media-queries.css
Created June 18, 2013 17:47
CSS: Media Queries
/* Smartphones */
@media (max-width: 480px) { ... }
/* Smartphones to Tablets */
@media (min-width: 481px) and (max-width: 767px) { ... }
/* Tablets */
@media (min-width: 768px) and (max-width: 959px) { ... }
/* Desktop */
@media (min-width: 960px) and (max-width: 1199px) { ... }
/* Large Display */
@media (min-width: 1200px) { ... }
@Mao8a
Mao8a / WP-Plugins-list.TODO
Last active February 7, 2017 14:20
WP: Plugins list
☐ WP Plugins list
☐ Gantry Template Framework
☐ SEO Ultimate
☐ Weptile Image Slider
☐ WP Lightbox 2
☐ XML Sitemap & Google News Feeds
☐ Easy WP SMTP
☐ W3 Total Cache
☐ Contact Formhttp://contactform7.com/
@Mao8a
Mao8a / Launchlist
Created July 4, 2013 09:25
ADMIN: Launchlist Website Checklist
Launchlist
☐ All text free from spelling errors?
☐ Content has been placed consistently?
☐ Page & Content formatting has been tested?
☐ Print stylesheet exists and tested?
☐ Meta data has been included and is appropriate?
☐ Page titles are descriptive and SEO friendly?
☐ Images have appropriate alt text?
☐ Title attributes are appropriate and SEO friendly?
☐ Favicon has been created and displays correctly?
@Mao8a
Mao8a / .htaccess
Last active May 1, 2020 05:30
HTACCESS: fixes
# remove "www"
RewriteCond %{HTTP_HOST} ^www.domain.com$ [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]
# Redirect to the Joomla root folder
RewriteCond %{HTTP_HOST} ^(www\.)?domain\.com$ [NC]
RewriteRule ^(index\.html)?$ http://domain.com/subfolder/ [R=301]
# Only apply to URLs on this domain
RewriteCond %{HTTP_HOST} ^(www\.)?domain\.com$
@Mao8a
Mao8a / OpenGrapProtocol.html
Created July 9, 2013 23:22
HTML: Open Graph protocol basic
<!-- Open Graph (Facebook) -->
<meta property="og:title" content="Title" />
<meta property="og:description" content="Description" />
<meta property="og:type" content="website" />
<meta property="og:url" content="http://dominio.com/" />
<meta property="og:image" content="http://dominio.com/images/logo.jpg" />
@Mao8a
Mao8a / JoomlaExtensions.TODO
Created July 10, 2013 00:16
JOOMLA: Extensions
Joomal Extensions
☐ Xmap: Sitemap
☐ Gantry: framework
☐ Languaje Pack
☐ Image Show Gk
☐ RockBox
☐ Tabs GK
☐ Social GK
@Mao8a
Mao8a / fix-to-iOS-iframe-height-issue.html
Created July 10, 2013 05:21
HTML: Fix to iOS iframe height issue
Fix to iOS iframe height issue
<iframe id="stupid-iframe" height="200" src="a-file.html"></iframe>
<html>
<body>
<div class="iframe-wrapper" style="width: 100%; height: 200px; overflow: auto; -webkit-overflow-scrolling: touch;">
</div>
</body>
@Mao8a
Mao8a / index.html
Created October 18, 2013 00:43
HTML5 basic structure
<!DOCTYPE html>
<!--[if IE 7]>
<html class="ie ie7" lang="es-ES">
<![endif]-->
<!--[if IE 8]>
<html class="ie ie8" lang="es-ES">
<![endif]-->
<!--[if !(IE 7) | !(IE 8) ]><!-->
<html lang="es-ES">
<!--<![endif]-->
@Mao8a
Mao8a / Git-commands.md
Last active May 1, 2020 06:01
GIT: Usefull Commands

Git Commands

To fetch a branch, you simply need to:

git fetch origin

This will fetch all of the remote branches for you. With the remote branches in hand, you now need to check out the branch you are interested in, giving you a local working copy: