You have installed GPG, then tried to perform a git commit and suddenly you see this error message after it 😰
error: gpg failed to sign the data
fatal: failed to write commit object
Understand the error (important to solve it later!)
| import pandas as pd | |
| import pandas.io.sql as sqlio | |
| import psycopg2 | |
| conn = psycopg2.connect("host='{}' port={} dbname='{}' user={} password={}".format(host, port, dbname, username, pwd)) | |
| sql = "select count(*) from table;" | |
| dat = sqlio.read_sql_query(sql, conn) | |
| conn = None |
The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.
The correct way of creating a private frok by duplicating the repo is documented here.
For this assignment the commands are:
git clone --bare [email protected]:usi-systems/easytrace.git
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.
| import java.util.*; | |
| /* | |
| * Example of Observer Pattern: | |
| * Student is the model | |
| * View1 and View2 display information of the student | |
| * View3 changes information of the student | |
| * Whenever the student is changed, the views displaying it should be updated | |
| */ |
| i | |
| me | |
| my | |
| myself | |
| we | |
| our | |
| ours | |
| ourselves | |
| you | |
| your |