Skip to content

Instantly share code, notes, and snippets.

View JesseHerrick's full-sized avatar

Jesse Herrick JesseHerrick

View GitHub Profile
@JesseHerrick
JesseHerrick / fadein.css
Created March 7, 2013 03:24
A simple pure CSS fadein for anything: text, images, logos, etc.
.fadein {
opacity: 0.5;
transition: opacity .25s ease-in-out;
-moz-transition: opacity .25s ease-in-out;
-webkit-transition: opacity .25s ease-in-out;
}
.fadein:hover {
opacity: 1;
}
@JesseHerrick
JesseHerrick / gist:5069891
Last active December 14, 2015 10:09
Use a string to define then use a variable. No more arrays!!!
#include <iostream>
#include <string> //this is important in defining the string
using namespace std;
int main()
{
string myStringVariable
cout<< "Type your string: ";
<!DOCTYPE html>
<html>
<head>
<title>Title</title>
<meta charset="UTF-8">
<meta name="description" content="">
<meta name="author" content="">
<meta name="keywords" content="">
@JesseHerrick
JesseHerrick / gist:4702822
Created February 3, 2013 17:55
Force Download Example for www.jessegrant.net.
<a href="http://www.jessegrant.net/books/bro-code.pdf" download="The Bro Code">Download The Bro Code</a>
@JesseHerrick
JesseHerrick / gist:4696109
Created February 2, 2013 04:27
Favicon Code for herrickdev.org
<link rel="icon" type="image/x-icon" href="http://herrickdev.org/favicon.ico" />