Skip to content

Instantly share code, notes, and snippets.

View etcetra7n's full-sized avatar

John Anchery etcetra7n

View GitHub Profile

ccon.ps1

ccon.ps1 is windows powershell script that will copy a file to clipboard and show a windows toast notification

For this to work you need wintoast.exe in your PATH. I personally got wintoast.exe from Git installation directory

@etcetra7n
etcetra7n / AddPath-Menu.reg
Last active April 22, 2025 13:33
Windows environment PATH variable right click automation
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\AddPath]
@="Add to PATH"
"Extended"=""
"Icon"="F:\\icons\\AddPath.ico"
[HKEY_CLASSES_ROOT\Directory\Background\shell\AddPath\command]
@="powershell -File C:\\cmdhost\\AddPath.ps1 -arg1 \"%1\""
@etcetra7n
etcetra7n / en-fr-translator.ipynb
Last active June 24, 2024 16:02
Implementation of the original transformer model described by Vaswani et al for English to German translation
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@etcetra7n
etcetra7n / description.md
Last active May 2, 2021 11:56
Prime Number Generator in Python

Prime Number Generator in python

Use the prime_in(start,end) function in the prime_generator.py file to generate prime numbers in python

  • start -> starting value as integer
  • end -> ending value as integer

The function returns a list of prime numbers between start and end, where start might itself be included if it is a prime number, but end shall never be included

The sqrt and floor functions from the math module are required for the prime generator function, so import that one with the following code