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 apt, apt.debfile | |
import pathlib, stat, shutil, urllib.request, subprocess, getpass, time, tempfile | |
import secrets, json, re | |
import IPython.utils.io | |
import ipywidgets | |
import os | |
from IPython.display import clear_output | |
class _NoteProgress(apt.progress.base.InstallProgress, apt.progress.base.AcquireProgress, apt.progress.base.OpProgress): | |
def __init__(self): |
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> | |
class Ulong { | |
private: | |
long long value; | |
public: | |
Ulong(long long x) : value(x){} | |
~Ulong(){} | |
friend bool operator ==(const Ulong x1, const Ulong x2){ | |
return x1.value == x2.value; | |
} |
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 <windows.h> | |
#include <stdio.h> | |
#pragma comment(lib, "WS2_32") | |
#include <iphlpapi.h> | |
#pragma comment(lib, "iphlpapi") | |
#define IP_LOCALHOST 0x0100007F | |
void print_ip(DWORD nAddr) | |
{ |