Skip to content

Instantly share code, notes, and snippets.

from multiprocessing import Process
import os
import time
import sys
def f_sleep():
time.sleep(1)
if __name__ == '__main__':
import datetime
starttime = datetime.datetime.now()
# Poskusimo predvidevati razino insulina na temelju ostalih parametrov
import pandas
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LinearRegression, LogisticRegression
from tensorflow.keras import layers
from tensorflow import keras
import tensorflow
# Prvi del, kje uporabljamo linearno regresijo z standardnimi podatki in jo testiramo na standardnih podatkih in optimiziranih podatkih
# Potem imamo inteligentni algoritem z optimiziranimi, katerega testiramo z standardnimi in optimiziraimi podatki
<html>
<head>
<title>
Moja stranica
</title>
<meta charset="UTF-8">
</head>
<body>
<h1>Naslov</h1>
<?php
// ConsoleApplication1.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <string>;
using namespace std;
int main()
{
int prvi_broj = 0;
@Zemaaan
Zemaaan / main.cpp
Created May 2, 2018 11:13
Programiranje vjezbe 2.5.2018 - 4. zadatak
// ConsoleApplication1.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <string>
using namespace std;
void ispis_duzega_imena_x_puta(string ime1, string ime2) {
if (ime1.length() < ime2.length()) {
cout << "-------------------------" << endl;
@Zemaaan
Zemaaan / main.cpp
Created May 2, 2018 10:49
Programiranje vjezbe 2.5.2018 - 3. zadatak
// ConsoleApplication1.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <string>
using namespace std;
bool sadrzi_slovo(string rijec, char slovo) {
for (int pozicija = 0; pozicija < rijec.length(); pozicija++) {
if (rijec[pozicija] == slovo) {
@Zemaaan
Zemaaan / main.cpp
Created May 2, 2018 10:37
Programiranje vjezbe 2.5.2018 - 2. zadatak
// ConsoleApplication1.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <string>
using namespace std;
void usporedba_duzina(string ime1, string ime2) {
if (ime1.length() > ime2.length()) { cout << "Prvo ime je duze od drugog." << endl; }
else if (ime2.length() > ime1.length()) { cout << "Drugo ime je duze od prvog." << endl ; }
@Zemaaan
Zemaaan / main.cpp
Last active May 2, 2018 10:38
Programiranje vjezbe 2.5.2018 - 1. zadatak
// ConsoleApplication1.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <string>
using namespace std;
// funkcija koja ime onoliko puta koliki je broj slova.
//void ispis_imena(string ime) {
// for (int pozicija = 0; pozicija < ime.length(); pozicija++)
// ConsoleApplication1.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <string>;
using namespace std;
int main()
{
#include "stdafx.h"
#include <iostream>
#include <string>;
using namespace std;
int main()
{
string rijec;
int brojac_a = 0;
int brojac_b = 0;