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 minRefreshIntervalInSeconds = 5; | |
var maxRefreshIntervalInSeconds = 10; | |
var seed = Date.now(); | |
Math.seed = seed; | |
function seededRandom() { | |
var x = Math.sin(Math.seed++) * 10000; | |
return x - Math.floor(x); | |
} |
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
# Install tmux 3.1c on Amazon Linux 2 | |
# install deps | |
sudo yum install -y gcc kernel-devel make ncurses-devel | |
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL | |
curl -LOk https://github.com/libevent/libevent/releases/download/release-2.1.11-stable/libevent-2.1.11-stable.tar.gz | |
tar -xf libevent-2.1.11-stable.tar.gz | |
cd libevent-2.1.11-stable | |
./configure --prefix=/usr/local |
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
########################################################## | |
# CODE INSTRUCTIONS: # | |
# 1) The method findLargestSmallerKey you're asked # | |
# to implement is located at line 30. # | |
# 2) Use the helper code below to implement it. # | |
# 3) In a nutshell, the helper code allows you to # | |
# to build a Binary Search Tree. # | |
# 4) Jump to line 71 to see an example for how the # | |
# helper code is used to test findLargestSmallerKey. # | |
########################################################## |
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
import os | |
def main(): | |
fName = [' '] | |
fName.append("1 Trees___redacted__") | |
fName.append("2 Trees___redacted__") | |
fName.append("3 Trees___redacted__") | |
fName.append("4 Trees___redacted__") | |
fName.append("5 Trees___redacted__") |
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 player; | |
var selectedMovieName; | |
console.log("branch test for CI"); | |
// Pause the video when the modal is closed | |
$(document).on('click', '.hanging-close, .modal-backdrop, .modal', function(event) { | |
// Remove the src so the player itself gets removed, as this is the only | |
// reliable way to ensure the video stops playing in IE | |
stopVideo(); | |
var iFrame = document.getElementById('trailer-video-container'); | |
var trailerDiv = document.createElement("div"); |