Skip to content

Instantly share code, notes, and snippets.

View coryetzkorn's full-sized avatar
😴
probably writing code

Cory Etzkorn coryetzkorn

😴
probably writing code
View GitHub Profile
[
{
"name": "Money Options",
"settings": [
{
"type": "checkbox",
"id": "show_multiple_currencies",
"default": true,
"label": "Show currency selector?"
},
@coryetzkorn
coryetzkorn / gist:d537887aa917f1e1dcb0
Created February 2, 2015 18:07
Yahoo Weather API Codes
<yahoo-weather-codes>
<code number="0" description="tornado"/>
<code number="1" description="tropical storm"/>
<code number="2" description="hurricane"/>
<code number="3" description="severe thunderstorms"/>
<code number="4" description="thunderstorms"/>
<code number="5" description="mixed rain and snow"/>
<code number="6" description="mixed rain and sleet"/>
<code number="7" description="mixed snow and sleet"/>
<code number="8" description="freezing drizzle"/>
@coryetzkorn
coryetzkorn / dashbaord.php
Created February 3, 2014 15:51
Embedding Dashboard - PHP
<?php
function generateHash() {
$email = $_SESSION['email'];
$first_name = $_SESSION['firstName'];
$last_name = $_SESSION['lastName'];
$security_group = "default";
$company_key = "cust";
$secret_key = "423d004c716839b4af16ef680cc742f2";
$timestamp = (int)gmdate('U');
$verify = md5($first_name . "|" . $last_name . "|" . $email . "|" . $company_key . "|" . $security_group . "|" . $timestamp . "|" . $secret_key);
@coryetzkorn
coryetzkorn / output.php
Last active December 26, 2015 04:49
PHP Store Hours - HTML Output
$open_now = "<h3>Yes, we're open! Today's hours are %open% until %closed%.</h3>";
$closed_now = "<h3>Sorry, we're closed. Today's hours are %open% until %closed%.";
$closed_all_day = "<h3>Sorry, we're closed on %day%.</h3>";
$exception = "<h3>Sorry, we're closed for %exception%.</h3>";
@coryetzkorn
coryetzkorn / gist:7095476
Created October 22, 2013 05:02
PHP Store Hours - Exceptions
$exceptions = array(
'Christmas' => '10/22',
'New Years Day' => '1/1'
);
@coryetzkorn
coryetzkorn / hours.php
Last active December 26, 2015 04:39
PHP Store Hours Array
$hours = array(
'mon' => array('11:00-20:30'),
'tue' => array('11:00-16:00', '18:00-20:30'),
'wed' => array('11:00-20:30'),
'thu' => array('11:00-20:30'),
'fri' => array('11:00-20:30'),
'sat' => array('11:00-20:30'),
'sun' => array('11:00-20:30')
);