Skip to content

Instantly share code, notes, and snippets.

😏
Feel free to ask for a refund.

QWp6t

😏
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
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
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 - http://jakiestfu.com/
* Released under the MIT Licence
* http://opensource.org/licenses/MIT
*
* Github: http://github.com/jakiestfu/Behave.js/
* Version: 1.5
*/
@guedressel
guedressel / font-awesome-mime-type-icons.php
Last active Apr 11, 2019
Font Awesome File Icons: Mapping MIME Types to correct icon classes
View font-awesome-mime-type-icons.php
<?php
/**
* Get font awesome file icon class for specific MIME Type
* @see https://gist.github.com/guedressel/0daa170c0fde65ce5551
*
*/
function font_awesome_file_icon_class( $mime_type ) {
// List of official MIME Types: http://www.iana.org/assignments/media-types/media-types.xhtml
@discordier
discordier / gist:ed4b9cba14652e7212f5
Created Dec 4, 2014
options for phpStorm @noinspection annotation
View gist:ed4b9cba14652e7212f5
javascript
ES6ValidationInspection
JSAccessibilityCheckInspection
JSBitwiseOperatorUsageInspection
JSCheckFunctionSignaturesInspection
JSClosureCompilerSyntaxInspection
JSCommentMatchesSignatureInspection
JSComparisonWithNaNInspection
JSConsecutiveCommasInArrayLiteralInspection
@robmoggach
robmoggach / webfaction_gitlab.md
Last active Oct 1, 2018
Webfaction GitLab Install
View webfaction_gitlab.md

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)

View README.md
@chrisguitarguy
chrisguitarguy / proper.php
Last active May 22, 2019
How to properly do a `save_post` callback
View proper.php
<?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.