Skip to content

Instantly share code, notes, and snippets.

Avatar

Caleb Grove calebgrove

View GitHub Profile
@calebgrove
calebgrove / Kirby Reference Dark Mode.user.css
Last active Jan 24, 2019
Kirby 3 Reference Dark Mode CSS
View Kirby Reference Dark Mode.user.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 Feb 17, 2018
Caleb's Dropshare Template
View CustomLandingPage.html
<!--
Dropshare Landing Page
By Caleb Grove @ Grove Design
https://grovedesign.co
-->
<!DOCTYPE html>
<html lang='en'>
View gist:e2a69d0b066e6f304980
<?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";
View keybase.md

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 Aug 15, 2020
Convert state name to abbreviation in JavaScript. There's some better solutions in the comments, so scroll down!
View stateToAbbr.js
// 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){
View .htaccess
## Force ALL files in this directory to download
ForceType application/octet-stream
View style-li-numbers.scss
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 Dec 16, 2013
Generated by SassMeister.com.
View SassMeister-input-HTML.html
<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 / helloworld.html
Last active Jul 20, 2020
"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.
View helloworld.html
<!DOCTYPE html>
<head>
<title>HTML and CSS "Hello World"</title>
<style>
body {
background-color: #2D2D2D;
}
h1 {
color: #C26356;
You can’t perform that action at this time.