diff --git a/content/posts/PyAutoGUI for simplifying anki routine.md b/content/posts/PyAutoGUI for simplifying anki routine.md index 5d5bec8..91e85c1 100644 --- a/content/posts/PyAutoGUI for simplifying anki routine.md +++ b/content/posts/PyAutoGUI for simplifying anki routine.md @@ -7,8 +7,7 @@ date: 2021-01-21T10:26:19+03:00 I had been adding some cards to Anki. It was lowercase word and word with stress in russian. like *торты тОрты.* -I'm lazy and i wrote two simple scripts. All what i have to do is input words with stress into a file. - +I'm lazy and i wrote two simple scripts. All what i have to do is input words with stress into a file. First script for creating file with list of sequence of word with stress and lowercase word ```python @@ -19,10 +18,9 @@ for ind, line in enumerate(lines): print(line.lower(), " ", line) ``` -After, i just pushed output to file and opened it it Emacs. - -Second script automatizing adding cards to A**nki**. +After, i just pushed output to file and opened it it Emacs. +Second script automatizing adding cards to A**nki**. I split my window by **Anki** "add card" window and **Emacs**. As i use `evil` mode in Emacs, script looks like that: ```python @@ -47,6 +45,6 @@ while(True): pyautogui.press("space") # pressing submit button ``` -`while true` was my mistake. I launched script in terminal, with `sleep` 3 seconds before. -But i couldn't shut script down without any strange effect when i opening not only 2 windows in my Window Manager. -Some strange things happen before I cached terminal and pressed `Ctrl+C` +`while(true)` was my mistake. I launched script in terminal, with `sleep` 3 seconds before. +But i couldn't shut script down without any strange effect when i opening not only 2 windows in my Window Manager. +Some strange things happen before I cached terminal and pressed `Ctrl+C` diff --git a/public/categories/index.html b/public/categories/index.html index 325e6b8..8058673 100644 --- a/public/categories/index.html +++ b/public/categories/index.html @@ -1,93 +1,25 @@ - - -
- - - -+Categories - - - ░█░█░█▀█░█▀▄░█░█░▀█▀░█░█░░░░█░█░█░█░▀▀█ ░█▀█░█░█░█▀▄░█▀█░░█░░█▀▄░░░░▄▀▄░░█░░▄▀░ -░▀░▀░▀▀▀░▀░▀░▀░▀░▀▀▀░▀░▀░▀░░▀░▀░░▀░░▀▀▀- O. George’s site - -- - - - - --- - - -Categories
- -- -1 of 0 - -- -
©2021 Horhik.xyz
\ No newline at end of file diff --git a/public/categories/index.xml b/public/categories/index.xml index d1dc774..fd0e799 100644 --- a/public/categories/index.xml +++ b/public/categories/index.xml @@ -1,10 +1 @@ - -+Horhik.xyz - - - ░█░█░█▀█░█▀▄░█░█░▀█▀░█░█░░░░█░█░█░█░▀▀█ ░█▀█░█░█░█▀▄░█▀█░░█░░█▀▄░░░░▄▀▄░░█░░▄▀░ -░▀░▀░▀▀▀░▀░▀░▀░▀░▀▀▀░▀░▀░▀░░▀░▀░░▀░░▀▀▀- O. George’s site - -- - - - - -
©2021 Horhik.xyz
\ No newline at end of file diff --git a/public/index.xml b/public/index.xml index ee8b180..3074636 100644 --- a/public/index.xml +++ b/public/index.xml @@ -1,10 +1 @@ - -+░█░█░█▀█░█▀▄░█░█░▀█▀░█░█░░░░█░█░█░█░▀▀█ +░█▀█░█░█░█▀▄░█▀█░░█░░█▀▄░░░░▄▀▄░░█░░▄▀░ +░▀░▀░▀▀▀░▀░▀░▀░▀░▀▀▀░▀░▀░▀░░▀░▀░░▀░░▀▀▀O. George’s site
+░█░█░█▀█░█▀▄░█░█░▀█▀░█░█░░░░█░█░█░█░▀▀█ +░█▀█░█░█░█▀▄░█▀█░░█░░█▀▄░░░░▄▀▄░░█░░▄▀░ +░▀░▀░▀▀▀░▀░▀░▀░▀░▀▀▀░▀░▀░▀░░▀░▀░░▀░░▀▀▀O. George’s site
I had been adding some cards to Anki. +It was lowercase word and word with stress in russian. like торты тОрты.
I’m lazy and i wrote two simple scripts. All what i have to do is input words with stress into a file.
First script for creating file with list of sequence of word with stress and lowercase word
|
|
After, i just pushed output to file and opened it it Emacs.
Second script automatizing adding cards to Anki.
I split my window by Anki “add card” window and Emacs. As i use evil
mode in Emacs, script looks like that:
|
|
while true
was my mistake. I launched script in terminal, with sleep
3 seconds before.
+But i couldn’t shut script down without any strange effect when i opening not only 2 windows in my Window Manager.
+Some strange things happen before I cached terminal and pressed Ctrl+C
+░█░█░█▀█░█▀▄░█░█░▀█▀░█░█░░░░█░█░█░█░▀▀█ +░█▀█░█░█░█▀▄░█▀█░░█░░█▀▄░░░░▄▀▄░░█░░▄▀░ +░▀░▀░▀▀▀░▀░▀░▀░▀░▀▀▀░▀░▀░▀░░▀░▀░░▀░░▀▀▀O. George’s site
+Tags - - - ░█░█░█▀█░█▀▄░█░█░▀█▀░█░█░░░░█░█░█░█░▀▀█ ░█▀█░█░█░█▀▄░█▀█░░█░░█▀▄░░░░▄▀▄░░█░░▄▀░ -░▀░▀░▀▀▀░▀░▀░▀░▀░▀▀▀░▀░▀░▀░░▀░▀░░▀░░▀▀▀- O. George’s site - -- - - - - --- - - -Tags
- -- -1 of 0 - -- -
©2021 Horhik.xyz
\ No newline at end of file diff --git a/public/tags/index.xml b/public/tags/index.xml index 823572f..64e97b4 100644 --- a/public/tags/index.xml +++ b/public/tags/index.xml @@ -1,10 +1 @@ - -