Skip to content

Instantly share code, notes, and snippets.

View AbhishekGhosh's full-sized avatar
❤️
Happy

Abhishek Ghosh AbhishekGhosh

❤️
Happy
View GitHub Profile
twittercallback2({"errors":[{"message":"Sorry, that page does not exist","code":34}]});
<!-- Header Response -->
HTTP 404 Not Found
Content-Encoding: gzip
x-runtime: 0.01169
Server: tfe
Cache-Control: no-cache, no-store, must-revalidate, pre-check=0, post-check=0
require 'tldlib/tmhOAuth.php';
require 'tldlib/tmhUtilities.php';
// include user keys
require 'tldlib/keys/tweetledee_keys.php';
// include Geoff Smith's utility functions
require 'tldlib/tldUtilities.php';
// create the OAuth object
if(get_option('smcipwp_showcommcount')=='on'){
$showcommcount = '<meta itemprop="interactionCount" content="UserComments:'.esc_attr($thisipwp_post->comment_count).'" />';
}
if($ipwpdatemodified=='on'){
$ipwp_datemodified= '<meta itemprop="dateModified" content="'.esc_attr(apply_filters('itempropwp_article_post_modified', $thisipwp_post->post_modified)).'" />';
}
$smcipwp_author_link = get_option('smcipwp_author_link');
if($smcipwp_author_link==''){
$smcipwp_author_link = get_author_posts_url(apply_filters('itempropwp_article_post_author', $thisipwp_post->post_author));
<!-- this is the default HTML5 Part -->
<div class="g-person" data-href="https://plus.google.com/{profileId}"></div>
<!-- Example changes -->
<div class="g-person" data-href="https://plus.google.com/{profileId}" layout="portrait" showcoverphoto="false" showtagline="false" width="300"></div>
<!-- This is Javascript Part -->
@AbhishekGhosh
AbhishekGhosh / LinkedIn-API.html
Created July 9, 2013 17:13
LinkedIn API call
https://www.linkedin.com/uas/oauth2/authorization?response_type=code&client_id=YOUR_API_KEY&scope=SCOPE&state=STATE&redirect_uri=YOUR_REDIRECT_URI
@AbhishekGhosh
AbhishekGhosh / text-diagram.html
Last active December 19, 2015 14:59
Text to Diagram
<script src="https://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.0/raphael-min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.4/underscore-min.js"></script>
<script src="shttps://raw.github.com/bramp/js-sequence-diagrams/master/sequence-diagram-min.js"></script>
and now you have two options. You can manually parse the text:
<div id="diagram"></div>
<script>
var diagram = Diagram.parse("A->B: Message");
diagram.drawSVG("diagram", {theme: 'hand'});
</script>
<!---Please Use Your Own Source for the URL--->
@AbhishekGhosh
AbhishekGhosh / Asynchronous-AdSense
Created July 12, 2013 23:21
AdSense Asynchronous
<script async src="http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle"
style="display:inline-block;width:336px;height:280px"
data-ad-client="ca-pub-12345678900987654321"
data-ad-slot="098765432"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<script language=javascript>
if(screen.Width>800)
{
document.write("<script src='big.js' language=javascript><\/script>");
}
else
{
document.write("<script src='small.js' language=javascript><\/script>");
}
</script>
@AbhishekGhosh
AbhishekGhosh / IE-conditional-css.html
Created July 17, 2013 05:44
IE 7 and lower conditional css
<!--[if lt IE 8]>
<link rel="stylesheet" type="text/css" media="screen" href="ie-styleheet.css" />
<!--<![endif]-->
.site-element {
background-image: images/this.png;
clear: both;
padding-top: 40px;
padding-top: 4rem;
}