Skip to content

Instantly share code, notes, and snippets.

View bloqhead's full-sized avatar

Daryn St. Pierre bloqhead

View GitHub Profile
@sethbergman
sethbergman / WP-HTML-Compression
Created November 3, 2015 03:27
Minify HTML for WordPress without a Plugin - Add to function.php
<?php
class WP_HTML_Compression
{
// Settings
protected $compress_css = true;
protected $compress_js = true;
protected $info_comment = true;
protected $remove_comments = true;
// Variables
@EugeneCib
EugeneCib / twig-wp-escape-extension.php
Created September 9, 2015 11:06
WordPress escape function extension for Twig. Escape functions as twig filters and functions.
<?php
class Twig_Extension_WP_basic_functions extends Twig_Extension
{
/**
* {@inheritdoc}
*/
public function getFunctions()
{
@logoscreative
logoscreative / plugin.php
Last active February 1, 2023 12:14
Friendlier, Safer WordPress Admin Areas
<?php
/**
* "Friendlier, Safer WordPress Admin Areas"
* Presented by Cliff Seal at WordCamp Atlanta 2015 and Asheville 2016
* Slides: http://www.slideshare.net/cliffseal/wp-admin
*
* Plugin Name: A Better Admin Experience
* Plugin URI: http://evermoresites.com
* Description: Cleans up and sanitizes the WordPress admin area
* Version: 1.0
@jsylvanus
jsylvanus / gist:caec49dd76b6299f935b
Last active April 26, 2018 20:19
Squint test w/ BLOKK font
" Throw me in your ~/.gvimrc
let g:squinty = 0
function! Squint()
let windowBounds = system("osascript -e 'tell application \"MacVim\" to get bounds of window 1'")[:-2]
if g:squinty
set guifont=InputMonoCondensed_Thin:h14
let g:squinty = 0
else
set guifont=BLOKK:h6
anonymous
anonymous / my.css
Created December 23, 2014 18:09
CSS Gradient Animation
background: linear-gradient(143deg, #244f66, #666124, #21f211, #af8ce1, #ff00d3, #003dfb, #af8ce1, #a7e18c, #dfe18c, #d02f35);
background-size: 2000% 2000%;
-webkit-animation: AnimationName 1s ease infinite;
-moz-animation: AnimationName 1s ease infinite;
-o-animation: AnimationName 1s ease infinite;
animation: AnimationName 1s ease infinite;
@-webkit-keyframes AnimationName {
    0%{background-position:0% 66%}
    50%{background-position:100% 35%}
    100%{background-position:0% 66%}
@KittyGiraudel
KittyGiraudel / SassMeister-input.scss
Last active November 22, 2016 11:19
Generated by SassMeister.com.
// ----
// Sass (v3.4.9)
// Compass (v1.0.1)
// ----
@function is-number($value) {
@return type-of($value) == 'number';
}
@function is-time($value) {
@bramus
bramus / gist:5b4f4733e543912a518f
Created November 4, 2014 19:50
OS X 10.10 Yosemite, Apache, MySQL, PHP 5.6, (MAMP) Homebrew Dev Setup
# From http://www.iyware.com/osx-yosemite-mamp-homebrew-development-setup/
# Install Homebrew
xcode-select --install
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew doctor
# Tap Repos
brew tap homebrew/dupes
brew tap homebrew/versions
@EvanAgee
EvanAgee / main.js
Created April 29, 2014 19:34
Add hover on touch for mobile devices using jQuery
$("a").live("touchstart", function(e) {
$(this).trigger("hover");
});
$("a").live("touchend", function(e) {
$(this).trigger("blur");
});
@curtisj44
curtisj44 / pesticide-css-bookmarklet.js
Last active March 15, 2022 09:04
Pesticide CSS bookmarklet
var link,
id = 'Pesticide';
pesticide = document.getElementById(id);
if (pesticide === null) {
console.log(id + ' added');
link = document.createElement('link');
link.id = id;
link.rel = 'stylesheet';

OpenCart Issue #1286

This is the full version of the thread for opencart#1286, archived from notification emails.
The discussion has since been deleted almost entirely by OpenCart's developer.
Everyone who posted in it has also been blocked from the OpenCart repo.


Damian Bushong