Skip to content

Instantly share code, notes, and snippets.

View bangsite's full-sized avatar

Bang bangsite

  • VN
  • 14:25 (UTC +07:00)
View GitHub Profile
@bangsite
bangsite / responsive.css
Created March 22, 2020 10:07 — forked from codesynapse/responsive.css
Mobile responsive CSS
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* Styles */
}
/* Smartphones (landscape) ----------- */
@media only screen
and (min-width : 321px) {
@bangsite
bangsite / meta-tags.md
Created October 2, 2019 08:44 — forked from lancejpollard/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
@bangsite
bangsite / hamburger-menu-animations.markdown
Created June 24, 2019 03:32
Hamburger Menu Animations
@bangsite
bangsite / xampp_php7_xdebug.md
Created May 15, 2019 11:52 — forked from odan/xampp_php7_xdebug.md
Installing Xdebug for XAMPP

Installing Xdebug for XAMPP with PHP 7.x

Requirements

Setup

@bangsite
bangsite / products_with_category.sql
Created May 8, 2019 02:23 — forked from phlbnks/products_with_category.sql
Select Product name, SKU, price and category from WordPress / WooCommerce with MySQL query
SELECT
wp_posts.post_title AS Product,
wp_postmeta1.meta_value AS SKU,
wp_postmeta2.meta_value AS Price,
GROUP_CONCAT( wp_terms.name ORDER BY wp_terms.name SEPARATOR ', ' ) AS ProductCategories
FROM wp_posts
LEFT JOIN wp_postmeta wp_postmeta1
ON wp_postmeta1.post_id = wp_posts.ID
AND wp_postmeta1.meta_key = '_sku'
LEFT JOIN wp_postmeta wp_postmeta2