URL | Purpose |
---|---|
/stats.do | Quick stats |
/cache.do | Clear your instance cache |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
- Follow standard conventions.
- Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
- Boy scout rule. Leave the campground cleaner than you found it.
- Always find root cause. Always look for the root cause of a problem.
This file contains hidden or 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
sudo apt-get purge golang* | |
sudo rm -rf /usr/lib/go-1.6/ /usr/lib/go-1.6/src/ /usr/lib/go-1.6/src/runtime/ /usr/lib/go-1.6/src/runtime/race | |
curl -O https://storage.googleapis.com/golang/go1.11.1.linux-amd64.tar.gz | |
sudo tar -C /usr/local -xzf go1.11.1.linux-amd64.tar.gz | |
mkdir -p ~/go; echo "export GOPATH=$HOME/go" >> ~/.bashrc | |
echo "export PATH=$PATH:$HOME/go/bin:/usr/local/go/bin" >> ~/.bashrc | |
source ~/.bashrc |
Kỳ 4:
- CTDL-GT: https://drive.google.com/open?id=0BzsPPAoZSoRqYk5qcFdXdkF4VHc
- Tin 2: https://drive.google.com/open?id=0BzsPPAoZSoRqMldxZFFzZ0tuT0k ==================================================
Kỳ 5:
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Google Sheets API Quickstart</title> | |
<meta charset='utf-8' /> | |
</head> | |
<body> | |
<p>Google Sheets API Quickstart</p> | |
<!--Add buttons to initiate auth sequence and sign out--> |
This file contains hidden or 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Example of `factory method' design pattern | |
# Copyright (C) 2011 Radek Pazdera | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. |