This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= date_today = Date.today %><br /> | |
<% i = date_today %> | |
<% while i <= date_today + 6 %> | |
<%= i.strftime("%A") %><br /> | |
<% i = i + 1 %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p> | |
<%= date_today = Date.today %><br /> | |
<% i = date_today %> | |
<% while i <= date_today + 6 %> | |
<%= i.strftime("%A") %><br /> | |
<% i = i + 1 %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>Testing Area</h1> | |
<p> | |
<% | |
# Some stuff I need to start... | |
total_blocks_per_day = 32 | |
todays_date = Date.today - 2 | |
number_of_days_ahead = 6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def index | |
@bookings = Booking.all | |
@booking = Booking.all(:condition => Date.today <= bookingdate < Date.today + 7) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def index | |
@bookings = Booking.all | |
@booking = Booking.all(:condition => Date.today <= bookingdate < Date.today + 7) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BookingsController < ApplicationController | |
def index | |
@bookings = Booking.all | |
@booking = Booking.all(:condition => Date.today <= bookingdate < Date.today + 7) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function () { | |
// Get the coordinates of each item as an array of arrays | |
var piecesArray = [ | |
// piece 1 | |
{ | |
location: [20, 50], | |
title: "Mimco Dress", | |
description: "Drapey Mimco grey dress" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
main() { | |
int myNumber; | |
int *myNumberPointer; | |
int myNumberCopy; | |
myNumberCopy = myNumber; | |
myNumber = 10; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
main() { | |
void * sup = malloc(sizeof(int) * 10); | |
printf("The size of sup is: %ld\n", sizeof(sup)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var calcIndividual = function (input) { | |
if (input < 6001) { | |
var output = 0; | |
} | |
if (6000 < input < 35001) { | |
var output = ((input - 6000) * 0.15); | |
} | |
if (35000 < input < 80001) { | |
var output = (4350 + ((input - 35000) * 0.3)); | |
} |
OlderNewer