Skip to content

Instantly share code, notes, and snippets.

Feel free to ask for a refund.


Feel free to ask for a refund.
Block or report user

Report or block QWp6t

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
jasonmelgoza / bauhausian.json
Created May 25, 2016
CSScomb with sort order from @mdo's Code Guide
View bauhausian.json
"config": {
"remove-empty-rulesets": true,
"always-semicolon": true,
"color-case": "lower",
"block-indent": " ",
"color-shorthand": true,
"element-case": "lower",
"eof-newline": true,
"leading-zero": false,
tomjn / behave.js
Last active Apr 17, 2018
Adds a shortcode to WordPress that lets you test escaping and sanitising functions on content
View behave.js
* Behave.js
* Copyright 2013, Jacob Kelley -
* Released under the MIT Licence
* Github:
* Version: 1.5
guedressel / font-awesome-mime-type-icons.php
Last active Apr 24, 2020
Font Awesome File Icons: Mapping MIME Types to correct icon classes
View font-awesome-mime-type-icons.php
* Get font awesome file icon class for specific MIME Type
* @see
function font_awesome_file_icon_class( $mime_type ) {
// List of official MIME Types:
discordier / gist:ed4b9cba14652e7212f5
Created Dec 4, 2014
options for phpStorm @noinspection annotation
View gist:ed4b9cba14652e7212f5
robmoggach /
Last active Feb 12, 2020
Webfaction GitLab Install

Install Gitlab on webfaction

November 2014

I wanted to install gitlab on my shared hosting server at webfaction and here's how I did it. Be warned it's a memory hog. I couldn't get it below 450Mb. Also... this is for their newer 64 bit servers. I tried on a 32 bit server and didn't want to waste a day tracking down dependencies.

Create app for gitlab

Create a new app (using python)

chrisguitarguy / proper.php
Last active May 22, 2019
How to properly do a `save_post` callback
View proper.php
add_action('save_post', 'cgg_proper_save_post', 10, 2);
// first off: it doesn't matter if you return anything from this function
// `save_post` is an action, nothing is done with the return values of its
// callbacks. You're free to return $post_id if you want, obviously, but
// it's not a filter.
function cgg_proper_save_post($post_id, $post)
You can’t perform that action at this time.