<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="Joshua's portfolio of various projects and presentations on subjects such as classification, linear algebra, and political science among others.">
<meta name="Keywords" content="Portfolio, machine learning, data sicence, data visualization, josh de la Bruere, Joshua de la bruere, political science, projects, presentations, delabruere, dela brure, clasification, k-means, kohonen networks, neural network">
<title>Portfolio | Joshua de la Bruere </title>
<link href="Style.css" rel="stylesheet" type="text/css">
</head>

</html>


<?php 
require_once '../google/vendor/autoload.php';

$client = new \Google_Client();
$client->setApplicationName('PortfolioContentmangaer');
$client->setScopes([\Google_Service_Sheets::SPREADSHEETS]);
$client->setAccessType('offline');
$client->setAuthConfig(__DIR__ . '/servicekey.json');
$service = new Google_Service_Sheets($client);
$spreadsheetId = "1TuJ_Md4u0EuVW9010NcIJj2tNzI1F0Wz200OErR0ZK0";




	echo '<div class="portContent"> 
			<div class="columnWraper">
				<div class="portGrid">
					<div class=portwrapper>
						';
						$range = 'portArt!A2:E30';
						$response = $service->spreadsheets_values->get($spreadsheetId, $range);
						$values = $response->getValues();
						if (empty($values)) {
						   print 'No data found. /n';
						} else {
						   foreach ($values as $row) {
							 
	  
								echo '<div class="flip-card">
										<div class="flip-card-inner">
											<div class="flip-card-front">
												<div class="portStoryTitle">
													<br></br>';
								echo $row[0].' <br></br> </div>';
								echo ' <img src=';
								echo $row[2].'alt="Avatar" style="width:350px;height:197px;"></div>
								<br> 
								<center>
									
									<a  href="';
									echo $row[3].'" class="purpleArticleLink">';
									echo $row[4].'</a>
										
										
									
								</center>
								</div>';
							}
						}	
					echo '
					</div>
				</div>
			</div>
		</div>';
?>






