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 | |
*, | |
datediff(mi, FL_DepartAt, fsDailyDepartAt) AS minutesDifferent | |
from | |
( | |
select | |
fl.Id AS FL_ID, | |
fs.Id AS FS_ID, | |
dateadd(minute,fl.Skeddept_Gmtvar * -1,dateadd(minute,fl.Skeddept_Time,convert(datetime,fl.Skeddept_Date))) | |
AS FL_DepartAt, |
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
{ | |
"data": { | |
"id": "1", | |
"type": "schedules", | |
"relationships": { | |
"pairings": { | |
"data": [ | |
{ | |
"id": "27287", | |
"type": "pairings" |
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
{ | |
"data": [ | |
{ | |
"id": "2", | |
"type": "directory-categories", | |
"attributes": { | |
"name": "safety" | |
}, | |
"relationships": { | |
"entries-by-airline": { |
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
{ | |
"data": [ | |
{ | |
"id": "2", | |
"type": "directory-categories", | |
"attributes": { | |
"name": "safety" | |
}, | |
"relationships": { | |
"rpa-entries": { |
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
def choose_team(total, members_per_team) | |
return total if members_per_team == 1 | |
return 0 if total == 0 | |
choose_team(total - 1, members_per_team - 1) + choose_team(total-1, members_per_team) | |
end | |
p choose_team(6,2) == 15 |
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
def count_team_combos(team_members, members_per_team) | |
if team_members == 0 | |
return 0 | |
elsif members_per_team == 1 | |
team_members | |
else | |
count_team_combos(team_members - 1, members_per_team - 1) + count_team_combos(team_members - 1, members_per_team) | |
end | |
end |
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
# Your code here | |
def choose_team(n, k) | |
if n == 0 || k == 0 # => false, false, false, false, false, false, false, false, false, false, false, true, true, false, false, false, false, false, false, false, false, false, false, true, true, false, false, false, false, false, false, false, false, true, true, false, false, false, false, false, false, true, true, false, false, false, false, true, true, false, false, true, true, false, true, true, false, false, false, false, false, false, false, false, false, ... | |
n # => 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
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>DOM manipulation with jQuery</title> | |
<!-- Add a link to jQuery CDN here script here --> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
<script type="text/javascript" src="jquery_example.js"></script> | |
</head> | |
<body> |
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 a class called BoggleBoard | |
# integrate previous methods into BoggleBoard class | |
# make driver code create a new board object. pass original 2D array as an argument (call it 'dice_grid') | |
# ensure can interact with boggle_board through the class | |
# print out all the rows and columns as strings (8 four-letter words) | |
# access an individual coordinate (the 'k' character at row 3 column 2) | |
# BONUS: create a #get_diagonal method... should return an array of values, will need 2 coordinates entered to define the diagonal... Error checking would be good. | |
class BoggleBoard | |
def initialize(dice_grid) |