Skip to content

Instantly share code, notes, and snippets.

Sridhar Katakam srikat

Block or report user

Report or block srikat

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
markjaquith / fix-twitter-https.php
Created Jan 21, 2014
Fix Twitter embeds in WordPress < 3.8.1
View fix-twitter-https.php
add_filter( 'oembed_providers', 'oembed_fix_twitter', 10, 1 );
function oembed_fix_twitter( $providers ) {
$providers[ '#https?://(www\.)?twitter\.com/.+?/status(es)?/.*#i' ] = array( '{format}', true );
return $providers;
GaryJones / functions.php
Last active May 27, 2017
Genesis: Stop archives from using first attached image as fallback when no featured image is set.
View functions.php
// Don't include the above.
add_filter( 'genesis_get_image_default_args', 'prefix_stop_auto_featured_image' );
* Stop Genesis archives from using first attached image as fallback when no featured image is set.
* @param array $args Default image arguments.
GaryJones /
Last active Jul 14, 2019
Custom Featured Post Widget plugin: Skeleton for amending the output of the Genesis Featured Post widget.
srobbin / gist:3799775
Created Sep 28, 2012
Random Backstretch image
View gist:3799775
// Create an array of images that you'd like to use
var images = [
, 'image2.jpg'
, 'image3.jpg'
// Get a random number between 0 and the number of images
var randomNumber = Math.floor( Math.random() * images.length );
nrrrdcore / inset_input.css
Created Aug 9, 2012
The Perfect Inset Input CSS
View inset_input.css
input {
height: 34px;
width: 100%;
border-radius: 3px;
border: 1px solid transparent;
border-top: none;
border-bottom: 1px solid #DDD;
box-shadow: inset 0 1px 2px rgba(0,0,0,.39), 0 -1px 1px #FFF, 0 1px 0 #FFF;
zxcvbnm4709 / gist:2656197
Created May 10, 2012
include jQuery in Chrome Console
View gist:2656197
var script = document.createElement("script");
script.setAttribute("src", "");
script.addEventListener('load', function() {
var script = document.createElement("script");
}, false);
You can’t perform that action at this time.