New Local Repo | git init [project-name] |
Copy Remote Repo | git clone [url] [?name] |
Making Changes
from PIL import Image | |
temp_original_picture_path = "./image.HEIC" | |
temp_converted_picture_path = "./image.png" | |
# make sure you install ImageMagick in your machine | |
# https://imagemagick.org/script/download.php | |
try: | |
import pillow_avif |
from PIL import Image | |
def watermark(img_path, watermark_path, output_path): | |
# watermark_path is the image of watermark. Not text | |
with Image.open(img_path) as im: | |
width, height = int(im.size[0]), int(im.size[1]) | |
x_interval = int(width / 10) | |
y_interval = int(height / 10) | |
with Image.open(watermark_path) as watermark: | |
# Load watermark and resize to fit |
library(quantmod) | |
library(ggplot2) | |
library(magrittr) # for %>% function | |
library(broom) # tidy function | |
start = as.Date("2021-01-01") | |
end = as.Date("2021-12-01") | |
getSymbols("GOOGL", src = "yahoo", from = start, to = end) | |
write.zoo(GOOGL, "GOOGL.csv", sep = ",") | |
stocks = as.xts(data.frame(A = GOOGL[, "GOOGL.Adjusted"])) | |
stocks_series = tidy(stocks) %>% |