Skip to content

Instantly share code, notes, and snippets.

tabby = window.location.hash;
tabby = '#tab-' + tabby.slice(1);
$(tabby).addClass('selected');
$infoRequest = 'http://www.bosshardtrealty.com/requestinfo.php?searchtype=commercialforsale&m='
$infoRequest .= $listinginfo['ListingID']
$infoRequest .= '&i='
$infoRequest .= $listinginfo['AgentID']
$infoRequest .= '&c='
$infoRequest .= $listinginfo['City']
$infoRequest .= '&a='
$infoRequest .= $listinginfo['Address']
$infoRequest .= '&p='
$infoRequest .= $listinginfo['ListPrice']
@gotoplanb
gotoplanb / gist:2396274
Created April 16, 2012 03:55 — forked from anonymous/gist:2396251
Code with Me - Sunday 8pm PT
//5.4
var days = [Monday, Tuesday, Wednesday];
days[0] = "Monday";
days[1] = "Tuesday";
days[2] = "Wednesday";
<li>
<span class="associate-name"><a href="http://www.bosshardtrealty.com/associates.php?searchtype=detail&id=38">Michael Ryals</a></span>
<span class="associate-email"><a href="mailto:[email protected]">[email protected]</a></span>
<span class="associate-phone">(352) 538-0567</span>
<span class="associate-website"><a href="http://www.teamryals.com">http://www.teamryals.com</a></span>
</li>
<li>
<span class="associate-name"><a href="{{ bio url on current site }}">{{ name }}</a></span>
<span class="associate-email"><a href="{{ email }}">{{ email }}</a></span>
<div class="associate">
<img src="http://www.bosshardtrealty.com/agentphotos/Michael%20Ryals.jpg" /
<span class="associate-name"><a href="http://www.bosshardtrealty.com/associates.php?searchtype=detail&id=38">Michael Ryals</a></span>
<span class="associate-email"><a href="mailto:[email protected]">[email protected]</a></span>
<span class="associate-phone">(352) 538-0567</span>
<span class="associate-website"><a href="http://www.teamryals.com">http://www.teamryals.com</a></span>
</div>
<form action="http://smartmediacreative.us2.list-manage.com/subscribe/post?u=d8c8b7e9bf7a3006a22ee005e&amp;id=119617532f" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank">
<label for="mce-EMAIL">Subscribe to our mailing list</label>
<input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="email address" required>
<div class="clear"><input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button"></div>
</form>
$('a[href^="http"]').addClass('external');
$('a[href*="66.33.210.85"]').removeClass('external');
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-34365225-1']);
_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);
@gotoplanb
gotoplanb / gist:3743783
Created September 18, 2012 15:33
responsive embeds
<!-- Wrap with this div and class for 16x9 iframes/embeds. Remove width/height. -->
<div class="embed-container">
<iframe src="http://www.youtube.com/embed/sWnfGlXhsQg?modestbranding=1" frameborder="0" allowfullscreen></iframe>
</div>
<!-- For 4x3 iframes/embeds, be sure to add the additional class -->
<div class="embed-container fourbythree">
<iframe src="http://www.slideshare.net/slideshow/embed_code/13488028" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" allowfullscreen> </iframe>
</div>
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#Options -Indexes
#ErrorDocument 403 default
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /news/