Documentations
sqlite3: https://www.sqlite.org/cli.html
| from typing import List, Tuple, Dict, Any | |
| import math | |
| class Room: | |
| """ | |
| Represents a room as a logical constraint boundary. | |
| Supports composition of adjacent rooms (e.g., bathrooms and closets). | |
| """ | |
| def __init__(self, name: str, x: float, y: float, center: Tuple[float, float] = (0.0, 0.0)): | |
| if x <= 0 or y <= 0: |
| import datetime | |
| import time | |
| # get current date in format yymmdd; useful for naming files | |
| today = datetime.date.today().strftime("%y%m%d") | |
| # get current unix time in seconds as integer | |
| now = int(time.time()) | |
| # get time at midnight for current day in seconds as integer |
| # ┌──────────────── Minute (0 ... 59) | |
| # │ ┌───────────── Hour (0 ... 23) | |
| # │ │ ┌────────── Day (1 ... 31) | |
| # │ │ │ ┌─────── Month (1 ... 12) | |
| # │ │ │ │ ┌──── Weekday (0=Sun ... 6=Sat) | |
| # ┴ ┴ ┴ ┴ ┴ | |
| # * * * * * | |
| # run at 1:00 AM everyday from Monday through Friday | |
| 0 1 * * 1-6 cd projects/cron_hello_world/ && python hello_world.py |
Documentations
sqlite3: https://www.sqlite.org/cli.html
808-381-0751 | mnguyenngo@gmail.com | Github | LinkedIn
Software developer with experience in machine learning and data science in the process of making a career transition from structural engineering. I enjoy working on personal projects and collaborating with others as much as possible. In addition to keeping up with the latest machine learning tools, I was driven to understand how to build REST APIs and web applications in order to easily deploy and demonstrate my work to the online community.
| """Histogram bars are not centered at their label by default. | |
| The function below returns the bins parameter value for use with matplotlib's | |
| hist() method. | |
| """ | |
| import numpy as np | |
| import pandas as pd | |
| def bin_array(distribution): | |
| """Returns an array to be used as the parameter value to center the |
This document will contain the syntax for working with various geocoding APIs
Documentation: https://developers.google.com/maps/documentation/maps-static/dev-guide
| from flask import Flask | |
| from flask_restful import reqparse, abort, Api, Resource | |
| import pickle | |
| import numpy as np | |
| from model import NLPModel | |
| app = Flask(__name__) | |
| api = Api(app) | |
| model = NLPModel() |
| # set bins to the (number of bins + 1) - 0.5 to center the bar on the right x-label | |
| df['col_name'].hist(xrot=90, figsize=(12,6), rwidth=0.5, bins=np.arange(9)-0.5) |