Skip to content

Instantly share code, notes, and snippets.

@abmac
abmac / Folded ribbon css
Last active December 16, 2015 06:10
Folded Ribbon CSS.
html {
background: url('http://i49.tinypic.com/rszmg1.png');
}
body {
margin: 0;
padding: 100px 0 0 0;
}
.ribbon {
@abmac
abmac / Folded ribbon HTML
Created April 15, 2013 17:36
Folded ribbon HTML.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>CSS3 folded ribbon effect.</title>
<link href='http://fonts.googleapis.com/css?family=Montez' rel='stylesheet' type='text/css'>
.twitter-follow-button
{
margin-left:25px;
margin-bottom:100px;
}
.shareicons
{
display:inline;
padding-left:22px;
}
@abmac
abmac / gist:5293928
Last active December 15, 2015 17:09
Code for Social Sharing Buttons
<div class='shareicons'>
<b:if cond='data:post.isFirstPost'>
<script>(function(d){
var js, id = &#39;facebook-jssdk&#39;; if (d.getElementById(id)) {return;}
js = d.createElement(&#39;script&#39;); js.id = id; js.async = true;
js.src = &quot;//connect.facebook.net/en_US/all.js#xfbml=1&quot;;
d.getElementsByTagName(&#39;head&#39;)[0].appendChild(js);
}(document));</script>
</b:if>
<div class='fb-like' data-layout='box_count' data-send='false' data-show-faces='false' data-width='450'/>
@abmac
abmac / gist:4095211
Created November 17, 2012 11:49
Description and keyword meta tags.
<meta content='Title of your blog' name='title'/>
<meta content='Description of your blog' name='description'/>
<meta content='Keywords related to your blog' name='keywords'/>
<meta content='Author of blog' name='author'/>
<meta content='Owner of blog' name='owner'/>
<meta content='(c) 2012' name='copyright'/>
@abmac
abmac / gist:4071542
Created November 14, 2012 11:04
index only homepage and post
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<meta content='index,follow,noarchive,noodp' name='robots'/>
</b:if>
<b:if cond='data:blog.pageType == &quot;index&quot;'>
<b:if cond='data:blog.url == data:blog.homepageUrl'>
<meta content='index,follow,noarchive,noodp' name='robots'/>
<b:else/>
<meta content='noindex,follow,noarchive,noodp' name='robots'/>
</b:if>
</b:if>
@abmac
abmac / gist:4071532
Created November 14, 2012 11:01
index only post
<:if cond='data:blog.pageType != &quot;item&quot;'>
<meta content='noindex,follow,noarchive,noodp' name='robots'/>
<b:else/>
<meta content='index,follow,noarchive,noodp' name='robots'/>
</b:if>
@abmac
abmac / gist:4071333
Created November 14, 2012 10:08
.gov Baclinks
http://childstats.gov/disclaim.asp?URL=http://yourwebsitename&cache=yes
http://democrats.assembly.ca.gov/members/scripts/redirect.asp?url=http://yourwebsitename&cache=yes
http://export.gov/wcm/fragments/fl_eg_outsidelinks/redirect.asp?URL=http://yourwebsitename&cache=yes
http://www.fairfaxcounty.gov/offsite/?pg=http://yourwebsitename
http://transition.fcc.gov/fcc-bin/bye?http://yourwebsitename
http://home.nps.gov/applications/redirect/?sUrl=http://yourwebsitename
http://nws.noaa.gov/cgi-bin/nwsexit.pl?url=http://yourwebsitename&cache=yes
http://nsf.gov/cgi-bin/good-bye?http://yourwebsitename
http://www.nps.gov/applications/redirect/?sUrl=http://www.nps.gov/cgi-bin/intercept?http://yourwebsitename
http://roc.noaa.gov/scripts/exit/osfexit.pl?url=http://yourwebsitename&cache=yes