Last update: 10-9-16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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){ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<head> | |
<title>HTML and CSS "Hello World"</title> | |
<style> | |
body { | |
background-color: #2D2D2D; | |
} | |
h1 { | |
color: #C26356; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ==UserStyle== | |
@name Kirby 3 Docs Dark Mode | |
@author Caleb Grove | |
@version 1.0.0 | |
@namespace cascadea-cg | |
@preprocessor default | |
==/UserStyle== */ | |
@-moz-document url-prefix("https://getkirby.com/docs/") | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ==UserStyle== | |
@name Kirby Reference Dark Mode | |
@author Caleb Grove | |
@description Make the Kirby 3 reference guide nice and dark. | |
@version 1.1 | |
@namespace cascadea-calebgrove | |
==/UserStyle== */ | |
@-moz-document url-prefix("https://getkirby.com/docs/reference") | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Dropshare Landing Page | |
By Caleb Grove @ Grove Design | |
https://grovedesign.co | |
--> | |
<!DOCTYPE html> | |
<html lang='en'> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
ini_set( 'display_errors', 1 ); | |
error_reporting( E_ALL ); | |
$from = "from@example.com"; | |
$to = "to@example.com"; | |
$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"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[id^='button'] { | |
width: 250px !important; | |
height: 50px !important; | |
margin: 10px !important; | |
border-radius: 8px !important; | |
background-color: #3F3F3F !important; | |
NewerOlder