Skip to content

Instantly share code, notes, and snippets.

View jeremyricketts's full-sized avatar

Jeremy Ricketts jeremyricketts

View GitHub Profile

Keybase proof

I hereby claim:

  • I am jeremyricketts on github.
  • I am jeremyricketts (https://keybase.io/jeremyricketts) on keybase.
  • I have a public key whose fingerprint is CFA5 8BA0 7931 A52A BF82 3149 24E7 7B74 B63C CB78

To claim this, I am signing this object:

@jeremyricketts
jeremyricketts / index.html
Last active August 29, 2015 14:16
Boilerplate for starting new web projects.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Page Title</title>
<meta name="author" content="Jeremy Ricketts">
<meta name="description" content="Short description of this delightful website.">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="/css/style.css" rel="stylesheet" type="text/css">
</head>
@jeremyricketts
jeremyricketts / gdoor.ino
Created January 2, 2015 05:00
Spark Core Garage Door Controller
// Define the pins we're going to call pinMode on
int button = D6;
int Dee7 = D7; //Stock LED
int Dee4 = D4; //
// This routine runs only once upon reset
void setup() {
//Register our Spark function here
Spark.function("gdoor", gdoor);
@jeremyricketts
jeremyricketts / Thoughts
Last active August 29, 2015 14:11
Thoughts on Scrolling
<h1>Thoughts on Page Scrolling.</h1>
Okay, so [here is the article](http://hugeinc.com/ideas/perspective/everybody-scrolls) that spawned some lively debate today.
In the layouts they tested, they show that 91% of people scrolled no matter which of the 4 layouts they were presented with. That means half of the time, 9% of visitors did not scroll.
## I Knew It!
If you think the fold is a myth, you're likely takeaway from this is, well... "Everybody Scrolls." If you think the fold is _not_ a myth, you're likely takeaway from this is something like "9% is very significant! Everybody most certainly does not scroll!"
@jeremyricketts
jeremyricketts / spam_prevention.html
Last active August 29, 2015 14:03
Three checks. 1) no value for hidden html input, 2) updated value using javascript, 3) 5 second minimum required to fill out a form.
<form>
<!-- If this has any value, ever, it's spam. Human's don't fill out hidden inputs. -->
<input type="hidden" class="spmChkOne">
<!-- If this has anything other than 'ntSpm', it's spam. Bot tried to fill it out sans js. -->
<input type="text" class="spmChkTwo" value="spm">
<!-- If this has anything other than 'ntSpm', it's spam. Humans need more than 5 seconds. -->
<input type="text" class="spmChkThree">
</form>

So, I was just at Pizza Port Carlsbad, and I ran into Bryant Webster. We talked about life, we talked about beer, and we talked about Bagby's. Bryant said "You know, I actually interviewed there." And I said, "That would be perfect for them and for you." And Bryant said "Really?" And I said "Are you kidding me?" And then I broke it down:

Sales - At one of North County's busiest bottle shops, Bryant was consistently battling it out with another dude (Sean Kelley) for top sales. That era was the bottle shop's most profitable. Ask Vince or Gina or Brad. Why? Because he knew his shit. When a newbie walked in, he'd ask them some questions, understand their level of sophistication, and then connect them with a beer. He remembered their name. You know how I know? Because he remembered MY name. He remembered my friends' names. And we all kept coming back. My point is- Bryant connects with people. He has a good work ethic and he's honest.

Knowledge - Look. You're hiring bartenders at Bagby's. I know you know a l

All Styles (in no order)

  • Lagunitas- Hop Stoopid
  • DFH- 90min IPA
  • Dechuettes- Black Butte Porter
  • Moose Drool
  • Green Flash- Hop head red
  • Green Flash- Le Freak
  • DFH- Aprihop
  • Stone- Runation
@jeremyricketts
jeremyricketts / Daily Events Detailed Report
Last active December 21, 2015 07:49
Planning Center Online: Resources Report Templates
<!--
#####################################
TITLE: Daily Events Detailed Report
#####################################
DESCRIPTION: This reports all the events happening on a day (or span of days) and contains more detailed information (such as answers to questions attached to rooms). The visual style is more appropriate for displaying as a web page.
-->
<!DOCTYPE html>
<html>
<head>
@jeremyricketts
jeremyricketts / brute5000.md
Last active December 18, 2015 02:19
The Brute5000 Mobile Beverage Dispensing System

Brute5000 Mobile Beverage Dispensing System

The Brute5000 is a next generation mobile beverage dispensing system.

The Brute5000 in action Photo by Sam Soffes.

The Brute5000

The Brute5000

@jeremyricketts
jeremyricketts / database.php
Created August 5, 2011 18:56
Expression Engine database.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
$active_group = 'expressionengine';
$active_record = TRUE;
// include with relevant db etc settings
if($_SERVER['HTTP_HOST'] == 'website.org' || $_SERVER['HTTP_HOST'] == 'www.website.org') {
// production database details
$db['expressionengine']['hostname'] = "localhost";