Skip to content

Instantly share code, notes, and snippets.

View calebgrove's full-sized avatar

Caleb Grove calebgrove

View GitHub Profile
@calebgrove
calebgrove / dabblet.css
Created November 19, 2012 23:19
CSS ID Wildcard
[id^='button'] {
width: 250px !important;
height: 50px !important;
margin: 10px !important;
border-radius: 8px !important;
background-color: #3F3F3F !important;
}
@calebgrove
calebgrove / dabblet.css
Created November 20, 2012 00:54
Untitled
[id^='button'] {
width: 250px !important;
height: 50px !important;
margin: 10px !important;
border-radius: 8px !important;
background-color: #3F3F3F !important;
@calebgrove
calebgrove / .htaccess
Last active December 22, 2015 04:28
Cache Expiration
# BEGIN EXPIRATION
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
@calebgrove
calebgrove / helloworld.html
Last active September 23, 2024 16:27
"Hello World" HTML/CSS. The first file is the uncommented version to let you "see" the construction better. In the second version, I've placed a lot of instructive comments. Download it, mess around with them in your favorite text editor (TextWranger is free!), and preview them in your browser.
<!DOCTYPE html>
<head>
<title>HTML and CSS "Hello World"</title>
<style>
body {
background-color: #2D2D2D;
}
h1 {
color: #C26356;
@calebgrove
calebgrove / SassMeister-input-HTML.html
Created December 16, 2013 18:15
Generated by SassMeister.com.
<p>This text should be 20px</p>
<div>This is unstyled text. If we set the body size to 62.5%, this would be 10px instead of 16px, which is fairly unusable.</div>
@calebgrove
calebgrove / style-li-numbers.scss
Created January 30, 2014 19:02
Style <li> Numbers
ol { counter-reset: item; }
li {
display: block;
&:before {
// create the numbers & increment...
content: counter(item) ".";
counter-increment: item;
// correct positioning...
float: left;
## Force ALL files in this directory to download
ForceType application/octet-stream
@calebgrove
calebgrove / stateToAbbr.js
Last active April 24, 2024 22:18
Convert state name to abbreviation in JavaScript. There's some better solutions in the comments, so scroll down!
// There's some better solutions in the comments, so scroll down and see how other folks have improved this!
// USAGE:
// abbrState('ny', 'name');
// --> 'New York'
// abbrState('New York', 'abbr');
// --> 'NY'
function abbrState(input, to){

Keybase proof

I hereby claim:

  • I am CalebGrove on github.
  • I am calebgrove (https://keybase.io/calebgrove) on keybase.
  • I have a public key whose fingerprint is 46E5 5BF4 FD45 8CFF 7FB5 D0FB 6EB9 3481 7E5A 95B6

To claim this, I am signing this object:

<?php
ini_set( 'display_errors', 1 );
error_reporting( E_ALL );
$from = "[email protected]";
$to = "[email protected]";
$subject = "PHP Mail Test script";
$message = "This is a test to check the PHP Mail functionality";
$headers = "From:" . $from;
mail($to,$subject,$message, $headers);
echo "Test email sent";