Skip to content

Instantly share code, notes, and snippets.

😊
Happy

Abhishek Ghosh AbhishekGhosh

😊
Happy
View GitHub Profile
@AbhishekGhosh
AbhishekGhosh / gist:5789033
Last active Dec 18, 2015
Genesis Left Header
View gist:5789033
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' );
View Rounded Avatar With CSS 3 Transition
.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 Jun 21, 2013
Responsive web design Apple Touch Icons
View gist:5828854
<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" />
View open-graph-protocol.php
// 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 Jun 24, 2013
All in one command for installing components for WordPress in Debian 7.
View how-to-install-wordpress-commands.sh
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 Jun 24, 2013
Fix phpMyAdmin was not found on this server.
View phpMyAdmin was not found on this server.sh
sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf
/etc/init.d/apache2 reload
View php.sh
# Reload / Load Mod Rewrite
a2enmod rewrite
service apache2 restart
# Editing php.ini
nano /etc/php5/apache2/php.ini
# We Edited These
View wordpress-permission.sh
# 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
View bootstrap-customize.html
<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 Jun 26, 2013
Google Street View http request
View google-street-view.html
http://maps.googleapis.com/maps/api/streetview?size=400x400&location=40.720032,%20-73.988354&sensor=false&key={API_KEY}
You can’t perform that action at this time.