Skip to content

Instantly share code, notes, and snippets.

View ihorvorotnov's full-sized avatar
🇺🇦
Working remotely since 1999

Ihor Vorotnov ihorvorotnov

🇺🇦
Working remotely since 1999
View GitHub Profile
@mboynes
mboynes / functions.php
Created February 28, 2014 04:00
WPSE 135707
<?php
function add_video_post_type() {
$labels = array(
'name' => _x( 'Videos', 'Post Type General Name', 'kibble' ),
'singular_name' => _x( 'Video', 'Post Type Singular Name', 'kibble' ),
'menu_name' => __( 'Videos', 'kibble' ),
'parent_item_colon' => __( 'Parent Item:', 'kibble' ),
'all_items' => __( 'All Items', 'kibble' ),
@timersys
timersys / readme.txt
Last active August 29, 2015 13:57
Wordpress Social Invitations Readme file
=== Wordpress Social Invitations ===
Author: Damian Logghe
Website: http://www.timersys.com
Contributors: Timersys
Tags: Social Invitations, twitter, facebook, linkedin, hotmail, yahoo
License: http://codecanyon.net/licenses/regular
Stable Tag: 2.4.2
Tested on: 4.0.1
== Description ==

Commit Guidelines

Commit messages are one of the most important parts of using version control. Badly written messages make it much harder to see at a glance what's changed in the project.

Commit Content

Keep your commits as small and atomic as possible. The best way to consider this is to think about reverting your commit. That is, if something is wrong in a commit, what are the logically separate parts that could be undone?

@mboynes
mboynes / user_recon.php
Last active August 29, 2015 14:01
Check a file of email addresses against the WP User database to see if they're in use or not. This is not part of a command; it can be added to any.
<?php
/**
* Check a file of email addresses against the user database to see if those
* email addresses are currently in use.
*
* ## OPTIONS
*
* <file>
* : The file of users to import.
@danielbachhuber
danielbachhuber / gist:c1554c1777dbb0460bfb
Created May 12, 2014 21:58
Serve a subset of terms at /term-slug instead of /tag/term-slug
<?php
/**
* 'special-term' is a unique butterfly
*/
function dbx_get_special_terms() {
return array( 'special-term' );
}
/**
@rmccue
rmccue / gist:61b683b61011b96149bb
Created June 11, 2014 07:52
Experiments in skipping the main WP query
<?php
add_action( 'setup_theme', function () {
global $wp;
class RM_FakeWP extends WP {
public $skip_query = false;
function main($query_args = '') {
$this->init();

NOTE I'm trying to find the most optimal fav/touch icon setup for my use-cases. Nothing new here. Read Mathias Bynens' articles on re-shortcut-icon and touch icons, a FAQ or a Cheat Sheet for all the details.

I'd like to hear how you approach this: @valuedstandards or comment on this gist.

The issue

You have to include a boatload of link elements pointing to many different images to provide (mobile) devices with a 'favicon' or 'touch icon':

![Touch Icon Links](https://o.twimg.com/2/proxy.jpg?t=HBj6AWh0dHBzOi8vcGhvdG9zLTYuZHJvcGJveC5jb20vdC8yL0FBRGFGY1VRN1dfSExnT3cwR1VhUmtaUWRFcWhxSDVGRjNMdXFfbHRJWG1GNFEvMTIvMjI3OTE2L3BuZy8xMDI0eDc2OC8yL18vMC80L1NjcmVlbnNob3QlMjAyMDE1LTA0LTE0JTIwMTYuNTYuMjYucG5nL0NNejBEU0FCSUFJZ0F5Z0JLQUkvNGR1eDZnMzZmYnlzYWI3

@kzima
kzima / README.md
Last active August 29, 2015 14:21 — forked from hofmannsven/README.md
Mysql command cheatsheet
anonymous
anonymous / my.css
Created May 24, 2015 23:38
CSS Gradient Animation
background: linear-gradient(334deg, #36967d, #36967d);
background-size: 400% 400%;
-webkit-animation: AnimationName 22s ease infinite;
-moz-animation: AnimationName 22s ease infinite;
-o-animation: AnimationName 22s ease infinite;
animation: AnimationName 22s ease infinite;
@-webkit-keyframes AnimationName {
    0%{background-position:58% 0%}
    50%{background-position:43% 100%}
    100%{background-position:58% 0%}
anonymous
anonymous / Pure CSS Slide Down Toggle.markdown
Created May 24, 2015 23:37
Pure CSS Slide Down Toggle