This file contains 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
# _*_ coding:utf-8 _*_ | |
# version 0.3.1 Red Queen system | |
from urllib import request | |
import json | |
import webbrowser | |
import forecastio | |
from time import ctime | |
import wikipedia | |
import subprocess |
This file contains 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
from urllib import request | |
from urllib.error import URLError | |
import json | |
import tkinter | |
import time | |
from PIL import ImageTk, Image | |
def queen(): | |
# god_mode_suspended = True |
This file contains 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
try: | |
import Tkinter as tkinter # for Python 2 | |
except ImportError: | |
import tkinter # for Python 3 | |
def on_click_1(): | |
print("First handler fired") | |
def on_click_2(): | |
print("Second handler fired") |
This file contains 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
// ConsoleApplication1.cpp : Defines the entry point for the console application. | |
// Treba upisati dan i mjesec rodenja | |
// i ime osobe | |
// upis se vrsi tako dugo dok se ne upise dan = 0 i mjesec = 0 | |
// edit: dodani brojac | |
#include "stdafx.h"; | |
#include <iostream>; | |
using namespace std; |
This file contains 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 "stdafx.h" | |
#include <iostream> | |
#include <string>; | |
using namespace std; | |
int main() | |
{ | |
string rijec; | |
int brojac_a = 0; | |
int brojac_b = 0; |
This file contains 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
// ConsoleApplication1.cpp : Defines the entry point for the console application. | |
// | |
#include "stdafx.h" | |
#include <iostream> | |
#include <string>; | |
using namespace std; | |
int main() | |
{ |
This file contains 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
// 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++) |
This file contains 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
// 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 ; } |
This file contains 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
// 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) { |
This file contains 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
// 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; |
OlderNewer