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
Install Golang with Homebrew: | |
$ brew update | |
$ brew install golang | |
When installed, try to run go version to see the installed version of Go. | |
Setup the workspace: | |
Add Environment variables: | |
Go has a different approach of managing code, you'll need to create a single Workspace for all your Go projects. For more information consult : How to write Go Code | |
First, you'll need to tell Go the location of your workspace. |
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
if [ -f ~/.bashrc ]; | |
then | |
source ~/.bashrc | |
fi |
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
https://jason.pureconcepts.net/2015/10/install-apache-php-mysql-mac-os-x-el-capitan/ | |
https://jason.pureconcepts.net/2012/10/install-apache-php-mysql-mac-os-x/ | |
https://coolestguidesontheplanet.com/get-apache-mysql-php-and-phpmyadmin-working-on-osx-10-11-el-capitan/ | |
http://www.alphansotech.com/blogs/setup-apache-mysql-php-phpmyadmin-mac-osx/ | |
https://mallinson.ca/osx-web-development/ | |
https://coolestguidesontheplanet.com/get-apache-mysql-php-and-phpmyadmin-working-on-osx-10-11-el-capitan/ | |
##Apache httpd file location | |
/etc/apache2 |
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
import datetime | |
mdate = "2017-10-19" #Write your date Here | |
rdate = datetime.datetime.now().strftime("%Y-%m-%d") #Current Date | |
mdate1 = datetime.datetime.strptime(mdate, "%Y-%m-%d").date() | |
rdate1 = datetime.datetime.strptime(rdate, "%Y-%m-%d").date() | |
delta = (mdate1 - rdate1).days #calculate difference between dates | |
print "%d days Left!!"%(delta) |