Skip to content

Instantly share code, notes, and snippets.

View truesibo's full-sized avatar

Sebastian truesibo

  • World Wide Web
View GitHub Profile
@truesibo
truesibo / php-class-boilderplate.php
Created March 9, 2020 13:15 — forked from maheshwaghmare/php-class-boilderplate.php
PHP Class boilerplate - *The Singleton Pattern*
<?php
/**
* MY CLASS NAME
*
* @package MY PACKAGE
* @since 1.0.0
*/
if( ! class_exists( 'MY_CLASS_NAME' ) ) :
@truesibo
truesibo / atf-css.js
Created April 12, 2016 12:22 — forked from ZauberNerd/atf-css.js
Generates CSS for all elements currently in the viewport (Above The Fold) (unstable and hacky, needs more refactoring).
(function () {
'use strict';
var CSSCriticalPath = function (w, d) {
var css = {};
var findMatchingRules = function (node, pseudo) {
var rules = w.getMatchedCSSRules(node, pseudo);
var duplicate = false;
var rulesArr = null;
@truesibo
truesibo / fa-icon-external-link.css
Created February 1, 2016 15:08 — forked from chsh/fa-icon-external-link.css
Show icon after external link using Font Awesome
<?php
/*
Plugin Name: Remove WP Meta
Plugin URI: http://leekelleher.com/
Description: This plugin removes the auto-generated WP meta tags from each webpage.
Author: Lee Kelleher
Version: 0.1.0
Author URI: http://leekelleher.com/
*/