Skip to content

Instantly share code, notes, and snippets.

View narskidan's full-sized avatar
🦊
sh.open(you.laptop, "cool network!);

Dan narskidan

🦊
sh.open(you.laptop, "cool network!);
  • Coathemala
View GitHub Profile
@narskidan
narskidan / count_money.py
Created December 31, 2022 04:51
Script to automate the process of figuring out how long til I'm Top Rated Plus on Upwork
with open('money.txt') as money_file:
raw_lines = money_file.readlines()
total = 0
for line in raw_lines:
if '$' in line:
money = float(line.split()[-1][1:])
total += float(money)
print('Remaining money til TOP RATED PLUS: ', 10_000 - total)
@narskidan
narskidan / calculate_payment.py
Created December 17, 2022 16:36
Script to figure out how much a contract on Upwork must pay to come out to a certain real total for the freelancer
from itertools import chain, repeat
def is_floatable(num):
try:
float(num)
return True
except ValueError:
return False
# based on this glorious StackOverflow post: https://stackoverflow.com/a/56081775
@narskidan
narskidan / camel.py
Created November 20, 2022 22:51
Quick one liner I used to make a long title camel case
' '.join([i[0].upper() + i[1:] for i in s.split()])
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC3ycW/AXmNXYAN/DgBG8R9Gwjdax0Dus5Nszx539/ZEZ6a+qwhXEoR0LI1b1NCW7zhwmaNlhj0GPBIP75nURGcnjTPr/pxvS/6MViqFogRHw60PiCmIrwgE5DoAnw7qWlJoqtP2755zs//ewfnK3sajndNiVxU8yMEctmiHG+8EXipsP/5uvX5kas0gC8c91GBbcMcT23MQxzcNuk/vZHMk1KSI36rLJ63LstvzmqVxU6CHbVW4neJzXo78jk3zdpqTybC+l+A73PpJOetAf4LOWT+/hKDRJg/cTbZnAaqQdAY2ymSnaLXagnE/hPnxq9e8yPQzQWy3UvKZyrv/y13lB0RjhCpVSVws4dIem+9eHEHgyvgTVa6DfTePKJPSauLxdRwONb8WE1OMuxn/RcKMAliWkab0wIWsALIGcJYAff+T0UzmsM3s6Y92RobwrY/w1RmDyN6H1045liaePD+JnI3XTe+8awRUn/BM+Q6ZOJ8M6538DaDjxiCymIDYLk= [email protected]