Oh Snap! Coders

A website using Hugo

This tutorial will describe how to build a static website using Hugo. The main programming language utilised in Websites is the HTML. To see an example of HTML code, right click on this page and choose “View page source”. It is pretty complicated, especially if you want to build professionally looking pages. Hugo allows us to build beautiful websites without the need of knowing HTML. To start with, choose an imaginary company you would build the website for.

Creating a meme: Image editing with Pillow

Using Python and the Pillow library you can easily edit images similarly to using a photo editing tool like Photoshop. We will use Pillow to create a meme but firstly we will play with some of the basic functions of the library. Installation Pillow library could be installed on your computer using Python’s package manager PIP. For Windows, firstly open the command line (Windows key and type cmd). Then change the directory to the location of your Python installation and execute two pip commands as below.

Minecraft Escape Room

The objective of this tutorial is to build an escape room in Minecraft. The player would be challenged to answer questions to leave the room. In the unlucky event of a wrong answer, the floor will disappear causing the player to fall into a lava pit. Step 1 Start with creating a new python file named escaperoom.py. At the beginning of the program, we will define a few constants that will be used later.

Minecraft alarm clock

In this tutorial, you will learn how to read system time and play sounds. We will use “playsound” and “datetime” libraries as part of the program that will display the current time in Minecraft using a slightly unusual way, by building stacks of blocks. The height of each stack will represent the current value for hours, minutes and seconds. A the beginning, the user will be asked to provide the time when the alarm should be fired and a respective sound played.