View timeInterval.fs
// Coded online at https://repl.it/@t1m0thyj/F-Scratchpad-1
open System
let dateStr = "1/1/2000,2/29/2000,2/29/2004,2/29/2008,2/29/2012,2/29/2016,3/14/15 9:26:53"
let getDayDiff (date1:string, date2:string) =
let couldParse, startDate = DateTime.TryParse date1
if (not couldParse) then failwithf "Date '%s' is not valid" date1
let couldParse, endDate = DateTime.TryParse date2
View main.py
#!/usr/bin/env python3
# Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
View assistant_library_with_local_commands_demo.py
#!/usr/bin/env python3
# Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
View pisysinfo.sh
#!/usr/bin/env bash
# Install lighttpd and PHP 7
sudo apt-get -y install lighttpd
sudo apt-get -y install php-cgi php php-xml
sudo lighty-enable-mod fastcgi-php
sudo service lighttpd force-reload
# Install phpSysInfo from GitHub
wget https://github.com/phpsysinfo/phpsysinfo/archive/stable.zip -O ~/Downloads/phpsysinfo-stable.zip