Skip to content

Instantly share code, notes, and snippets.

View anunay's full-sized avatar
🏠
Working from home

Anunay Dahal anunay

🏠
Working from home
View GitHub Profile
@jopfre
jopfre / gist:ffd0153015a791ee25dc14e6cec825f6
Created June 23, 2016 12:52
Add Timestamp to WordPress Child Theme Stylesheet to invalidate cache
function add_timestamp_to_childtheme_stylesheet() {
wp_dequeue_style( 'style' );
wp_deregister_style( 'style' );
wp_enqueue_style('style', get_stylesheet_uri().'?'.filemtime(get_stylesheet_directory().'/style.css'), array(), null);
}
add_action( 'wp_print_styles', 'add_timestamp_to_childtheme_stylesheet' );
@anunay
anunay / learning-stuffs.txt
Last active December 31, 2015 17:18
Things on my learning list:
elasticsearch - http://www.elasticsearch.org/
riako - http://docs.basho.com/
redis - http://redis.io/
graylog2 - http://graylog2.org/
rabbitMQ - http://www.rabbitmq.com/
http://requestb.in/
angularjs http://www.angularjs.org
@mkdizajn
mkdizajn / bootstrap 16 and 24 grid config values for configurator
Created April 9, 2013 17:05
bootstrap 16 and 24 grid config values for configurator
This method for last version of Bootstrap - Version 2.3.1
Click this link to customize bootstrap: http://twitter.github.com/bootstrap/customize.html
You will find such as this list and change the number as you like.
16 Grid system with Gutter
@gridColumns: 16
@gridColumnWidth: 45px
@gridGutterWidth: 15px
@franz-josef-kaiser
franz-josef-kaiser / example_post_status.php
Created June 14, 2012 13:07
Add a custom post status for WP (custom) post types
<?php
// No, Thanks. Direct file access forbidden.
! defined( 'ABSPATH' ) AND exit;
// INIT
add_action( 'after_setup_theme', array( 'unavailable_post_status', 'init' ) );
class unavailable_post_status extends wp_custom_post_status
{
/**