Skip to content

Instantly share code, notes, and snippets.

View jackwilsdon's full-sized avatar

Jack Wilsdon jackwilsdon

View GitHub Profile
[["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","
{
"variants": {
"1": {
"id": 1,
"variants": {
"1": "Test Variant",
"2": "Second Variant",
"3": "Third Variant"
}
}
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(
<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
function arabicToRoman(number) {
const letters = [
["M", 1000],
["CM", 900],
["D", 500],
["CD", 400],
["C", 100],
["XC", 90],
["L", 50],
["XL", 40],
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
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