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
| def chunks(l, n): | |
| n = max(1, n) | |
| result = [l[i:i+n] for i in range(0, len(l), n)] | |
| if len(result) * n > len(l): | |
| last = result.pop(-1) | |
| result[-1] += last | |
| return result | |
| lenf = 205 | |
| div = 4 |
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
| import pandas as pd | |
| import pickle | |
| import numpy as np | |
| from tabulate import tabulate | |
| left_align_gen = lambda length, value: eval(r"'{:<<<length>>}'.format('''<<value>>'''[0:<<length>>])".replace('<<length>>', str(length)).replace('<<value>>', str(value))) | |
| right_align_gen = lambda length, value: eval(r"'{:><<length>>}'.format('''<<value>>'''[0:<<length>>])".replace('<<length>>', str(length)).replace('<<value>>', str(value))) | |
| # df = pd.read_pickle("dummy.pkl") |
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
| { | |
| "meta": { | |
| "theme": "kendall" | |
| }, | |
| "basics": { | |
| "name": "Chen Du (杜琛)", | |
| "label": "Senior Engineer - Cloud Developer, SRE", | |
| "image": "https://gravatar.com/userimage/252197455/05d270125e2ee728cc21842d872b8274.jpeg?size=512", | |
| "email": "duchenpaul@gmail.com", | |
| "phone": "18963609586", |
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
| { | |
| "meta": { | |
| "theme": "kendall" | |
| }, | |
| "basics": { | |
| "name": "Chen Du (杜琛)", | |
| "label": "Senior Engineer - Cloud Developer, SRE", | |
| "image": "https://gravatar.com/userimage/252197455/05d270125e2ee728cc21842d872b8274.jpeg?size=512", | |
| "email": "duchenpaul@gmail.com", | |
| "phone": "18963609586", |
OlderNewer