Skip to content

Instantly share code, notes, and snippets.

View kavyagokul's full-sized avatar

Kav kavyagokul

  • Automattic
  • Pune, IN
View GitHub Profile
@thefuxia
thefuxia / t5_add_thickbox_support.php
Created March 27, 2012 12:40
Plugin T5 Add Thickbox Support
<?php # -*- coding: utf-8 -*-
/**
* Plugin Name: T5 Add Thickbox Support
* Plugin URI: http://toscho.de/?p=1997
* Description: Enables the Thickbox script for the theme.
* Version: 2012.08.12
* Author: Thomas Scholz <info@toscho.de>
* Author URI: http://toscho.de
* License: MIT
* License URI: http://www.opensource.org/licenses/mit-license.php
#!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
import sys
from gi.repository import Gtk, Gdk, GdkPixbuf
from gi.repository import Granite
def show_about(sender = None):
about = Granite.WidgetsAboutDialog.new()
@colintoh
colintoh / douchebag-vertical-align.css
Created October 27, 2014 07:08
douchebag way of vertical alignment
.element {
position: relative;
top: 50%;
transform: translateY(-50%);
}
@codelion7
codelion7 / mycred-hook-learndash
Created November 24, 2014 13:10
myCRED Custom Hook: LearnDash
/**
* Register Custom myCRED Hook
* @since 1.0
* @version 1.0
*/
add_filter( 'mycred_setup_hooks', 'Learndash_myCRED_Hook' );
function Learndash_myCRED_Hook( $installed ) {
$installed['hook_learndash'] = array(
'title' => __( 'LearnDash', 'mycred' ),