Skip to content

Instantly share code, notes, and snippets.

View frankstallone's full-sized avatar

Frank Stallone frankstallone

View GitHub Profile
@frankstallone
frankstallone / gist:9398022
Created March 6, 2014 19:53
.htaccess | Send semalt.com to a 403 Forbidden Page
RewriteCond %{HTTP_REFERER} semalt\.com [NC]
RewriteRule ^ - [F,L]
@frankstallone
frankstallone / progressBar.js
Created January 16, 2014 18:34
Generic function for a progress bar. Made with Zurb Foundation in mind.
function progressBar(v) {
'use strict';
var value = parseInt(v);
var currentBar = parseInt($('.meter')[0].style.width.replace(/[^\d]/g, ''));
var newBar = value + currentBar;
if (value + currentBar > 100) {
$('.meter').css('width', '100%');
} else if (value + currentBar < 0) {
$('.meter').css('width', '0%');
@frankstallone
frankstallone / Testimonials
Created November 20, 2013 20:26
HTML5 Blockquote Template for Testimonials including the correct quote character entities, footer and cite tags for proper citation.
<blockquote>
<p>&ldquo;The best client!&rdquo;</p>
<footer>
&mdash; <cite>Anonymous</cite>
</footer>
</blockquote>
@frankstallone
frankstallone / ln-html-tag
Created August 30, 2013 12:43
Modification of Paul Irish's HTML tag with IE conditionals and .no-js for Modernizr for LexisNexis Martindale-Hubbell Web Visibility Solution Products
<!--[if lt IE 7]> <html class="no-js lt-ie10 lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie10 lt-ie9 lt-ie8 ie7" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie10 lt-ie9 ie8" lang="en"> <![endif]-->
<!--[if IE 9 ]> <html class="no-js lt-ie10 ie9" lang="en"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html class="no-js" lang="en"> <!--<![endif]-->