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
import requests | |
import bs4 | |
from bs4 import BeautifulSoup | |
import ctypes | |
"""" | |
Goal: | |
To have a single window, where I just type in a word I want to translate (english and german), | |
then hit enter and directly see the most common translations for this word. | |
User-Process: |
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
import java.util.concurrent.Semaphore; | |
// Das ist die Version mit der Semaphore | |
public class Account { | |
//TODO: Benutzung der Sempahore ist noch unsafe, also in erster Linie getBalance() | |
private double balance; | |
private final Semaphore available = new Semaphore(1,true); | |
public Account(double initialDeposit) { |