This file contains hidden or 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
// create Javascript Date Object of Date entered | |
var OrderFor = new Date(NewSubmission["Month"] + " " + NewSubmission["Day"] + ", " + NewSubmission["Year"]); | |
var Submitted = new Date(e.values[0]); | |
// milliseconds between two dates divided by milliseconds in a day, rounded down | |
var Notice = Math.floor((OrderFor.getTime() - Submitted.getTime()) / (1000 * 60 * 60 * 24)); |
This file contains hidden or 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 Declined = false; | |
if(Notice < 3){ | |
Declined = true; | |
} else if (Notice <6){ | |
NewSubmission["Notice"] = Notice.toString() + " days - £5 Fast track surcharge"; | |
} else { | |
NewSubmission["Notice"] = Notice.toString() + " days - No surcharge"; | |
} | |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Web Form</title> | |
<link rel='stylesheet' type='text/css' href='stylesheet.css'/> | |
<link href='http://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'> | |
</head> | |
<body> | |
<div id="header"><h1>Contact Us!</h1></div> | |
<div id="wrapper"> |
This file contains hidden or 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
SELECT | |
E.FIRST_NAME || ' ' || E.LAST_NAME AS "Employee", | |
EJ.JOB_TITLE AS "Employee Job Title", | |
ED.DEPARTMENT_NAME AS "Employee Department", | |
EDLC.COUNTRY_NAME AS "Employee Country", | |
E.SALARY AS "Employee Salary", | |
M.FIRST_NAME || ' ' || M.last_name AS "Manager", | |
-- MJ.JOB_TITLE as "Manager Job Title", | |
(SELECT count(X.EMPLOYEE_ID) | |
FROM EMPLOYEES X |
This file contains hidden or 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> | |
/* print Fahrenheit-Celsius table | |
for fahr = 0, 20, ..., 300; floating point version */ | |
print_table_top() | |
{ | |
printf("%c", 201); | |
print_line(24); | |
printf("%c\n", 187); |
This file contains hidden or 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> | |
/* print Fahrenheit-Celsius table | |
for fahr = 0, 20, ..., 300; floating point version */ | |
main() | |
{ | |
float fahr, celsius; | |
#define LOWER 0 /* lower limit of temperature table */ |
This file contains hidden or 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
console.log( JSON.parse('{"' + decodeURI(window.location.href.replace(/^(.*\?)/, '').replace(/&/g, "\",\"").replace(/=/g,"\":\"")) + '"}') ); |
This file contains hidden or 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
submodule="$1" | |
msg="$2" | |
# quit immediately if no arguments specified | |
if [ $# -eq 0 ] | |
then | |
echo "==> No arguments supplied" | |
exit 1 | |
fi |
This file contains hidden or 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 wasTimQuotingSomething() { | |
return /day$/.test(new Date().toLocaleDateString('en-gb', { weekday: 'long' })); | |
} |
This file contains hidden or 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
<!--- cfscript ---> | |
<cfscript> | |
VARIABLES.arr_stages = [ | |
{ | |
"name" : "staging", | |
"prefix" : "d5117" | |
}, | |
{ |