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 has_sum_with_max_val(arr) | |
raise "Invalid Input Array" if arr.nil? || arr.length < 3 | |
raise "Contains Invalid Value" if arr.any? { |n| !n.is_a? Numeric || n < 0 } | |
has_max_sum = false | |
arr.sort! { |a, b| b <=> a } | |
max_num = arr.shift | |
arr.each_with_index do |num, i| | |
total = num |
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
<div class="row two-col"> | |
<div class="col-xs-6 col-sm-2"> | |
<img src="https://s3-us-west-1.amazonaws.com/airenvyassets/return_key.png" class="img-responsive" /> | |
</div> | |
<div class="col-xs-6 col-sm-10 contrast-box"> | |
<span>Don't forget to return the key!</span> | |
1) $50 fee for unreturned keys <br /> | |
2) Checkouts after 11AM are charged $50/hr | |
</div> | |
</div> |
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
<span ng-bind-html="tip"></span> | |
$sce.trustAsHtml(tip) |
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 setColumns = function() { | |
if ($("div.two-col").length > 0) { | |
var columns = $("div.two-col > div"); | |
var leftCol = columns.first(); | |
var rightCol = columns.last(); | |
var padding = parseInt(rightCol.css("padding-top").replace("px", "")) + parseInt(rightCol.css("padding-bottom").replace("px", "")); | |
rightCol.height(leftCol.height() - padding); | |
} | |
} |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.IO; | |
using System.Collections; | |
using System.Net; | |
using System.Net.Mail; | |
using System.Configuration; | |
using System.Xml.Linq; |