This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
var _gaq = _gaq || []; | |
_gaq.push(['_setAccount', 'UA-XXXXXXX-X']); | |
_gaq.push(['_trackPageview']); | |
(function() { | |
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; | |
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | |
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); | |
})(); | |
setTimeout(function(){_gaq.push(['_trackEvent', 'timeOnSite', '60seconds', window.location.href])}, 60000); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Do NOT include the opening php tag above. Copy the code shown below. | |
function unregister_tags() { | |
unregister_taxonomy_for_object_type( 'post_tag', 'post' ); | |
} | |
add_action( 'init', 'unregister_tags' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
User-agent: * | |
Disallow: /go/ | |
Disallow: /recommended/ | |
Disallow: /cgi-bin/ | |
Disallow: /wp-admin/ | |
Disallow: /comments/feed/ | |
Disallow: /trackback/ | |
Disallow: /xmlrpc.php | |
sitemap: /sitemap_index.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{HTTP_HOST} ^www\. [NC] | |
RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1 [R=301,L] | |
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{HTTP_HOST} !^www\. [NC] | |
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] | |
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Create a private WordPress page with permalink as links. | |
* Upload the code with the file name as page-links.php in the active themes directory. | |
* Upload simple_html_dom file from here (https://sourceforge.net/projects/simplehtmldom/files/simplehtmldom/1.5/) | |
* to the same directory | |
* All done. | |
* Now logged in admin, visit yoursite.com/links and you will see a list of all external links from your WordPress blog. | |
* Whitelist the links and domains in the array $_allowed_links and $_allowed_domain respectively to | |
* reduce the number of links shown in the report. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery( document ).ready(function() { | |
console.log( "ready!" ); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
int a; | |
a=10; | |
cout<<a; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> //CPP input output stream header file | |
using namespace std; //always end your line by a semicolon(;) | |
int main(){ //main() it’s here where compiler starts running program from | |
cout<<”hello world”; //cout is standard output for cpp | |
return 1; | |
}// Hurray after this small code you can call yourself a coder :p |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ga('create', 'UA-XXXXXXX-XX', 'auto'); | |
ga('set', 'anonymizeIp', true); // Should be called before the ga('send', 'pageview'); | |
ga('send', 'pageview'); |