Scratch Music Gallery – Piano
Check out this project
To see more about this project, check out this playlist https://www.youtube.com/playlist?list=PLz1_3ursPgRSelq3rUIlML2Fv5o-nfhjf
Check out this project
To see more about this project, check out this playlist https://www.youtube.com/playlist?list=PLz1_3ursPgRSelq3rUIlML2Fv5o-nfhjf
This entry shows how and why you need to generate Git Personal Token
Git Personal Token is required to interact with Git Server. It is different from the Git Account Password. The token can be created for a set period of time, and can also be “revoked”. Think of it like an access card. It is tied to your account but can be created, used for access, and deactivated.
Below we go over the steps to create and use the Gi Personal Token
If you have an iOS device(iPad or iPhone) and a Mac and would like to record the device screen for a video or to share the device screen at an interview, you can follow the steps in this blog.
On Day 2, we created a Coin Flip App to demonstrate Import, If-Else, For Loop, Red From User Input, Random Number, and Logging.
Today, let’s create a Python Quiz App that should be useful for studying for quizzes. This project demonstrates a few more core Python concepts (Dictionary, Function, Read from a File).
Below are the steps to create the Python Quiz App:
words
dictionary, and randomly select an item to ask a questionwords
dictionary from a CSV filequiz_common
moduleFollow the instruction from Day 1 to create another python project. In this python project, create a file called flip.py
How does a Coin Clip game work?
A coin flip is a simple game of chance that can have one of two outcomes: heads or tails. When you flip a coin, the outcome is determined by a combination of the initial conditions of the coin (i.e., its weight distribution, air resistance, initial velocity, etc.) and external factors such as air currents, surface friction, and how the coin lands.
In a fair coin flip, the probability of getting heads or tails is exactly 50%, assuming the coin is not biased in any way. Therefore, if you flip a fair coin multiple times, you would expect to get heads about half the time and tails about half the time.
In a programmatic implementation of a coin flip game, we can simulate the coin flip by generating a random number between 0 and 1. If the result is less than 0.5, we can consider it heads, and if it’s greater than or equal to 0.5, we can consider it tails. This method simulates the 50/50 probability of a fair coin flip and allows us to program a simple and fair coin flip game in Python.
The logic of the game is straightforward – the player chooses whether to flip a coin, and the program uses the logic of the coin flip to randomly generate either “heads” or “tails.” The player’s goal is to predict which outcome will occur, and they win if their prediction is correct.
A very simple coin flip game could work as follow:
To build this app, I will work you through the following steps:
Java Stream is a sequence of elements supporting the sequential and parallel aggregate operation. This example shows an aggregate operation using Stream and IntStream
int sum = widgets.stream() .filter(w -> w.getColor() == RED) .mapToInt(w -> w.getWeight()) .sum();
In this example (from Oracle Stream doc), widgets
is a Collection<Widget>. A stream of Widget
objects was created via Collection.stream()
, filter it to product a stream containing only the red widgets, and then transform it into a stream of int values representing the weight of each red widget. Finally this stream is summed to produce a total weight.
This post lists Java Streams code snippets that I find very useful
What is Lombok?
In their own word,
Project Lombok is a java library that automatically plugs into your editor and build tools, spicing up your java. Never write another getter or equals method again, with one annotation your class has a fully featured builder, Automate your logging variables, and much more
Why Use Lombok
When to NOT use Lombok?
In this article, we will give a quick overview of what a Python Program looks like and also touch on the “Anatomy” of a Program.
This article explains how to set up your machine for Python Development.
The steps summary: