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
Connecting... | |
Connected! | |
Sending: connect|{ "teamName": "Jack Wilsdon III", "password": "jack123" } | |
Received: connect|complete | |
Sending: echo|HelloWorld | |
Received: echo|HelloWorld | |
Received: echo|complete | |
Sending: rockpaperscissors| | |
Received: rockpaperscissors|rock | |
Sending: rockpaperscissors|paper |
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
Connecting... | |
Connected! | |
Received: connect|complete | |
Received: echo|HelloWorld | |
Received: echo|complete | |
Received: rockpaperscissors|scissors | |
Received: rockpaperscissors|rock | |
Received: rockpaperscissors|paper | |
Received: rockpaperscissors|paper | |
Received: rockpaperscissors|scissors |
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 arabicToRoman(number) { | |
const letters = [ | |
["M", 1000], | |
["CM", 900], | |
["D", 500], | |
["CD", 400], | |
["C", 100], | |
["XC", 90], | |
["L", 50], | |
["XL", 40], |
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
<Directory "/var/www/vhosts/*"> | |
AllowOverride All | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule /var/www/vhosts/.*?/(.*) /index.php/$1 [L] | |
Options Indexes FollowSymLinks | |
Require all granted |
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
const cartesianProduct = arrays => { | |
if (arrays.length === 0) { | |
return []; | |
} | |
// Find the next set of combinations after this first array. | |
const nextCombinations = cartesianProduct(arrays.slice(1)); | |
// Add values from the current array to the next combinations. | |
return arrays[0].reduce( |
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
{ | |
"variants": { | |
"1": { | |
"id": 1, | |
"variants": { | |
"1": "Test Variant", | |
"2": "Second Variant", | |
"3": "Third Variant" | |
} | |
} |
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
[["Second name","First name","Height(cm)","Weight(kg)","Country\/Team","Country code","Gender","Sport\/Discipline","Events"],["Pipes","Ben ","204","90","Team GB","","GBR","M","Volleyball","Men's Volleyball"],["Bolshakov","Sergey ","190","90","Russian Federation","","RUS","M","Swimming","Men's Marathon 10km"],["Niyomugabo","Jackson ","184","71","Rwanda","","RWA","M","Swimming","Men's 50m Freestyle"],["Palameika","Madara ","183","76","Latvia","","LAT","W","Athletics","Women's Javelin Throw"],["Sibello","Gianfranco ","188","84","Italy","","ITA","M","Sailing","Men's 49er"],["Kulkina","Anna ","167","52","Kazakhstan","","KAZ","W","Synchronised Swimming","Women's Duets"],["Degtyarev","Egor ","202","96","Russian Federation","","RUS","M","Swimming","Men's 400m Freestyle"],["Garcia","Fernando Gabriel ","190","85","Argentina","","ARG","M","Handball","Men's Handball"],["Kynard","Erik ","193","86","Team USA","","USA","M","Athletics","Men's High Jump"],["Taouerghi","Anouer ","178","77","Tunisia","","TUN","M","Volleyball"," |