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:5368861
Last active December 16, 2015 03:19 — forked from jocubeit/gist:1713910
Run only the commands without the Number sign (#), its not a script. This is thing that should be read...
# Install libxml2 using Homebrew
# If you don't have Homebrew, follow the instructions at:
# https://github.com/mxcl/homebrew/wiki/Installation
# -------------------------------------------------------
brew install libxml2
# Install libxslt from source code
# If you don't have wget, follow the instructions at:
# http://www.mactricksandtips.com/2008/07/installing-wget-on-your-mac-for-terminal.html
# Or use Homebrew:
@AbhishekGhosh
AbhishekGhosh / gist:5688588
Created May 31, 2013 23:17
Example why we need HTML5 Shiv (Part 1)
<!DOCTYPE HTML>
<html>
<head> <style>
article {
font-size: 22px;
color: orange;
}
</style>
</head>
<body>
@AbhishekGhosh
AbhishekGhosh / gist:5688597
Created May 31, 2013 23:20
Example usage of HTML5Shiv
<!DOCTYPE HTML>
<html>
<title>this is the title
</title>
<head>
<!--[if lt IE 9]>
<script src="html5shiv.js"></script>
<![endif]-->
<style>
article {
apt-get -y install python-setuptools python-genshi python-genshi-doc mysql-client-5.5 mysql-server-5.5 python-mysqldb python-babel python-docutils enscript subversion git apache2 libapache2-mod-python mercurial python-dev python-pygments
<a href="https://twitter.com/AbhishekCTRL" class="twitter-follow-button" data-show-count="false" data-size="large">Follow @AbhishekCTRL</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
@AbhishekGhosh
AbhishekGhosh / gist:5713705
Last active December 18, 2015 02:48
API example
class RestRequest
{
protected $url;
protected $verb;
protected $requestBody;
protected $requestLength;
protected $username;
protected $password;
protected $acceptType;
<div id="hcard-Abhishek-Ghosh" class="vcard">
<span class="url fn" href="http://thecustomizewindows.com/author/Abhishek/">Abhishek Ghosh</a></span>
(<span class="n">
<span class="honorific-prefix">Dr.</span>
<span class="given-name">Abhishek</span>
<abbr class="additional-name">Dr.Abhishek</abbr>
<span class="family-name">Ghosh</span>
<span class="honorific-suffix">M.S.</span></span>)
<div class="org">The Customize Windows</div>
<a class="email" href="mailto:dr.abhishek_ghosh@hotmail.com">dr.abhishek_ghosh@hotmail.com</a>
@AbhishekGhosh
AbhishekGhosh / relatedposts.php
Created June 10, 2013 22:19
Related post schema
@AbhishekGhosh
AbhishekGhosh / gist:5787301
Created June 15, 2013 07:43
YouTube normal iframe embedding
<iframe width="560" height="315" src="http://www.youtube.com/embed/az8U7wOrCmc" frameborder="0" allowfullscreen></iframe>
@AbhishekGhosh
AbhishekGhosh / gist:5787328
Last active December 18, 2015 13:08
Embed YouTube Audio only
<div style="position:relative;width:267px;height:25px;overflow:hidden;">
<div style="position:absolute;top:-276px;left:-5px">
<iframe width="300" height="300"
src="https://www.youtube.com/embed/az8U7wOrCmc?rel=0">
</iframe>
</div>
</div>