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
int nX = 0; | |
int nY = 0; | |
float aY = 0; | |
int aX = 15; | |
float aV = 0; | |
float aA = 0.05; | |
int p = 0; | |
boolean pCount = true; | |
long t = 0; | |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<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>Kalkulator</title> | |
</head> | |
<body> | |
<input id="display" type="text"></input> |
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
double ocitajTlak() { | |
char status; | |
/* | |
* definiramo varijable: | |
* temp - temperatura zraka | |
* Tlak - tlak zraka | |
* tlak0 - tlak na povrsini mora | |
* nadVisina - nadmorska visina | |
*/ | |
double temp, Tlak, tlak0, nadVisina; |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<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>Prijestupna Godina</title> | |
</head> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<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>Fizz Buzz</title> | |
</head> | |
<body> | |
<p id="rjesenje"></p> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<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>Sladoled</title> | |
</head> |
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
let boje = ["red", "blue", "green", "yellow"]; | |
let uzorakIgre = []; | |
let uzorakIgrac = []; | |
let igraAktivna = false; | |
let nivo = 0; | |
$(document).keypress(function(){ | |
if(!igraAktivna){ //isto kao igraAktivna == 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
#include "WS2812-SOLDERED.h" | |
WS2812 pixels(1, LEDWS_BUILTIN); | |
void setup() { | |
pixels.begin(); | |
} | |
void loop() { | |
pixels.setPixelColor(0, pixels.Color(120, 240, 220)); |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Bootstrap demo</title> | |
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous"> | |
</head> | |
<body> | |
<header> |
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
// takes an angle in degrees and returns a vector in the form of a list [x, y] | |
// the elements [x, y] of this direction vector can then be multiplied by a | |
// certain speed (in pixels per frame) to move an entity on the screen | |
angleToVector = function(angle) | |
return [cosd(angle), sind(angle)] | |
end | |
// discover the name of the sprite portion at an (x, y) position in the world | |
// NOTE: the draw width/height is not the width of the map, but how width/high |
OlderNewer