This file contains 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
<!DOCTYLE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Demo for extracting info from restcountries v3.1</title> | |
<script defer src="script.js"></script> | |
</head> | |
<body style="background-color:grey"> <!-- changed the background because some nations have their flags in white --> |
This file contains 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
# -*- coding: utf-8 -*- | |
# @Author: Climax | |
# @Date: 2022-08-08 10:30:23 | |
# @Last Modified by: Climax | |
# @Last Modified time: 2022-08-08 14:20:54 | |
import sys | |
from PyQt5.QtWidgets import (QMainWindow, QApplication, QToolBar, QAction) |
This file contains 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
function timeConverter1(totalMinutes) { | |
const hours = Math.trunc(totalMinutes / 60); | |
const minutes = totalMinutes % 60; | |
return { hours, minutes }; | |
} | |
// {hours: 3, minutes: 20} | |
console.log(timeConverter1(200)); |