new calc
This commit is contained in:
1 parent
0019cc39bb
commit
4b217a83c4
7 files changed
+53
-1
No files matched your search
+1
-1
@@ -5,7 +5,7 @@
|
||||
}
|
||||
],
|
||||
"settings": {
|
||||
"workbench.colorTheme": "Default Dark Modern",
|
||||
"workbench.colorTheme": "Dark Modern",
|
||||
"editor.fontFamily": "'Fira Code', monospace",
|
||||
"editor.fontSize": 16,
|
||||
"editor.lineHeight": 1.5,
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
import mysql.connector as myc
|
||||
|
||||
class Database:
|
||||
@staticmethod
|
||||
def connect():
|
||||
return myc.connect(
|
||||
host="blackpi.ipv64.net",
|
||||
user="worker",
|
||||
password="bBHofurUJWKzPE8Z",
|
||||
database="DEV"
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
def check():
|
||||
conn = Database.connect()
|
||||
cursor = conn.cursor()
|
||||
|
||||
cursor.execute("SELECT CLIENT_IP, DATUM FROM API_LOGS ")
|
||||
|
||||
for table in cursor:
|
||||
print(table)
|
||||
|
||||
cursor.close()
|
||||
conn.close()
|
||||
|
||||
Database.check()
|
||||
@@ -0,0 +1,4 @@
|
||||
import functions.geometrie as fg
|
||||
import static.color as sc
|
||||
|
||||
sc.Red(fg.bodys.circle(60))
|
||||
Binary file not shown.
@@ -0,0 +1,12 @@
|
||||
import math
|
||||
|
||||
class bodys():
|
||||
@staticmethod
|
||||
def circle(radius):
|
||||
scope = 2 * math.pi * radius
|
||||
area = math.pi * radius*radius
|
||||
|
||||
return ({
|
||||
"scope": scope,
|
||||
"area": area
|
||||
})
|
||||
Binary file not shown.
@@ -0,0 +1,10 @@
|
||||
import colorama
|
||||
|
||||
def Red(s): print("\033[91m {}\033[00m".format(s))
|
||||
def Green(s): print("\033[92m {}\033[00m".format(s))
|
||||
def Yellow(s): print("\033[93m {}\033[00m".format(s))
|
||||
def LightPurple(s): print("\033[94m {}\033[00m".format(s))
|
||||
def Purple(s): print("\033[95m {}\033[00m".format(s))
|
||||
def Cyan(s): print("\033[96m {}\033[00m".format(s))
|
||||
def LightGray(s): print("\033[97m {}\033[00m".format(s))
|
||||
def Black(s): print("\033[90m {}\033[00m".format(s))
|
||||
Reference in new issue
Block a user