This file contains 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 necessary libraries | |
import numpy as np | |
import yfinance as yf | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
from sklearn.linear_model import LinearRegression | |
from sklearn.metrics import mean_squared_error, mean_absolute_error | |
from statsmodels.tsa.holtwinters import ExponentialSmoothing | |
# Data Acquisition |
This file contains 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 os | |
import yaml | |
def create_directory_structure(root, structure): | |
if isinstance(structure, list): | |
for item in structure: | |
if isinstance(item, dict): | |
for key, val in item.items(): | |
dir_path = os.path.join(root, key) | |
os.makedirs(dir_path, exist_ok=True) |
This file contains 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
from PIL import Image | |
# File paths of the storyboard images | |
file_paths = [ | |
'/mnt/data/Storyboard_for_a_responsive_website_homepage_for_a.png', | |
'/mnt/data/Storyboard_for_a_responsive_About_Us_page_for_a_.png', | |
'/mnt/data/Storyboard_for_a_responsive_Residential_Informati.png', | |
'/mnt/data/Storyboard_for_a_responsive_Commercial_Spaces_pa.png', | |
'/mnt/data/Storyboard_for_a_responsive_Community_Amenities_.png', | |
'/mnt/data/Storyboard_for_a_responsive_Events_and_News_page.png', |
This file contains 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
function modifiedGraphEdges(n, edges, source, destination, target) { | |
const finalize = (m, edges) => { | |
for (let e of edges) { | |
if (e[2] < 0) { | |
if (m > 0) { | |
--m; | |
e[2] = 1; | |
} else { | |
e[2] = 1234567890; | |
} |
A curated list of useful resources that includes a combination of free and paid content.
Feel free to submit a pull request if you have any suggestions.
Currently YETI exists mostly as a thought experiment attempting to answer the question of "how could web developers and designers move away from traditional row & column based design?" and "do we need to?"
YETI attempts to answer this question by defining semantic templates using css grid-template and dynamic properties to responsively diff the templates definitions.
P.S. More than likely this is just a dumb, overly complex way to think about layouts... You be the judge.
This file contains 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
# Please note that in actual production all passwords, usernames, dbnames, etc MUST grab from .env or the like | |
# Otherwise you may as well tell the whole world to hack you because WP wasn't already the largest possible target... | |
version: '3' | |
services: | |
# Database | |
db: | |
# Give the DB a unique name | |
container_name: baseDB |