Skip to content

Instantly share code, notes, and snippets.

View Mrshcom's full-sized avatar

Mohammad Reza Shariatzadeh Mrshcom

View GitHub Profile
@Mrshcom
Mrshcom / gist:3842287
Created October 5, 2012 20:47
Html5 Canvas Tutorials
@Mrshcom
Mrshcom / gist:3842356
Created October 5, 2012 20:56
CSS3 Animation Generator
@Mrshcom
Mrshcom / gist:3848859
Created October 7, 2012 16:35
Redirect all url to .php

Redirect all url (without type) to .php

(Add this code to .htaccess file)

    • => *.php
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f [OR]
    RewriteCond %{REQUEST_FILENAME} !-d
 RewriteRule ^([A-z0-9/_+-]+)$ /$1.php [L]
@Mrshcom
Mrshcom / gist:3861212
Created October 9, 2012 20:27
Add G+ button

For using g+ badges to your website you have to follow these:

at fist you must add this script to your page:

<script src="https://apis.google.com/js/plusone.js"></script>

for adding +1 button add below code: (note:don't forget change the href attribute to your own address)

@Mrshcom
Mrshcom / gist:3927410
Created October 21, 2012 16:20 — forked from AliMD/gist:3923810
How To Create an IE-Only Stylesheet
@Mrshcom
Mrshcom / gist:3992304
Created November 1, 2012 07:21 — forked from AliMD/gist:3865955
Create A Somple Product Catalog width Wordpress.

ali.md/pcwp

Step One: Create the custom post type

The following code goes into the functions.php file:

// Create A Somple Product Catalog width Wordpress. ali.md/pcwp
// Step One: Create the custom post type