Skip to content

Instantly share code, notes, and snippets.

View jfthuong's full-sized avatar

Jean-Francois Thuong jfthuong

View GitHub Profile
@jfthuong
jfthuong / solution.py
Last active October 17, 2018 14:48
WPE - Week 04 - Solution
from collections import defaultdict, namedtuple
from datetime import datetime
import pandas as pd # type: ignore # "No library stub" for pandas
import re
import sys
from timeit import timeit
from typing import Any, Callable, Dict, Iterator, List, Tuple
DictLog = Dict[str, str]
ListLogs = List[DictLog]
@jfthuong
jfthuong / solution.py
Last active January 9, 2019 10:13
WPE #15 CheckPickle
from cmd import Cmd
from glob import glob
import pickle
import re
from time import time
from typing import Dict, List
fields = ["first_name", "last_name", "email"]
digraph unpackAI_progression {
rankdir="LR";
graph [fontname = "Handlee"];
node [fontname = "Handlee"];
edge [fontname = "Handlee"];
bgcolor=transparent;
subgraph cluster_ml {
@jfthuong
jfthuong / scratchpad.ipynb
Last active November 15, 2021 08:38
Deploying CV Classification Model
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jfthuong
jfthuong / get_weather.py
Created May 17, 2023 09:16
Getting Weather in DataFrame
import requests
from datetime import datetime
import pandas as pd
BREST = (48.39029, -4.4833)
NANTES = (47.218371, -1.553621)
DFLT_START = datetime(2018, 1, 1)
DFLT_END = datetime.today()
@jfthuong
jfthuong / PangramsScadeOne.md
Last active September 30, 2025 10:28
Count Pangrams With Scade One.md