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 tkinter | |
from tkinter import ttk | |
from tkinter import filedialog | |
from tkinter import messagebox | |
import http.client | |
import hashlib | |
import urllib.parse | |
import random | |
import json |
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 <iostream> | |
#include <memory> | |
using namespace std; | |
struct AllocationMetrics{ | |
uint32_t totalMemory = 0; | |
uint32_t totalFree = 0; | |
uint32_t getCurrentUsage() {return totalMemory - totalFree;} | |
}; |
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.Callable; | |
import java.util.concurrent.FutureTask; | |
public class FutureTest { | |
static class MyTask implements Callable<Integer> { | |
@Override | |
public Integer call() throws Exception { | |
Thread.sleep(1000); | |
throw new IllegalArgumentException("exception"); | |
} |