I noticed that my Jekyll posts with YouTube videos open very slow. I checked pagespeed.web.dev and got 30/100 score for video-embedded posts. Using the script in this repository, I created a simple method that easily embeds YouTube videos into Jekyll posts. With this lazy-loading script, my posts get 71/100 score. It is easy to implement and use.
[Read More]
Elevations of a Polygon - A Python Script
A Python script to generate mesh grid of a polygon and retrive elevation data from open-elevation.com
The purpose of this script is to generate a mesh grid within a Polygon. The coordinates of the mesh grid is then used to get elevation data from a public API: api.open-elevation.com. The script can be easly adjusted for other APIs. The output of the script are (1) the coordinates within the polygon and (2) elevations of the coordinates. Data can be used for various purposes. The script can be found in my repository: PolygonElevations. The script file is: PolygonElevations.py
[Read More]
Generating Categorical/Dummy Variable Patterns with Pandas
A Script to generate categorical variable patterns in Python
Hello everyone!
[Read More]
Beamer Poster Template - Gemini for UQ
This is a modified beamerposter template with the University of Queensland logo and colors. It is forked from here (which is forked from here).
[Read More]
Estimating the Poisson Regression Model with Newton's Method - Python Example
Newton's Method from Scratch
The Poisson Regression model estimates the Poisson population parameter $\lambda _i$ related to the regressor covariate $x_i$. The outcome variable $y_i$ is hence assumed to be drawn from a Poisson distribution. Specifically, the data generating process is:
[Read More]