Skip to content

Instantly share code, notes, and snippets.

@luigidon
luigidon / nginx.conf
Created April 10, 2019 11:57 — forked from Stanback/nginx.conf
Example Nginx configuration for adding cross-origin resource sharing (CORS) support to reverse proxied APIs
#
# CORS header support
#
# One way to use this is by placing it into a file called "cors_support"
# under your Nginx configuration directory and placing the following
# statement inside your **location** block(s):
#
# include cors_support;
#
# As of Nginx 1.7.5, add_header supports an "always" parameter which
string = ""
string = raw_input("Vpisi poljuben stavek!")
print(string.lower())
izbrano_stevilo = 0
izbrano_stevilo = int(raw_input("Vnesi stevilo od 1 do 100!"))
for x in range(1,izbrano_stevilo+1):
if ((x % 3) == 0) and ((x % 5) == 0):
print("fizzbuzz")
elif (x % 5) == 0 :
print("buzz")
km = 0
mil = 0
choice = "da"
print("Pozdravljen uporabnik! Veseli nas, da ste se odlocili za nas program s pomocjo katerega boste lahko pretvorili enote.")
while choice == "da":
km = int(raw_input("Vpisite stevilo kilometrov!"))
mil = km * 0.621371
print("Odgovor je: " + str(km) + "km" + " je " + str(mil) + "milj")
print("odgovor je: %skm je %smilj" % (str(km), str(mil)))
izbrano_stevilo = "23"
vpisano_stevilo = raw_input("Kaksno stevilo menis, da skrivam?")
if vpisano_stevilo == izbrano_stevilo:
print("Cestitam, uganil si stevilo. To stevilo je:" + izbrano_stevilo)
elif vpisano_stevilo < izbrano_stevilo:
print("Vpisal si premajhno stevilo")
elif vpisano_stevilo > izbrano_stevilo:
print("Vpisal si preveliko stevilo")
<!DOCTYPE html>
<html>
<head>
<title>Matjaž Gerčar | Fakebook</title>
<meta charset="utf-8">
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css?family=Baloo+Paaji" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Raleway" rel="stylesheet">
</head>
<body>
@luigidon
luigidon / smartninja.html
Created August 22, 2016 16:16
SmartNinja First HTML
<!DOCTYPE html>
<html lang="si">
<head>
<meta charset="UTF-8">
<meta name="author" content="Matjaž Gerčar"
<title>Moja žblj spletna stran</title>
</head>
<body>
Moje ime je <strong>Matjaž</strong><br>
<img src="zur_30let.jpg" width="200px" /> <br >