Based on: Merchandise Store hands-on tutorial by Anerud
A complete, hands-on study guide built from a beginner-friendly Spring Boot tutorial. By the end you'll understand why, how, and what Spring Boot is — and you'll have built a real REST API backend that powers an influencer's merchandise store, the same way companies like Walmart, Netflix, Amazon, and Google use Spring Boot in production.
source venv/bin/activate
pip uninstall
pip list
pip install -e .
Just paste it into the browser console, and it will count contributions for you.
const currentYear = String(new Date().getFullYear());
const targetElement = document.querySelector(".col-12.calendar-block.gl-my-3");
if (targetElement) {
const userContribElements = Array.from(document.querySelectorAll(".user-contrib-cell"));
const totalContribution = userContribElements.reduce((acc, el) => {
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def rgba_to_hex(rgba_color): | |
| # Convert the RGBA color value to a 32-bit integer | |
| hex_value = (int(rgba_color[3] * 255) << 24) | (rgba_color[0] << 16) | (rgba_color[1] << 8) | rgba_color[2] | |
| # Convert the 32-bit integer to a hexadecimal string | |
| hex_string = hex(hex_value) | |
| # Return the result | |
| return hex_string | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| data = [ | |
| { | |
| id: 1, | |
| name: null, | |
| price: 1, | |
| }, | |
| { | |
| id: "2", | |
| name: "Nike", | |
| price: "", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| minimumQuantity = [0, 11, 21, 31, 41, 51, 61, 71, 81, 91] | |
| maximumQuantity = [4, 20, 30, 40, 50, 60, 70, 80, 90, 100]; | |
| // check number in minimumQuantity and maximumQuantity in range | |
| const checkNumber = (number) => { | |
| for (let i = 0; i < minimumQuantity.length; i++) { | |
| if(number >= minimumQuantity[i] && number <= maximumQuantity[i]){ | |
| return false; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <input type=date step=7 min=2014-09-08> - Monday only | |
| <input type=time min=9:00 max=17:00 step=900> - 15m increments | |
| <input type=week step=2 min=2014-W30> | |
NewerOlder