Skip to content

Instantly share code, notes, and snippets.

View akshayagarwal's full-sized avatar

Akshay Agarwal akshayagarwal

View GitHub Profile
@akshayagarwal
akshayagarwal / style.css
Created July 23, 2017 08:39
Bootstrap button customisation with pressed state and hover
.btn-primary {
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
border-radius: 3px;
background-color: #f57e17;
color: #ffffff;
border-color: #f57e17;
font-size: 20px;
padding: 8px 22px;
}
@akshayagarwal
akshayagarwal / FooterAtBottomUsingJquery.js
Last active August 29, 2015 14:17
Always position footer at bottom
(function($){
$(document).ready(function(){
if( $( window ).height() > $( 'body' ).height() ){
//Assuming the footer is represented by the <footer> HTML element
$( 'footer' ).css( 'margin-top' , $( window ).height() - $( 'body' ).height() );
}
})
})(jQuery);
@akshayagarwal
akshayagarwal / gist:e038113680d7a4c9f8c6
Created August 20, 2014 14:10
Get list of modified files between two branches
git diff --name-status master..new-branch | grep 'html'
@akshayagarwal
akshayagarwal / preventwordpresspluginupdates.php
Created February 28, 2014 01:48
Prevent a Wordpress Plugin from checking for updates
// Just add the following snippet in your plugin main file
// Code updated for Wordpress 3.8.1
add_filter( 'http_request_args', 'acs_prevent_update_check',10, 2 );
function acs_prevent_update_check( $r, $url ) {
if ( 0 === strpos( $url, 'https://api.wordpress.org/plugins/update-check/1.1/' ) ) {
$my_plugin = plugin_basename(__FILE__);
$plugins = json_decode($r['body']['plugins'], true);
if (array_key_exists($my_plugin, $plugins['plugins'])){
/* Flatten das boostrap */
.well, .navbar-inner, .popover, .btn, .tooltip, input, select, textarea, pre, .progress, .modal, .add-on, .alert, .table-bordered, .nav>.active>a, .dropdown-menu, .tooltip-inner, .badge, .label, .img-polaroid {
-moz-box-shadow: none !important;
-webkit-box-shadow: none !important;
box-shadow: none !important;
-webkit-border-radius: 0px !important;
-moz-border-radius: 0px !important;
border-radius: 0px !important;
border-collapse: collapse !important;
background-image: none !important;