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
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>
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
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
View Email.php
<?php
class Email extends BaseEmail {
protected $to = '';
protected $subject = ''
protected $message = '';
public function to($email)
{
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; }
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');