Skip to content

Instantly share code, notes, and snippets.

View Kotaro666-dev's full-sized avatar
🏠
Working from home

Kotaro Kamashima Kotaro666-dev

🏠
Working from home
View GitHub Profile
<link rel="stylesheet" href="../Practice/style.css" />
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="https://kotaro666-dev.github.io/portfolio-demo/style.css"/>
int main() {
int sum = 0;
bool finished = false;
for (int i = 0; i < 10 ; i++) {
for (int j = 0; j < 10 ; j++) {
sum += i * j;
if (sum > 1000) {
int main()
{
int sum = 0;
for (int i = 0; i < 10 ; i++) {
for (int j = 0; j < 10 ; j++) {
sum += i * j;
if (sum > 1000) {
cout << i << ", " << j << endl;
fetch(api)
// Then do it down below
.then(response => {
return response.json();
})
.then(data => {
const { temperature } = data.currently;
// Formula for Celsius
let celsius = (temperature - 32) * (5 / 9);
function setBackground(temperature) {
let colorValue;
let gradient = document.getElementById("gradient");
// Variation of colours according to temperature(Farenheit)
if (temperature < 0)
colorValue =
"linear-gradient(to right top, #002863, #2a2f7b, #4e3490, #7434a1, #9c2fae)";
else if (temperature >= 1 && temperature < 10)
colorValue =
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>