Skip to content

Instantly share code, notes, and snippets.

View damonmcminn's full-sized avatar

Damon McMinn damonmcminn

View GitHub Profile
require 'rails_helper'
RSpec.describe TodosController, :type => :controller do
context "GET index" do
#context "POST create" do
#context "GET show" do
#context "PATCH update" do (or PUT update)
#context "DELETE destroy" do
#context "GET new" do
<?php
$begin = new DateTime('now');
$beginformat = $begin->format("Y-m-d");
$beginfinal = strtotime($beginformat);
$end = $begin->modify("+90 day");
$endformat = $end->format("Y-m-d");
$endfinal = strtotime($endformat);
$dates = array();
<?php
$begin = new DateTime('now');
$beginformat = $begin->format("Y-m-d");
$beginfinal = strtotime($beginformat);
$end = $begin->modify("+90 day");
$endformat = $end->format("Y-m-d");
$endfinal = strtotime($endformat);
$dates = array();
<script>
var currentMonth = moment().format('YYYY-MM');
var nextMonth = moment().add('month', 1).format('YYYY-MM');
var events = [{"date": "2014-02-27", "url": "http://dev.mccarthyscott.com/be/booking-search?field_booking_date_value%5Bvalue%5D%5Bdate%5D=2014-02-10&field_timeslot_category_tid%5B%5D=9#sidr"}, {"date": "2014-02-25", "url": "http://dev.mccarthyscott.com/be/booking-search?field_booking_date_value%5Bvalue%5D%5Bdate%5D=2014-02-10&field_timeslot_category_tid%5B%5D=9#sidr"}];
$('#full-clndr').clndr({
template: $('#full-clndr-template').html(),
events: events,
daysOfTheWeek: ['M', 'T', 'W', 'T', 'F', 'S', 'S'],