Skip to content

Instantly share code, notes, and snippets.

View AbhishekGhosh's full-sized avatar
❤️
Happy

Abhishek Ghosh AbhishekGhosh

❤️
Happy
View GitHub Profile
@AbhishekGhosh
AbhishekGhosh / gist:5789033
Last active December 18, 2015 13:19
Genesis Left Header
genesis_register_sidebar( array(
'id' => 'header-left',
'name' => __( 'Header Left', 'genesis' ),
'description' => __( 'Header left widget area', 'genesis' ),
) );
add_action( 'genesis_header', 'wpsites_left_header_widget', 11 );
function wpsites_left_header_widget() {
if (is_active_sidebar( 'header-left' ) ) {
echo '<div class="header-left">';
dynamic_sidebar( 'header-left' );
.avatar:hover{
border-radius: 50% 50% 50% 50%;
transform: rotate(0deg) scale(0.67) skew(1deg) translate(0px);
-webkit-transform: rotate(0deg) scale(0.67) skew(1deg) translate(0px);
-moz-transform: rotate(0deg) scale(0.67) skew(1deg) translate(0px);
-o-transform: rotate(0deg) scale(0.67) skew(1deg) translate(0px);
-ms-transform: rotate(0deg) scale(0.67) skew(1deg) translate(0px);
}
// How To Make Rounded Avatars http://wp.me/p1lTu0-9VQ
.avatar {
@AbhishekGhosh
AbhishekGhosh / gist:5828854
Created June 21, 2013 04:39
Responsive web design Apple Touch Icons
<link rel="apple-touch-icon" href="http://thecustomizewindows.com/apple-touch-icon-precomposed.png" />
<link rel="apple-touch-icon-precomposed" href="http://thecustomizewindows.com/apple-touch-icon.png" />
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="http://thecustomizewindows.com/apple-touch-icon-72x72-precomposed.png" />
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="http://thecustomizewindows.com/apple-touch-icon-114x114-precomposed.png" />
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="http://thecustomizewindows.com/apple-touch-icon-144x144-precomposed.png" />
// No images were available
if ( empty( $wpfbogp_images ) && ! $fallback ) {
echo '<meta property="og:image" content="http://thecustomizewindows.com/TheCustomizeWindows.png" />' . "\n";
}
// do locale // make lower case cause facebook freaks out and shits parser mismatched metadata warning
echo '<meta property="og:locale" content="' . strtolower( esc_attr( get_locale() ) ) . '" />' . "\n";
echo "<!-- // end wpfbogp -->\n";
}
@AbhishekGhosh
AbhishekGhosh / how-to-install-wordpress-commands.sh
Created June 24, 2013 07:03
All in one command for installing components for WordPress in Debian 7.
apt-get install apache2 libapache2-mod-php5 php5 php5-curl php5-intl php5-mcrypt php5-mysql php5-sqlite php5-xmlrpc mysql-server mysql-client
@AbhishekGhosh
AbhishekGhosh / phpMyAdmin was not found on this server.sh
Created June 24, 2013 07:12
Fix phpMyAdmin was not found on this server.
sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf
/etc/init.d/apache2 reload
# Reload / Load Mod Rewrite
a2enmod rewrite
service apache2 restart
# Editing php.ini
nano /etc/php5/apache2/php.ini
# We Edited These
@AbhishekGhosh
AbhishekGhosh / wordpress-permission.sh
Created June 24, 2013 07:22
WordPress permission
# Downloading WordPress and un-tar it
cd /var/www/
wget --content-disposition http://wordpress.org/latest.tar.gz
# Or simply
wget http://wordpress.org/latest.tar.gz
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="#">Project name</a>
<div class="nav-collapse collapse">
@AbhishekGhosh
AbhishekGhosh / google-street-view.html
Created June 26, 2013 08:40
Google Street View http request
http://maps.googleapis.com/maps/api/streetview?size=400x400&location=40.720032,%20-73.988354&sensor=false&key={API_KEY}