Skip to content

Instantly share code, notes, and snippets.

Johnny Freeman johnnyfreeman

Block or report user

Report or block johnnyfreeman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@johnnyfreeman
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
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;" >
<tr>
<td style="font-size:40px;font-weight:bold;">
<img src="http://www.gravatar.com/avatar/345b3bc04790827aa3e0a20e873581ce.png" alt="&lt;/" border="0" width="50">
</td>
<td style="padding-left:10px;">
<span style="font-weight: bold;">Johnny Freeman</span>, <span style="color: #999;">Software Developer</span><br>
<a href="http://veroortho.com" style="color:#00a19c;">veroortho.com</a> <span style="color:#999;">|</span> <a href="mailto:jfreeman@veroortho.com" style="color:#00a19c;">jfreeman@veroortho.com</a> <span style="color:#999;">|</span> <a href="tel:7722573612" style="color:#00a19c;">(772) 257-3612</a>
</p>
</td>
@johnnyfreeman
johnnyfreeman / grubfix
Last active Jan 1, 2016
Fix for this Grub issue (https://bugs.archlinux.org/task/37904). Run as root.
View grubfix
#!/bin/bash
# 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
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)
super
@text = text
@johnnyfreeman
johnnyfreeman / Email.php
Created Jul 27, 2012
Article: Method Chaining in PHP
View Email.php
<?php
class Email extends BaseEmail {
protected $to = '';
protected $subject = ''
protected $message = '';
public function to($email)
{
@johnnyfreeman
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
/* http://nicolasgallagher.com/micro-clearfix-hack/ */
.clearfix:before, .clearfix:after { content: ""; display: table; }
.clearfix:after { clear: both; }
.clearfix { zoom: 1; }
@johnnyfreeman
johnnyfreeman / placeholder.jquery.js
Created Jul 28, 2011
Placeholder - Just a little js to backup html5's placeholder attribute.
View placeholder.jquery.js
(function($){
$.fn.placeHolder = function() {
// check for placeholder attribute support in current browser
var nativeSupport = "placeholder" in document.createElement("input");
var restorePlaceHolder = function() {
if (this.value == "") {
$(this).addClass('inactive');
You can’t perform that action at this time.