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" /> | |
<script src="https://www.gstatic.com/firebasejs/ui/6.0.1/firebase-ui-auth.js"></script> | |
<link | |
type="text/css" | |
rel="stylesheet" |
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
function z1(l: number[]) { | |
if (!l.length) return []; | |
return [ | |
l.reduce((a, b) => a + (b > 0 ? b : 0), 0), | |
l.reduce((a, b) => a + (b < 0 ? b : 0), 0), | |
]; | |
} | |
function z2(s: string) { | |
return [...new Set(s.split(" "))].join(" "); |
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
Ovaj evaluator nudi 100 puta jednostavniji pregled rjesenja, a baziran je na GUI izradjenom u Pythonu s Tkinterom. | |
UPUTE: | |
Download -> https://mega.nz/#!Lmp1hQ7S!UoGd0F7OVAHuPYhDHOZy7dc6n0L4Qu1_Y-EahLvKK-A | |
Prije pokretanja potrebno je instalirani Evaluator.exe staviti u mapu | |
zajedno s vlastitim .py rjesenjima i mapom 'Test' koja sadrzi testne podatke, | |
a moze se preuzeti s INFOKUP stranica zajedno sa zadacima. |
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
import tkinter as tk | |
import tkinter.messagebox as msg | |
import itertools | |
import time | |
import webbrowser | |
import threading | |
import sqlite3 | |
import smtplib | |
import os |
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
# Searching through and extracting from scraped http data | |
from bs4 import BeautifulSoup | |
# Short pause for exiting the program and animations | |
from time import sleep, time | |
# Infinite iteration over the for loop | |
from itertools import cycle | |
# Processing multiple tasks at once | |
from threading import Thread | |
# Enable colored output | |
from colorama import init |