In C/C++, you can initialise a struct without giving values for any of the fields:
struct Point {
float x;
float y;
float z;
};
def read_csv_to_dicts(filename): | |
with open(filename) as csvfile: | |
reader = csv.reader(csvfile, dialect='excel') | |
header = transform_header(next(reader)) | |
if len(header) != len(set(header)): | |
raise ValueError("Duplicate column names in CSV.") | |
data = [{field: value for field, value in zip(header, row)} | |
for row in reader] |
I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).
Use ssh keys and define host aliases in ssh config file (each alias for an account).