Skip to content

Instantly share code, notes, and snippets.

View JesseHerrick's full-sized avatar

Jesse Herrick JesseHerrick

View GitHub Profile
@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" />
@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>
<!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: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: ";
@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;
}
document.write('.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 / glowingtext.css
Last active December 15, 2015 08:49
Make text have a 'glow' effect.
.glowingtext {
text-shadow: none;
-webkit-transition: .25s linear 0s;
-moz-transition: .25s linear 0s;
-o-transition: .25s linear 0s;
transition: .25s linear 0s;
}
.glowingtext:hover {
text-shadow: -1px 1px 8px #ffffff, 1px -1px 8px #ffffff;
}
@JesseHerrick
JesseHerrick / MWFix.php
Created April 21, 2013 16:21
A quick fix for MediaWiki cookies error.
session_save_path("tmp");
@JesseHerrick
JesseHerrick / AIRInstall
Last active December 17, 2015 04:08
Creating the installer for an Adobe AIR application.
// make key
adt –certificate -cn SelfSigned 1024-RSA sampleCert.pfx samplePassword
// make installer
adt -package -storetype pkcs12 -keystore sampleCert.pfx HelloWorld.air
HelloWorld-app.xml HelloWorld.html AIRAliases.js
// to include whole directory use this command
dir\
// with dir being the directory name
$ gem install hyde-ftp