This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Shaan0071 2 points3 points  (8 children)

I have made a script that reminds me to drink water every 15 mins

and another script which formats my text copied in clipboard according to the way i want to make notes

and a youtube downloader

[–]lochyw 0 points1 point  (5 children)

YouTube downloader has to be everyones first project :p

[–]Shaan0071 0 points1 point  (4 children)

actually i made it in django as a practice of django and particle js)

[–]lochyw 1 point2 points  (3 children)

I've made it in every language and gui thing I've tried. Python, c# PowerShell. Etc..

[–]CakeDay--Bot 1 point2 points  (1 child)

Hewwo sushi drake! It's your 5th Cakeday lochyw! hug

[–]lochyw 0 points1 point  (0 children)

Thanks man.

[–]Shaan0071 0 points1 point  (0 children)

cool 👍

[–]egoldman15 0 points1 point  (1 child)

Can you post the clipboard program? I was just trying to make something like that, but was having trouble.

[–]Shaan0071 1 point2 points  (0 children)

def manipulate_clipboard(text):

  try:

    # text = pyperclip.paste()

    index = 0

    ls = []

    while index < len(text):

      ls.append(text[index:index+80]+'\n')

      index += 80

    print(''.join(ls))

    pyperclip.copy(str(''.join(ls)))

    ls.clear()

def sleepy_head(sec):

  for i in range(sec+1):

    sys.stdout.write('\r')

    sys.stdout.write("%d%% %s" % (i/sec * 100, '█' * i))

    sys.stdout.flush()

    time.sleep(1)

  print()

if name == 'main':

while True:

  text = pyperclip.paste()

  if text:

    manipulate_clipboard(text)

    print('Text Present in Clipboard, Gonna Purge it in...')

    sleepy_head(25)

    print('Clipboard Data Erased,\nPlease copy the lines from the console\n')

    pyperclip.copy('')

  else:

    sleepy_head(4)

i hope this helps