/**
      * EXPERIMENTAL FEATURE!!!
      */
 /**
  * EXPERIMENTAL FEATURE!!!
  */
 case '/cv/docx':
     if (ENVIRONMENT !== 'production') {
         VsWord::autoLoad();
         $doc = new VsWord();
         $parser = new HtmlParser($doc);
         $contents = file_get_contents("http://{$_SERVER['SERVER_NAME']}/cv");
         $parser->parse($contents);
         // echo "<pre>{$doc->getDocument()->getBody()->look()}</pre>";
         $timestamp = time();
         $doc->saveAs("docx/danielfanica_cv_demo_{$timestamp}.docx");
     }
     break;
 default:
     if (ENVIRONMENT !== 'development') {
         // how far behind to we want to look for data? (in days)
         $prev_no_days = 90;
         // https://gist.github.com/daitr-gu/472c4f18522172542cca
         // http://stackoverflow.com/questions/29742460/how-to-get-steps-count-with-google-fit-api-in-php
         $client = new Google_Client();
         $client->setClientId($var['google']['fitness_api']['client_id']);
         $client->setClientSecret($var['google']['fitness_api']['client_secret']);
         $client->setScopes(Google_Service_Fitness::FITNESS_ACTIVITY_READ);
         $client->setRedirectUri('urn:ietf:wg:oauth:2.0:oob');
         // Used in hybrid flows
         $client->setState('offline');