Skip to content

Instantly share code, notes, and snippets.

<div class="media">
<a href="#" class="pull-left">
<img data-src="holder.js/64x64" class="media-object" alt="64x64" style="width: 64px; height: 64px;" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAACGElEQVR4nO2U0YqjQBBF5/8/paARpEFEEEEkCLIEkSBBwqyERkTqF+4+2JNk9jEhc1m2Hg5IosXxVCcfqor/mQ+2ABsLwBZgYwHYAmwsAFuAjQVgC7CxAGwBNhaALcDGArAF2FgAtgAbC8AWYGMB2AJsLABbgI0FYAuwsQAvD9lmtIWHcwKXeDTHCdu3ewLawiNNPbpp+fl57w2woM0EIgKXejjZr5vzXWw+FpD4eT2GH5737gDXfpfMOmyqWC8DDk2D4zmKrWf4KHsTXieU3sP7HP2s0DCg8B7el5h+PzGPGWAZmyjjkGUpkjTDob/cvh9KB5ECp9Phm/BYp/uWswp1nkBEkDbj0/N4Ac7NbRsuSW7X1XDFOrX79WmBfrbxKK/x2Rmlu29SkhrXl+aRA7iih6oiDBVEBEndo/XxmP7q0dUZRAS+ajFdt/3ZU3V7wa/f+CvzKAG+tuLKAaqKbTpE4QFN8rDhB8pTgGpA4x8+9wcsL80jBdBtin9KCaq2RZk6iAjy4yfWJSCEgLCs+IybrPoLNlVcunx/gTRHFl8s7y5Pz+MFUMUydUgeNpIUHcLfJyUe7WZcoNch3u/Qzfcti3iMyxPz2AFUFboGzPOM+fq60FvmvT3AP4wFYAuwsQBsATYWgC3AxgKwBdhYALYAGwvAFmBjAdgCbCwAW4CNBWALsLEAbAE2FoAtwMYCsAXYWAC2AJs/e6oQH1D4sBIAAAAASUVORK5CYII=">
</a>
<div class="media-body">
<h4 cla
@islandsofno
islandsofno / wpg-content-single.html
Last active December 22, 2015 20:59
wpg-content-single template using wpg-grid
<div class="underlay wpg-content-single">
<div class="wpg-grid-container">
<div class="underlay-knockout wpg-content-single-header">
<div class="wpg-grid-row">
<div class="wpg-grid-block wpg-grid-block-100 last">
<div class="wpg-content-single-header-liner">
<h1>Page Title</h1>
<div class="content-subtitle">
@islandsofno
islandsofno / gist:5504935
Last active December 16, 2015 22:09
Simple function to validate a dollar amount (probably from a text input) as a string
function isMoney(theAmount) {
// regex to validate the amount as a string
// valid strings include: $1, $1., $1.0, $1.00
var isMoney = theAmount.match(/^\$?\d+(\.(\d{1,2})?)?$/);
if (isMoney === null) {
return false;
} else {
@islandsofno
islandsofno / gist:4694106
Created February 1, 2013 20:59
limitChars -- A very simple jQuery plugin to limit the amount of characters in a form input
(function ($) {
"use strict";
if (!$.foo) {
$.foo = {}; // New Object
}
/*
@islandsofno
islandsofno / Stylesheet Info in Firebug
Created January 23, 2013 17:00
Paste this into your firebug console and you'll get back some nice details on your stylesheets
var
styleSheets = document.styleSheets,
totalStyleSheets = styleSheets.length;
for (var j = 0; j < totalStyleSheets; j++){
var
styleSheet = styleSheets[j],
rules = styleSheet.cssRules,
totalRulesInStylesheet = rules.length,
totalSelectorsInStylesheet = 0;
@islandsofno
islandsofno / index.php
Created December 11, 2012 16:02
ba5ic php/html page
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/Transitional.dtd">
<html lang="en">
<head>
<meta charset="utf-8">
<title>ba5ic</title>
<style>
body {padding: 60px;}
body {color:#333;font-family: Helvetica, Arial, sans-serif;font-size: 12px;font-style: normal;line-height: 1.4em;}
#bar {position:absolute;bottom:10px;right:10px;}