Skip to content

Instantly share code, notes, and snippets.

View calebgrove's full-sized avatar

Caleb Grove calebgrove

View GitHub Profile
@calebgrove
calebgrove / Kirby 3 Docs Dark Mode.user.css
Last active October 18, 2021 18:35
Kirby 3 Docs Dark Mode
/* ==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/")
{
@calebgrove
calebgrove / Kirby Reference Dark Mode.user.css
Last active January 24, 2019 19:25
Kirby 3 Reference Dark Mode CSS
/* ==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")
{
@calebgrove
calebgrove / CustomLandingPage.html
Last active February 17, 2018 03:53
Caleb's Dropshare Template
<!--
Dropshare Landing Page
By Caleb Grove @ Grove Design
https://grovedesign.co
-->
<!DOCTYPE html>
<html lang='en'>
<?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";

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:

@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){
## Force ALL files in this directory to download
ForceType application/octet-stream
@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;
@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>