Skip to content

Instantly share code, notes, and snippets.

View mintindeed's full-sized avatar

Gabriel Koen mintindeed

View GitHub Profile
@cfg
cfg / .bashrc
Last active December 14, 2015 05:59
My cygwin .bashrc
# https://github.com/git/git/blob/master/contrib/completion/git-prompt.sh
source ~/git-prompt.sh
# https://github.com/git/git/blob/master/contrib/completion/git-completion.bash
source ~/bash_completion.d/git-completion.bash
# https://github.com/bobthecow/git-flow-completion
source ~/bash_completion.d/git-flow-completion.bash
alias ll='ls -lah'
@kadamwhite
kadamwhite / main.js
Created December 13, 2012 22:20
A basic JW Player plugin to display a text banner overlay at the top of the video player instance
// Pass the plugin reference and configuration parameter ('text') to the embed script
jwplayer('id-of-container').setup({
file: '/path/to/my/video.mp4',
plugins: {
'/path/to/overlay.js': {
text: 'Text that you want to go within the overlayed banner'
}
}
});
@mjangda
mjangda / parent-child-css.php
Last active October 6, 2015 10:17
Properly queueing parent and child style.css, props Viper007Bond
<?php
add_action( 'wp_enqueue_scripts', function() {
wp_register_style( 'parent-theme', get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-theme', get_stylesheet_uri(), array( 'parent-theme' ) );
} );
@Rarst
Rarst / deprecated.md
Last active February 21, 2023 11:21
WordPress coding standards configuration for PhpStorm

Now Native

PhpStorm now bundles WordPress coding style natively, starting from version 8.

  1. Go to Project Settings > Code Style > PHP.
  2. Select Set From... (top right of window) > Predefined Style > WordPress.

No longer need to muck with this import! :)

@mjangda
mjangda / wpcom-open-graph.php
Created September 5, 2011 22:30
Add Open Graph tags to your WordPress site
<?php
/**
* Open Graph Tags
*
* Add Open Graph tags so that Facebook (and any other service that supports them)
* can crawl the site better and we provide a better sharing experience.
*
* @link http://ogp.me/
* @link http://developers.facebook.com/docs/opengraph/
*/
@chrisguitarguy
chrisguitarguy / rewrite-endpoint.php
Created September 3, 2011 22:16
Adds a custom rewrite endpoint to WordPress for displaying galleries in the place of content.
<?php
/*
Plugin Name: Gallery Rewrite (for wpse27638)
Plugin URI: http://pmg.co
Description: Builds cutom rewrites to display a gallery or not.
Version: 1
Author: Christopher Davis
Author URI: http://pmg.co/people/chris
License: creative commons/GPL2
*/