Skip to content

Instantly share code, notes, and snippets.

johnnyfreeman / index.css
Created Jan 31, 2017
Password Requirements Example
View index.css
body {
background-color: #7ac44d;
/* IE9, iOS 3.2+ */
background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAxIDEiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiPjxyYWRpYWxHcmFkaWVudCBpZD0idnNnZyIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIGN4PSIwJSIgY3k9IjEwMCUiIHI9IjE0MS40MjEzNTYyMzczMDk1JSI+PHN0b3Agc3RvcC1jb2xvcj0iI2YzZWYxNSIgc3RvcC1vcGFjaXR5PSIxIiBvZmZzZXQ9IjAiLz48c3RvcCBzdG9wLWNvbG9yPSIjMDA5ODg1IiBzdG9wLW9wYWNpdHk9IjEiIG9mZnNldD0iMSIvPjwvcmFkaWFsR3JhZGllbnQ+PHJlY3QgeD0iLTUwIiB5PSItNTAiIHdpZHRoPSIxMDEiIGhlaWdodD0iMTAxIiBmaWxsPSJ1cmwoI3ZzZ2cpIiAvPjwvc3ZnPg==);
/* Android 2.3- hack (needed for the actual radial gradient) */
background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAxIDEiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiPjxyYWRpYWxHcmFkaWVudCBpZD0idnNnZyIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIGN4PSIwJSI
johnnyfreeman / gist:10268109
Last active Aug 29, 2015
Email Signature for work
View gist:10268109
<table cellpadding="0" cellspacing="0" style="font-family:Helvetica, Arial, sans-serif;font-size:14px;font-weight:normal;color:#3b3d3b;text-align:left;line-height:20px;" >
<td style="font-size:40px;font-weight:bold;">
<img src="" alt="&lt;/" border="0" width="50">
<td style="padding-left:10px;">
<span style="font-weight: bold;">Johnny Freeman</span>, <span style="color: #999;">Software Developer</span><br>
<a href="" style="color:#00a19c;"></a> <span style="color:#999;">|</span> <a href="" style="color:#00a19c;"></a> <span style="color:#999;">|</span> <a href="tel:7722573612" style="color:#00a19c;">(772) 257-3612</a>
johnnyfreeman / grubfix
Last active Jan 1, 2016
Fix for this Grub issue ( Run as root.
View grubfix
# get correct UUID
NUUID=$(lsblk -no UUID /dev/sda1)
# get wrong UUID
OUUID=$(grep -om 1 '[0-9a-f]\{8\}-[0-9a-f]\{4\}-[0-9a-f]\{4\}-[0-9a-f]\{4\}-[0-9a-f]\{12\}' /boot/grub/grub.cfg)
# replace all wrong UUIDs with the correct UUID in the grub config file
sed -i "s/$OUUID/$NUUID/g" /boot/grub/grub.cfg
johnnyfreeman / gist_tag.rb
Created Sep 12, 2012 — forked from imathis/gist_tag.rb
A Liquid tag for Jekyll sites that allows embedding Gists and showing code for non-JavaScript enabled browsers and readers.
View gist_tag.rb
require 'cgi'
require 'digest/md5'
require 'net/https'
require 'uri'
module Jekyll
class GistTag < Liquid::Tag
def initialize(tag_name, text, token)
@text = text
johnnyfreeman / Email.php
Created Jul 27, 2012
Article: Method Chaining in PHP
View Email.php
class Email extends BaseEmail {
protected $to = '';
protected $subject = ''
protected $message = '';
public function to($email)
johnnyfreeman / css.css
Created Jul 3, 2012
Revolver.js Transition: None
View css.css
#my_slider {
width: 720px;
height: 300px;
overflow: hidden;
position: relative;
#my_slider .slide {
left: 0;
position: absolute;
View gist:1993438
/* */
.clearfix:before, .clearfix:after { content: ""; display: table; }
.clearfix:after { clear: both; }
.clearfix { zoom: 1; }
johnnyfreeman / placeholder.jquery.js
Created Jul 28, 2011
Placeholder - Just a little js to backup html5's placeholder attribute.
View placeholder.jquery.js
$.fn.placeHolder = function() {
// check for placeholder attribute support in current browser
var nativeSupport = "placeholder" in document.createElement("input");
var restorePlaceHolder = function() {
if (this.value == "") {