This file contains hidden or 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 argparse | |
import colorful | |
import getpass | |
import sys | |
import telnetlib | |
color_palette = { | |
'ip' : '#5888B8', | |
'fail' : '#D33F3F', | |
'success' : '#32CD32' |
This file contains hidden or 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
from subprocess import Popen, PIPE | |
import argparse | |
import colorful | |
import math | |
import re | |
FAIL_FLAG = False | |
alive_count = 0 | |
args = '' |
This file contains hidden or 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 csv | |
with open('data.csv') as csv_file: | |
read = csv.reader(csv_file, delimiter=',') | |
next(read) | |
for row in read: | |
if float(row[5]) >= 5.83526: | |
print(f'Quote: Time[{row[3]}] BidPrice[{row[5]}]') | |
if float(row[9]) >= 5.83526: | |
print(f'Quote: Time[{row[7]}] AskPrice[{row[9]}]\n') |
This file contains hidden or 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 csv | |
import random | |
with open ('rando_numero.csv', 'w', newline = '') as csvfile: | |
fw = csv.writer(csvfile, delimiter=',', quoting=csv.QUOTE_ALL) | |
for i in range(13): | |
csv_list = [] | |
for j in range(15): | |
rando_selecto = random.randint(1, 10) |
This file contains hidden or 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.time.*; | |
import java.time.format.DateTimeFormatter; | |
public class TimeTravel | |
{ | |
public static void main (String[] args) | |
{ | |
LocalDateTime ldt = LocalDateTime.now(); | |
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"); | |
String time = formatter.format(ldt); |