5οΈβ£ Five Letters
This week's challenge is a word game!
Put your vocabulary and spelling skills to the test through 5 lettered words from the top 1000 words in English!
π₯ Goal: Hide the two last letters of a random word from a given word bank (file), and let a user guess the word. + points if correct | - points if wrong.
βοΈ Recommended Learning:
π¦Ά Get started with this code.
β‘οΈ Bring the Thunder:
- Show counter of 'points' and 'hearts' (health bar)
- Include a 'Game Over' for too many incorrect guesses
- Introduce a count down for each new word to make it more intense
π Might I break the rule for this week's challenge? π€
π Submissions: Sunday Morning, 2:00 LT
πͺ Send your submissions in the comments.
@WeeklyCoder | Week 25
This week's challenge is a word game!
Put your vocabulary and spelling skills to the test through 5 lettered words from the top 1000 words in English!
π₯ Goal: Hide the two last letters of a random word from a given word bank (file), and let a user guess the word. + points if correct | - points if wrong.
βοΈ Recommended Learning:
- loadStrings ()
- .length (), .size (), .trim ()
- .substring (), StringList
- keyCode
- Character.isAlphabetic ()
- .append (), .get ()
- random ()
π¦Ά Get started with this code.
β‘οΈ Bring the Thunder:
- Show counter of 'points' and 'hearts' (health bar)
- Include a 'Game Over' for too many incorrect guesses
- Introduce a count down for each new word to make it more intense
π Mi
π Submissions: Sunday Morning, 2:00 LT
πͺ Send your submissions in the comments.
@WeeklyCoder | Week 25
π QR Dictionary
Got another vocabulary practicing game for y'all!
Why bother hiding the answer with your palm or paper when you can encode it as a QR?
π₯ Goal: Hide (encode) the meaning of a word as a QR Code that appears on the screen. To practice/play, all you have to do is take a moment to recall the meaning of the word that appears beneath the QR code and check your answer.
βοΈ Recommended Learning:
π¦Ά Get started with this code.
β‘οΈ Bring the Thunder:
- Go to the next word with a keyPress,
- Show counter of words remaining
- Ensure that a word does not appear more than once when randomizing
- Include a count down for each new word
π‘ Nudges: Find aiding code snippets put in the folder, "nudges"
βοΈ Libraries: QR Code library has been included in the folder, "code"
π Submissions: Sunday Morning, 2:00 LT
πͺ Send your submissions in the comments.
@WeeklyCoder | Week 26
Got another vocabulary practicing game for y'all!
Why bother hiding the answer with your palm or paper when you can encode it as a QR?
π₯ Goal: Hide (encode) the meaning of a word as a QR Code that appears on the screen. To practice/play, all you have to do is take a moment to recall the meaning of the word that appears beneath the QR code and check your answer.
βοΈ Recommended Learning:
- loadStrings ()
- .length (), .size ()
- StringDict ()
- keyCode, keyPressed ()
- .append (), .get ()
- random ()
π¦Ά Get started with this code.
β‘οΈ Bring the Thunder:
- Go to the next word with a keyPress,
ENTER for example- Show counter of words remaining
- Ensure that a word does not appear more than once when randomizing
- Include a count down for each new word
π‘ Nudges: Find aiding code snippets put in the folder, "nudges"
βοΈ Libraries: QR Code library has been included in the folder, "code"
π Submissions: Sunday Morning, 2:00 LT
πͺ Send your submissions in the comments.
@WeeklyCoder | Week 26
π¨βπ»1
β° Wake Up Call
I remember a small Alarm app being one of my earliest projects after getting introduced to computer programming, and specifically Processing.
Though Windows 10 has one, let's pretend we're in the Windows 7 era (as was the case for me), and create a simple alarm app.
π₯ Goal: Take time (in seconds, at first) and count down to 0 and sound the alarm.
βοΈ Recommended Learning:
-
-
π¦Ά Get Started with this audio example code.
β‘οΈ Bring the Thunder:
- Move past taking duration and take as input set time in the future
- Implement the options Dismiss
- Implement the option to Snooze
- Include a custom inserted text to appear along with the alarm sound
βοΈ Don't forget to add the minim audio library like this.
π Submissions: Sunday Morning, 2:00 LT
πͺ Send your submissions in the comments.
@WeeklyCoder | Week 27
I remember a small Alarm app being one of my earliest projects after getting introduced to computer programming, and specifically Processing.
Though Windows 10 has one, let's pretend we're in the Windows 7 era (as was the case for me), and create a simple alarm app.
π₯ Goal: Take time (in seconds, at first) and count down to 0 and sound the alarm.
βοΈ Recommended Learning:
-
libraries, minim
- .play (), .pause ()-
millis ()π¦Ά Get Started with this audio example code.
β‘οΈ Bring the Thunder:
- Move past taking duration and take as input set time in the future
- Implement the options Dismiss
- Implement the option to Snooze
- Include a custom inserted text to appear along with the alarm sound
βοΈ Don't forget to add the minim audio library like this.
π Submissions: Sunday Morning, 2:00 LT
πͺ Send your submissions in the comments.
@WeeklyCoder | Week 27
π¨βπ»1
4οΈβ£ Connect Four
Let's create another simple game as this week's Coding Challenge.
πΌ Watch this 20 second video to understand the workings of the game.
π₯ Goal: Recreate the game Connect Four with your favorite programming language and environment.
βοΈ Recommended Learning:
-
-
-
π¦Ά Get Started with this starting code.
π Fix the bug: In the starting code, the disks are arranged upside down. Fix this bug to let them 'fall' down.
π Submissions: Sunday Morning, 2:00 LT
πͺ Send your submissions here.
@WeeklyCoder | Week 28
Let's create another simple game as this week's Coding Challenge.
πΌ Watch this 20 second video to understand the workings of the game.
π₯ Goal: Recreate the game Connect Four with your favorite programming language and environment.
βοΈ Recommended Learning:
-
Integer, color-
IntList, .append (), .get ()-
keyReleased (), str ()π¦Ά Get Started with this starting code.
π Fix the bug: In the starting code, the disks are arranged upside down. Fix this bug to let them 'fall' down.
π Submissions: Sunday Morning, 2:00 LT
πͺ Send your submissions here.
@WeeklyCoder | Week 28
π¨βπ»1
Weekly Coder
4οΈβ£ Connect Four Let's create another simple game as this week's Coding Challenge. πΌ Watch this 20 second video to understand the workings of the game. π₯
Goal: Recreate the game Connect Four with your favorite programming language and environment. βοΈ Recommendedβ¦
WeeklyCoder_Week28.zip
1 KB
β οΈ "Energy flows where attention goes" β T.R.
How much of your attention is going where you want it to when you're on a computer?
We're getting that figured on this week's coding challenge!
π₯ Goal: To make a simple active window tracking program to determine the most used apps.
βοΈ Recommended Learning:
-
-
-
π¦Ά Get started: Here's a starting code with the JNA library included in the 'code' folder. It contains a function to get title of the focused window.
πΎ Steps: Start by obtaining the current title of the active window. Check if the title has been stored before. If it is new, count it as one. If old, increment the prev count by 1. Sort the stored item values (counts) and get the keys (titles).
π Submissions: Sunday Morning, 2:00 LT
πͺ Send your submissions here.
@WeeklyCoder | Week 29
How much of your attention is going where you want it to when you're on a computer?
We're getting that figured on this week's coding challenge!
π₯ Goal: To make a simple active window tracking program to determine the most used apps.
βοΈ Recommended Learning:
-
Intict, key, value-
set (), size (), get (), hasKey ()-
increment operator𦢠Get started: Here's a starting code with the JNA library included in the 'code' folder. It contains a function to get title of the focused window.
πΎ Steps: Start by obtaining the current title of the active window. Check if the title has been stored before. If it is new, count it as one. If old, increment the prev count by 1. Sort the stored item values (counts) and get the keys (titles).
π Submissions: Sunday Morning, 2:00 LT
πͺ Send your submissions here.
@WeeklyCoder | Week 29
π₯1π¨βπ»1
π 8.764868, 38.999322
Feather light coding challenge for y'all this week.
π₯ Goal: Calculate the distance between two points on the Earth's surface given two coordinates as latitude and longitude.
βοΈ Recommended Learning:
- Haversine Formula
-
-
πΎ Steps: Start by studying Haversine Formula. Then convert each equation to programmatic expression.
β Testing coordinates:
Point 1: [8.76484622069578, 38.99934027941346]
Point 2: [8.945679343541766, 39.20198679710532]
π Submissions: Sunday Morning, 2:00 LT
πͺ Send your submissions in the comments.
@WeeklyCoder | Week 30
Feather light coding challenge for y'all this week.
π₯ Goal: Calculate the distance between two points on the Earth's surface given two coordinates as latitude and longitude.
βοΈ Recommended Learning:
- Haversine Formula
-
asin (), sin (), cos (),-
sqrt (), pow (), radians ()πΎ Steps: Start by studying Haversine Formula. Then convert each equation to programmatic expression.
β Testing coordinates:
Point 1: [8.76484622069578, 38.99934027941346]
Point 2: [8.945679343541766, 39.20198679710532]
π Submissions: Sunday Morning, 2:00 LT
πͺ Send your submissions in the comments.
@WeeklyCoder | Week 30
π¨βπ»1
β‘οΈCounting Flashes
Digital electric meters have an LED that flashes with each pulse, allowing for visual monitoring of energy consumption in real time.
*pulse here is a small and fixed amount of energy passing through the meter.
Pulse Rate is a common metric found on such meters [Unit imp/kWh].
βοΈ Example: 3200 imp/kWh would indicate that for every kilowatt-hour (kWh) of electricity consumed, the meter will produce 3200 pulses (impulses).
π₯ Goal: Write a program to calculate the total energy consumed in kWh given number of pulses and the imp/kWh of a meter.
πΌ Example photo of such a meter here.
π Submissions: Sunday Morning, 2:00 LT
πͺ Send your submissions in the comments.
@WeeklyCoder | Week 31
Digital electric meters have an LED that flashes with each pulse, allowing for visual monitoring of energy consumption in real time.
*pulse here is a small and fixed amount of energy passing through the meter.
Pulse Rate is a common metric found on such meters [Unit imp/kWh].
βοΈ Example: 3200 imp/kWh would indicate that for every kilowatt-hour (kWh) of electricity consumed, the meter will produce 3200 pulses (impulses).
π₯ Goal: Write a program to calculate the total energy consumed in kWh given number of pulses and the imp/kWh of a meter.
πΌ Example photo of such a meter here.
π Submissions: Sunday Morning, 2:00 LT
πͺ Send your submissions in the comments.
@WeeklyCoder | Week 31
π¨βπ»1
π Recursion Time
Let's do this math together. It's simple, add the digits in the numbers:
- 456381901
- 342999002
- 304072023
If you added the digits of each and the obtained result's digits iteratively until you get just a single digit, you'll notice the sums are: 1, 2, and 3 respectively.
Eg: 4567295
4+5+6+7+2+9+5 = 38
3+8 = 11
1+1= 2
Here's the neat thing. If you removed all 9's and all numbers that add up to 9, the sum of the digits will remain the same.
Eg: 4567295
Remove 9
Remove 4 & 5 because 4+5= 9
Remove 7 & 2 because 7+2=9
That leaves: 6 and 5
6+5 = 11
1+1 = 2
π₯ Goal: Write a program to calculate the sum of each digit within a given integer iteratively/recursively until the sum of the resulting sum itself is a single digit.
βοΈ Recommend Learning:
- Recursion
β‘ Bring the thunder:
- Remove numbers adding up to 9 and all 9's from the number before adding and see where that takes you.
π Submissions: Sunday Morning, 2:00 LT
πͺ Send your submissions in the comments.
@WeeklyCoder | Week 32
Let's do this math together. It's simple, add the digits in the numbers:
- 456381901
- 342999002
- 304072023
If you added the digits of each and the obtained result's digits iteratively until you get just a single digit, you'll notice the sums are: 1, 2, and 3 respectively.
Eg: 4567295
4+5+6+7+2+9+5 = 38
3+8 = 11
1+1= 2
Here's the neat thing. If you removed all 9's and all numbers that add up to 9, the sum of the digits will remain the same.
Eg: 4567295
Remove 9
Remove 4 & 5 because 4+5= 9
Remove 7 & 2 because 7+2=9
That leaves: 6 and 5
6+5 = 11
1+1 = 2
π₯ Goal: Write a program to calculate the sum of each digit within a given integer iteratively/recursively until the sum of the resulting sum itself is a single digit.
βοΈ Recommend Learning:
- Recursion
β‘ Bring the thunder:
- Remove numbers adding up to 9 and all 9's from the number before adding and see where that takes you.
π Submissions: Sunday Morning, 2:00 LT
πͺ Send your submissions in the comments.
@WeeklyCoder | Week 32
π¨βπ»1
π€ͺ Tongue Twisters Time
Tongue twisters are playful phrases designed to challenge pronunciation by featuring repetitive sounds or combinations of words that are difficult to articulate quickly and accurately.
No actual tongue twists following from tongue twisters is probably a tender twist of tongue twisters.
π₯ Goal: Given a tongue twister as a String, determine a word that's most likely responsible for the phrase being a tongue twister.
π Example:
Given this: If Kantie can tie a tie and untie a tie, why canβt I tie a tie and untie a tie like Kantie can.
Output would be: 'tie'
βοΈ Recommended Learning:
-
-
)
-
π Submissions: Sunday Morning, 2:00 LT
πͺ Send your submissions in the comments.
@WeeklyCoder | Week 33
Tongue twisters are playful phrases designed to challenge pronunciation by featuring repetitive sounds or combinations of words that are difficult to articulate quickly and accurately.
No actual tongue twists following from tongue twisters is probably a tender twist of tongue twisters.
π₯ Goal: Given a tongue twister as a String, determine a word that's most likely responsible for the phrase being a tongue twister.
π Example:
Given this: If Kantie can tie a tie and untie a tie, why canβt I tie a tie and untie a tie like Kantie can.
Output would be: 'tie'
βοΈ Recommended Learning:
-
StringDict-
Levenshtein distance (org.apache.commons.text.similarity.LevenshteinDistance)
-
Nested loopsπ Submissions: Sunday Morning, 2:00 LT
πͺ Send your submissions in the comments.
@WeeklyCoder | Week 33
π¨βπ»1
βοΈ Icy Mudballs
The last apperance of the comet Hale-Bopp (called Hale Comet for short) was back in April 1, 1997. The orbital period of Hale is approximately 2,533 years.
It's next appearance would thus be: 1997 + 2533 = 4530.
π₯ Goal: Write a program to determine how many times the Hale Comet would appear in a Megannum (a 1,000,000 years).
βοΈ Recommended Learning:
-
π Submissions: Sunday Morning, 2:00 LT
πͺ Send your submissions in the comments.
@WeeklyCoder | Week 34
The last apperance of the comet Hale-Bopp (called Hale Comet for short) was back in April 1, 1997. The orbital period of Hale is approximately 2,533 years.
It's next appearance would thus be: 1997 + 2533 = 4530.
π₯ Goal: Write a program to determine how many times the Hale Comet would appear in a Megannum (a 1,000,000 years).
βοΈ Recommended Learning:
-
operators: modulo, divisionπ Submissions: Sunday Morning, 2:00 LT
πͺ Send your submissions in the comments.
@WeeklyCoder | Week 34
π¨βπ»1
πͺ So, how much do you weigh?
π₯ Goal: Given the g (acceleration due to gravity in m/sΒ²) of the planets in our solar system, write a computer program that takes in weight on Earth and calculates weight on all other planets.
π Gravity Values (in m/sΒ²):
Mercury: 3.7 | Venus: 8.87 | Earth: 9.81
Mars: 3.71 | Jupiter: 24.79 | Saturn: 10.44
Uranus: 8.69 | Neptune: 11.15 | Pluto (though not really a planet): 0.62
βοΈ Recommended Learning:
-
-
β‘οΈ Bring the thunder:
- Spice this up by getting creative and adding in some graphics to it.
π Submissions: Sunday Morning, 2:00 LT
πͺ Send your submissions in the comments.
@WeeklyCoder | Week 35
π₯ Goal: Given the g (acceleration due to gravity in m/sΒ²) of the planets in our solar system, write a computer program that takes in weight on Earth and calculates weight on all other planets.
π Gravity Values (in m/sΒ²):
Mercury: 3.7 | Venus: 8.87 | Earth: 9.81
Mars: 3.71 | Jupiter: 24.79 | Saturn: 10.44
Uranus: 8.69 | Neptune: 11.15 | Pluto (though not really a planet): 0.62
βοΈ Recommended Learning:
-
operators: division-
PImage, loadImage (), image ()β‘οΈ Bring the thunder:
- Spice this up by getting creative and adding in some graphics to it.
π Submissions: Sunday Morning, 2:00 LT
πͺ Send your submissions in the comments.
@WeeklyCoder | Week 35
π¨βπ»1
π© + π© = β¬οΈ + π¦ [3min challenge]
This week's challenge is so easy, you could solve it in just a single line of code!
Students are to be paired for a group work. The idea is to have optimal pairs of proficient students in different subjects.
The assumption is that, a student proficient in one subject isn't necessarily proficient in another. Meaning having a pair of students both proficient in the same subject is undesirable.
Output it like this:
Pair 1: Diana - Dalton
Pair 2: Lisa - Ford
...
β‘οΈ Bring the thunder
- Though you have access to the above two String Arrays, you are to use the following alphabetically ordered version to make the pairs. [Here's the Array]
Green on Green Makes Black and Blue
π Submissions: Sunday Morning, 2:00 LT
πͺ Send your submissions in the comments.
@WeeklyCoder | Week 36
This week's challenge is so easy, you could solve it in just a single line of code!
Students are to be paired for a group work. The idea is to have optimal pairs of proficient students in different subjects.
The assumption is that, a student proficient in one subject isn't necessarily proficient in another. Meaning having a pair of students both proficient in the same subject is undesirable.
String phy_pro_students [] = {"Diana", "Lisa", "Margaret", "Monica", "John"};
String bio_pro_students [] = {"Dalton", "Ford", "Homer", "Tina", "Mia"};Output it like this:
Pair 1: Diana - Dalton
Pair 2: Lisa - Ford
...
β‘οΈ Bring the thunder
- Though you have access to the above two String Arrays, you are to use the following alphabetically ordered version to make the pairs. [Here's the Array]
Green on Green Makes Black and Blue
π Submissions: Sunday Morning, 2:00 LT
πͺ Send your submissions in the comments.
@WeeklyCoder | Week 36
π¨βπ»1
π Zhhnoa Frghu!
It's Caesar's Cipher time!
Inspired by Julius Caesar, who used this method to protect his private messages, the challenge for this week is is to create a program that shifts each letter in a given String by 3 places.
Eg: If the shift is 3,
a becomes d | b > e | c > f | e > g | ... z > c
Can you crack the code and reveal the hidden title above?
β‘οΈBring the thunder!
Click here for 3 increasingly difficult versions of the challenge.
πThough maybe not the clearest at first glance, it* surely can be done in just one line of code. If you do, and are the first of three (unique) implementations to do and post it in the comments, something π may await you.
*Either the encryption or decryption of the bare minimum of the challenge.
π Submissions: Sunday Morning, 2:00 LT
πͺ Send your submissions in the comments.
@WeeklyCoder | Week 37
It's Caesar's Cipher time!
Inspired by Julius Caesar, who used this method to protect his private messages, the challenge for this week is is to create a program that shifts each letter in a given String by 3 places.
Eg: If the shift is 3,
a becomes d | b > e | c > f | e > g | ... z > c
Can you crack the code and reveal the hidden title above?
β‘οΈBring the thunder!
Click here for 3 increasingly difficult versions of the challenge.
π
*Either the encryption or decryption of the bare minimum of the challenge.
π Submissions: Sunday Morning, 2:00 LT
πͺ Send your submissions in the comments.
@WeeklyCoder | Week 37
π It's JSON time!
This week's challenge brings you a stage to work with APIs. Head over to openexchangerates.org/signup/free and sign up and get your API Key.
Extract rates desired (eg. USD (base) to ETB). Use the data you obtained to:
- convert from one currency to another
- create a digital currency exchange board
π± Get started with these two barebones.
Example 1 | Example 2
π Prizes of last week will be delivered at the Book Club Meetup this Saturday, Jul 6.
π Submissions: Sunday Morning, 2:00 LT
πͺ Send your submissions in the comments.
@WeeklyCoder | Week 38
This week's challenge brings you a stage to work with APIs. Head over to openexchangerates.org/signup/free and sign up and get your API Key.
Extract rates desired (eg. USD (base) to ETB). Use the data you obtained to:
- convert from one currency to another
- create a digital currency exchange board
π± Get started with these two barebones.
Example 1 | Example 2
π Prizes of last week will be delivered at the Book Club Meetup this Saturday, Jul 6.
π Submissions: Sunday Morning, 2:00 LT
πͺ Send your submissions in the comments.
@WeeklyCoder | Week 38
π1
π¬ But can you validate an email?
Something super simple for you this week.
Let's implement a program that takes an email address as input and displays whether it is valid or not.
An email is considered valid if is in the format: username@domain.extension
β‘οΈ Bring the thunder!
- Introduce a user interface and add in animations too
π Submissions: Sunday Morning, 2:00 LT
πͺ Send your submissions in the comments.
@WeeklyCoder | Week 39
Something super simple for you this week.
Let's implement a program that takes an email address as input and displays whether it is valid or not.
An email is considered valid if is in the format: username@domain.extension
β‘οΈ Bring the thunder!
- Introduce a user interface and add in animations too
π Submissions: Sunday Morning, 2:00 LT
πͺ Send your submissions in the comments.
@WeeklyCoder | Week 39
πͺ Reminiscence time!
Let's recreate a very old game called Magic Paper this week.
The game is simple. You pick any two-digit number. You then add the two digits together. You then subtract the result from the original number.
Example: Let's say you picked 32
3 + 2 = 5
32 - 5 = 27
You then take this result and look for a symbol labeled 27.
Now, the point of the game is to, 'Magically' predict what sign you landed on.
So after you have picked your two-digit number, the game would let you see the list of symbols. And without any input form you whatsoever, it'll show you the symbol you saw.
Check out the screenshots of the original game here.
β‘οΈ Could you crack the "Magic" powering this game and recreate it?
π Submissions: Sunday Morning, 2:00 LT
πͺ Send your submissions in the comments.
@WeeklyCoder | Week 40
Let's recreate a very old game called Magic Paper this week.
The game is simple. You pick any two-digit number. You then add the two digits together. You then subtract the result from the original number.
Example: Let's say you picked 32
3 + 2 = 5
32 - 5 = 27
You then take this result and look for a symbol labeled 27.
Now, the point of the game is to, 'Magically' predict what sign you landed on.
So after you have picked your two-digit number, the game would let you see the list of symbols. And without any input form you whatsoever, it'll show you the symbol you saw.
Check out the screenshots of the original game here.
β‘οΈ Could you crack the "Magic" powering this game and recreate it?
π Submissions: Sunday Morning, 2:00 LT
πͺ Send your submissions in the comments.
@WeeklyCoder | Week 40
π S is for Secure
This week, let's make a password strength checker to evaluate the security of a password.
Unauthorized access can come in forms of: brute force attacks, dictionary attacks, and guessing attacks
A strong password typically includes a mix of different character types (uppercase, lowercase, digits, special characters) and avoids common patterns or easily guessable information
π₯ Goal: Let a user input their password and output its strength basing this list of evaluation criteria (as many as possible).
β‘οΈ Bring the thunder!
- How many of the evaluation criteria can you implement?
- Provide feedback on how to make the password stronger?
- Introduce some descent User Interface to make this more engaging and real-time interactive?
π Submissions: Sunday Morning, 2:00 LT
πͺ Send your submissions in the comments.
@WeeklyCoder | Week 41
This week, let's make a password strength checker to evaluate the security of a password.
Unauthorized access can come in forms of: brute force attacks, dictionary attacks, and guessing attacks
A strong password typically includes a mix of different character types (uppercase, lowercase, digits, special characters) and avoids common patterns or easily guessable information
π₯ Goal: Let a user input their password and output its strength basing this list of evaluation criteria (as many as possible).
β‘οΈ Bring the thunder!
- How many of the evaluation criteria can you implement?
- Provide feedback on how to make the password stronger?
- Introduce some descent User Interface to make this more engaging and real-time interactive?
π Submissions: Sunday Morning, 2:00 LT
πͺ Send your submissions in the comments.
@WeeklyCoder | Week 41
π1
π Last seen 42minutes ago
Quick one for ya this week.
π₯ Goal: Given the number of milliseconds that have passed since the last time a user was active on an app, display their last seen.
Examples:
- 5000 -> Just now
- 62000 -> A minute ago
- 300000 -> 5 minutes ago
- 7200000 -> 2 hours ago
- +
β‘οΈ Bring the thunder!
A UNIX epoch time is the number of seconds* which have passed since 00:00:00 UTC β Jan 1, 1970.
As of writing this, it's 1722623321000. Supposing that's the last time a user was on the app, how long ago would their be their last seen?
* Excluding leap seconds
π Submissions: Sunday Morning, 2:00 LT
πͺ Send your submissions in the comments.
@WeeklyCoder | Week 42
Quick one for ya this week.
π₯ Goal: Given the number of milliseconds that have passed since the last time a user was active on an app, display their last seen.
Examples:
- 5000 -> Just now
- 62000 -> A minute ago
- 300000 -> 5 minutes ago
- 7200000 -> 2 hours ago
- +
β‘οΈ Bring the thunder!
A UNIX epoch time is the number of seconds* which have passed since 00:00:00 UTC β Jan 1, 1970.
As of writing this, it's 1722623321000. Supposing that's the last time a user was on the app, how long ago would their be their last seen?
* Excluding leap seconds
π Submissions: Sunday Morning, 2:00 LT
πͺ Send your submissions in the comments.
@WeeklyCoder | Week 42
πΊ But do you see art?
Let's see how creative and artistic you can get this week!
π₯ Goal: Base the given image of the world map in just two colors (0 - Black, and 255 - White) to create some form of art β any kind.
βοΈ Recommended Learning:
-
-
-
-
// Image of this post was created using these above
π Submissions: Sunday Morning, 2:00 LT
πͺ Send your submissions in the comments.
@WeeklyCoder | Week 43
Let's see how creative and artistic you can get this week!
π₯ Goal: Base the given image of the world map in just two colors (0 - Black, and 255 - White) to create some form of art β any kind.
βοΈ Recommended Learning:
-
PImage, resize ()-
strokeCap ()-
.get (x, y) // for PImage-
saveFrame ()π Submissions: Sunday Morning, 2:00 LT
πͺ Send your submissions in the comments.
@WeeklyCoder | Week 43