Skip to content

Instantly share code, notes, and snippets.

View thejtate's full-sized avatar

Josh Tate thejtate

View GitHub Profile
@staltz
staltz / introrx.md
Last active September 16, 2024 07:18
The introduction to Reactive Programming you've been missing
@adamlogic
adamlogic / compass_and_css_sprites.md
Created September 1, 2012 15:26
Compass and CSS Sprites, Explained

Compass and CSS Sprites, Explained

Last week I attempted to use the CSS sprites feature of Compass for the second or third time. It's been a struggle each time, but the power and potential is there, so I keep coming back. This time was a bit different, though, because I finally decided to stop relying on the docs and dive into the code.

Before I go into the nitty-gritty, let's take a step back and talk about why I

@deitrick
deitrick / MBO
Created August 30, 2012 19:56
Mindbody API Integration
<?php
include_once('MINDBODY_API_v0.5.php');
$mb = new MINDBODY_API();
$tomorrow = date('Y-m-d\TH:i:s', strtotime("tomorrow")); // note for MINDBODY you have to format your dates in the standard ISO 8601 format but without the timezone offset
$thirtydays = strtotime(date("Y-m-d", strtotime($tomorrow)) . " +30 days");
$params = array(
"StartDateTime"=>$tomorrow,
"EndDateTime"=> $thirtydays
);