update article
This commit is contained in:
parent
3d95aa6260
commit
c375ea4d2b
|
@ -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`
|
||||
|
|
|
@ -1,93 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en-us">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>Categories</title>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="http://new.horhik.xyz/css/basic.css">
|
||||
|
||||
<link rel="alternate" type="application/rss+xml" href="/categories/index.xml" title="Horhik.xyz">
|
||||
</head>
|
||||
<body>
|
||||
<header class="logo--wrapper">
|
||||
<a href="http://new.horhik.xyz/"><pre class="logo toilet-logo">
|
||||
<!doctype html><html lang=en-us><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><meta http-equiv=x-ua-compatible content="IE=edge"><title>Categories</title><link rel=preconnect href=https://fonts.gstatic.com><link href="https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,400;0,500;0,700;1,300&display=swap" rel=stylesheet><link rel=stylesheet href=https://site.horhik.xyz/css/basic.css><link rel=alternate type=application/rss+xml href=/categories/index.xml title=Horhik.xyz></head><body><header class=logo--wrapper><a href=https://site.horhik.xyz/><pre class="logo toilet-logo">
|
||||
░█░█░█▀█░█▀▄░█░█░▀█▀░█░█░░░░█░█░█░█░▀▀█
|
||||
░█▀█░█░█░█▀▄░█▀█░░█░░█▀▄░░░░▄▀▄░░█░░▄▀░
|
||||
░▀░▀░▀▀▀░▀░▀░▀░▀░▀▀▀░▀░▀░▀░░▀░▀░░▀░░▀▀▀</pre></a>
|
||||
<span class="logo-quote">O. George’s site</span>
|
||||
|
||||
</header>
|
||||
|
||||
|
||||
<main>
|
||||
|
||||
<div>
|
||||
<h1>Categories</h1>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div>
|
||||
|
||||
1 of 0
|
||||
|
||||
</div>
|
||||
|
||||
</main>
|
||||
<aside>
|
||||
<div class="recent">
|
||||
<div >
|
||||
<h2 class="h1 recent-header">LATEST POSTS</h3>
|
||||
</div>
|
||||
<div>
|
||||
<ul class="recent-list">
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
|
||||
<footer>
|
||||
<ul class="contacts">
|
||||
<li><a href="https://github.com/horhik" class=" contact-link">
|
||||
<pre> oo dP dP dP
|
||||
░▀░▀░▀▀▀░▀░▀░▀░▀░▀▀▀░▀░▀░▀░░▀░▀░░▀░░▀▀▀</pre></a><span class=logo-quote>O. George’s site</span></header><main><div><h1>Categories</h1></div><div>1 of 0</div></main><aside><div class=recent><div><h2 class="h1 recent-header">LATEST POSTS</h3></div><div><ul class=recent-list><li class="recent-block recent-block--right"><a href=/posts/pyautogui-for-simplifying-anki-routine/>PyAutoGUI for simplifying anki routine</a><br><time class=recent-block__time>21.01.2021</time></li><li class="recent-block recent-block--right"><a href=/posts/second-test-post/>Second Test Post</a><br><time class=recent-block__time>03.01.2021</time></li></ul></div></div></aside><footer><ul class=contacts><li><a href=https://github.com/horhik class=contact-link><pre> oo dP dP dP
|
||||
88 88 88
|
||||
.d8888b. dP d8888P 88d888b. dP dP 88d888b.
|
||||
88' `88 88 88 88' `88 88 88 88' `88
|
||||
88. .88 88 88 88 88 88. .88 88. .88
|
||||
`8888P88 dP dP dP dP `88888P' 88Y8888'
|
||||
.88
|
||||
d8888P </pre></a></li>
|
||||
<li><a href="https://twitter.com/HORHl" class=" contact-link">
|
||||
<pre> dP oo dP dP
|
||||
d8888P </pre></a></li><li><a href=https://twitter.com/HORHl class=contact-link><pre> dP oo dP dP
|
||||
88 88 88
|
||||
d8888P dP dP dP dP d8888P d8888P .d8888b. 88d888b.
|
||||
88 88 88 88 88 88 88 88ooood8 88' `88
|
||||
88 88.88b.88' 88 88 88 88. ... 88
|
||||
dP 8888P Y8P dP dP dP `88888P' dP
|
||||
|
||||
</pre></a></li>
|
||||
<li><a href="mailto:horhik@tuta.io" class=" contact-link">
|
||||
<pre> oo dP
|
||||
</pre></a></li><li><a href=mailto:horhik@tuta.io class=contact-link><pre> oo dP
|
||||
88
|
||||
88d8b.d8b. .d8888b. dP 88
|
||||
88'`88'`88 88' `88 88 88
|
||||
88 88 88 88. .88 88 88
|
||||
dP dP dP `88888P8 dP dP
|
||||
|
||||
</pre></a></li>
|
||||
</ul>
|
||||
<p class="copyright">©2021 <a href="http://new.horhik.xyz/">Horhik.xyz</a></p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
</pre></a></li></ul><p class=copyright>©2021 <a href=https://site.horhik.xyz/>Horhik.xyz</a></p></footer></body></html>
|
|
@ -1,10 +1 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>Categories on Horhik.xyz</title>
|
||||
<link>http://new.horhik.xyz/categories/</link>
|
||||
<description>Recent content in Categories on Horhik.xyz</description>
|
||||
<generator>Hugo -- gohugo.io</generator>
|
||||
<language>en-us</language><atom:link href="http://new.horhik.xyz/categories/index.xml" rel="self" type="application/rss+xml" />
|
||||
</channel>
|
||||
</rss>
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Categories on Horhik.xyz</title><link>https://site.horhik.xyz/categories/</link><description>Recent content in Categories on Horhik.xyz</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><atom:link href="https://site.horhik.xyz/categories/index.xml" rel="self" type="application/rss+xml"/></channel></rss>
|
|
@ -1 +1 @@
|
|||
<!DOCTYPE html><html><head><title>http://new.horhik.xyz/categories/</title><link rel="canonical" href="http://new.horhik.xyz/categories/"/><meta name="robots" content="noindex"><meta charset="utf-8" /><meta http-equiv="refresh" content="0; url=http://new.horhik.xyz/categories/" /></head></html>
|
||||
<!doctype html><html><head><title>https://site.horhik.xyz/categories/</title><link rel=canonical href=https://site.horhik.xyz/categories/><meta name=robots content="noindex"><meta charset=utf-8><meta http-equiv=refresh content="0; url=https://site.horhik.xyz/categories/"></head></html>
|
|
@ -54,6 +54,9 @@ a, .link {
|
|||
font-family: 'Mononoki Bold', 'Fira Code SemiBold';
|
||||
font-size: 2em; }
|
||||
|
||||
code {
|
||||
font-family: "Mononoki", monospace; }
|
||||
|
||||
.logo--wrapper {
|
||||
display: grid;
|
||||
font-family: Mononoki, 'Fira Code',monospace, Ubuntu; }
|
||||
|
@ -289,3 +292,23 @@ a, .link {
|
|||
.blog-info__item--reading-time::before {
|
||||
content: url("../../svg/stopwatch.svg");
|
||||
margin-right: 10px; }
|
||||
|
||||
.blog-header {
|
||||
color: var(--green);
|
||||
font-family: "Mononoki", monospace;
|
||||
font-size: 2em;
|
||||
display: inline-flex;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
margin: 0 auto; }
|
||||
|
||||
.blog-post {
|
||||
padding: 0px 30px;
|
||||
font-size: 22px;
|
||||
font-family: Ubuntu; }
|
||||
.blog-post time {
|
||||
font-family: "Mononoki", monospace;
|
||||
display: flex;
|
||||
align-content: center;
|
||||
justify-content: center;
|
||||
font-size: 0.9em; }
|
||||
|
|
|
@ -1,81 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en-us">
|
||||
<head>
|
||||
<meta name="generator" content="Hugo 0.79.1" />
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>Horhik.xyz</title>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="http://new.horhik.xyz/css/basic.css">
|
||||
|
||||
<link rel="alternate" type="application/rss+xml" href="/index.xml" title="Horhik.xyz">
|
||||
</head>
|
||||
<body>
|
||||
<header class="logo--wrapper">
|
||||
<a href="http://new.horhik.xyz/"><pre class="logo toilet-logo">
|
||||
<!doctype html><html lang=en-us><head><meta name=generator content="Hugo 0.80.0"><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><meta http-equiv=x-ua-compatible content="IE=edge"><title>Horhik.xyz</title><link rel=preconnect href=https://fonts.gstatic.com><link href="https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,400;0,500;0,700;1,300&display=swap" rel=stylesheet><link rel=stylesheet href=https://site.horhik.xyz/css/basic.css><link rel=alternate type=application/rss+xml href=/index.xml title=Horhik.xyz></head><body><header class=logo--wrapper><a href=https://site.horhik.xyz/><pre class="logo toilet-logo">
|
||||
░█░█░█▀█░█▀▄░█░█░▀█▀░█░█░░░░█░█░█░█░▀▀█
|
||||
░█▀█░█░█░█▀▄░█▀█░░█░░█▀▄░░░░▄▀▄░░█░░▄▀░
|
||||
░▀░▀░▀▀▀░▀░▀░▀░▀░▀▀▀░▀░▀░▀░░▀░▀░░▀░░▀▀▀</pre></a>
|
||||
<span class="logo-quote">O. George’s site</span>
|
||||
|
||||
</header>
|
||||
|
||||
|
||||
<main>
|
||||
|
||||
<aside>
|
||||
<div class="recent">
|
||||
<div >
|
||||
<h2 class="h1 recent-header">LATEST POSTS</h3>
|
||||
</div>
|
||||
<div>
|
||||
<ul class="recent-list">
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<ul class="contacts">
|
||||
<li><a href="https://github.com/horhik" class=" contact-link">
|
||||
<pre> oo dP dP dP
|
||||
░▀░▀░▀▀▀░▀░▀░▀░▀░▀▀▀░▀░▀░▀░░▀░▀░░▀░░▀▀▀</pre></a><span class=logo-quote>O. George’s site</span></header><main><aside><div class=recent><div><h2 class="h1 recent-header">LATEST POSTS</h3></div><div><ul class=recent-list><li class="recent-block recent-block--right"><a href=/posts/pyautogui-for-simplifying-anki-routine/>PyAutoGUI for simplifying anki routine</a><br><time class=recent-block__time>21.01.2021</time></li><li class="recent-block recent-block--right"><a href=/posts/second-test-post/>Second Test Post</a><br><time class=recent-block__time>03.01.2021</time></li></ul></div></div></aside></main><footer><ul class=contacts><li><a href=https://github.com/horhik class=contact-link><pre> oo dP dP dP
|
||||
88 88 88
|
||||
.d8888b. dP d8888P 88d888b. dP dP 88d888b.
|
||||
88' `88 88 88 88' `88 88 88 88' `88
|
||||
88. .88 88 88 88 88 88. .88 88. .88
|
||||
`8888P88 dP dP dP dP `88888P' 88Y8888'
|
||||
.88
|
||||
d8888P </pre></a></li>
|
||||
<li><a href="https://twitter.com/HORHl" class=" contact-link">
|
||||
<pre> dP oo dP dP
|
||||
d8888P </pre></a></li><li><a href=https://twitter.com/HORHl class=contact-link><pre> dP oo dP dP
|
||||
88 88 88
|
||||
d8888P dP dP dP dP d8888P d8888P .d8888b. 88d888b.
|
||||
88 88 88 88 88 88 88 88ooood8 88' `88
|
||||
88 88.88b.88' 88 88 88 88. ... 88
|
||||
dP 8888P Y8P dP dP dP `88888P' dP
|
||||
|
||||
</pre></a></li>
|
||||
<li><a href="mailto:horhik@tuta.io" class=" contact-link">
|
||||
<pre> oo dP
|
||||
</pre></a></li><li><a href=mailto:horhik@tuta.io class=contact-link><pre> oo dP
|
||||
88
|
||||
88d8b.d8b. .d8888b. dP 88
|
||||
88'`88'`88 88' `88 88 88
|
||||
88 88 88 88. .88 88 88
|
||||
dP dP dP `88888P8 dP dP
|
||||
|
||||
</pre></a></li>
|
||||
</ul>
|
||||
<p class="copyright">©2021 <a href="http://new.horhik.xyz/">Horhik.xyz</a></p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
</pre></a></li></ul><p class=copyright>©2021 <a href=https://site.horhik.xyz/>Horhik.xyz</a></p></footer></body></html>
|
|
@ -1,10 +1 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>Horhik.xyz</title>
|
||||
<link>http://new.horhik.xyz/</link>
|
||||
<description>Recent content on Horhik.xyz</description>
|
||||
<generator>Hugo -- gohugo.io</generator>
|
||||
<language>en-us</language><atom:link href="http://new.horhik.xyz/index.xml" rel="self" type="application/rss+xml" />
|
||||
</channel>
|
||||
</rss>
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Horhik.xyz</title><link>https://site.horhik.xyz/</link><description>Recent content on Horhik.xyz</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Thu, 21 Jan 2021 10:26:19 +0300</lastBuildDate><atom:link href="https://site.horhik.xyz/index.xml" rel="self" type="application/rss+xml"/><item><title>PyAutoGUI for simplifying anki routine</title><link>https://site.horhik.xyz/posts/pyautogui-for-simplifying-anki-routine/</link><pubDate>Thu, 21 Jan 2021 10:26:19 +0300</pubDate><guid>https://site.horhik.xyz/posts/pyautogui-for-simplifying-anki-routine/</guid><description>I had been adding some cards to Anki. It was lowercase word and word with stress in russian.</description></item><item><title>Second Test Post</title><link>https://site.horhik.xyz/posts/second-test-post/</link><pubDate>Sun, 03 Jan 2021 01:24:34 +0200</pubDate><guid>https://site.horhik.xyz/posts/second-test-post/</guid><description>heeeya</description></item></channel></rss>
|
|
@ -1 +1 @@
|
|||
<!DOCTYPE html><html><head><title>http://new.horhik.xyz/</title><link rel="canonical" href="http://new.horhik.xyz/"/><meta name="robots" content="noindex"><meta charset="utf-8" /><meta http-equiv="refresh" content="0; url=http://new.horhik.xyz/" /></head></html>
|
||||
<!doctype html><html><head><title>https://site.horhik.xyz/</title><link rel=canonical href=https://site.horhik.xyz/><meta name=robots content="noindex"><meta charset=utf-8><meta http-equiv=refresh content="0; url=https://site.horhik.xyz/"></head></html>
|
25
public/posts/index.html
Normal file
25
public/posts/index.html
Normal file
|
@ -0,0 +1,25 @@
|
|||
<!doctype html><html lang=en-us><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><meta http-equiv=x-ua-compatible content="IE=edge"><title>Posts</title><link rel=preconnect href=https://fonts.gstatic.com><link href="https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,400;0,500;0,700;1,300&display=swap" rel=stylesheet><link rel=stylesheet href=https://site.horhik.xyz/css/basic.css><link rel=alternate type=application/rss+xml href=/posts/index.xml title=Horhik.xyz></head><body><header class=logo--wrapper><a href=https://site.horhik.xyz/><pre class="logo toilet-logo">
|
||||
░█░█░█▀█░█▀▄░█░█░▀█▀░█░█░░░░█░█░█░█░▀▀█
|
||||
░█▀█░█░█░█▀▄░█▀█░░█░░█▀▄░░░░▄▀▄░░█░░▄▀░
|
||||
░▀░▀░▀▀▀░▀░▀░▀░▀░▀▀▀░▀░▀░▀░░▀░▀░░▀░░▀▀▀</pre></a><span class=logo-quote>O. George’s site</span></header><main><div><h1>Posts</h1></div><article class="recent-block recent-block--right"><div><a class=article__link href=https://site.horhik.xyz/posts/pyautogui-for-simplifying-anki-routine/>PyAutoGUI for simplifying anki routine</a></div><time class=recent-block__time>21.01.2021 10:26</time></article><article class="recent-block recent-block--right"><div><a class=article__link href=https://site.horhik.xyz/posts/second-test-post/>Second Test Post</a></div><time class=recent-block__time>03.01.2021 01:24</time></article><div>1 of 1</div></main><aside><div class=recent><div><h2 class="h1 recent-header">LATEST POSTS</h3></div><div><ul class=recent-list><li class="recent-block recent-block--right"><a href=/posts/pyautogui-for-simplifying-anki-routine/>PyAutoGUI for simplifying anki routine</a><br><time class=recent-block__time>21.01.2021</time></li><li class="recent-block recent-block--right"><a href=/posts/second-test-post/>Second Test Post</a><br><time class=recent-block__time>03.01.2021</time></li></ul></div></div></aside><footer><ul class=contacts><li><a href=https://github.com/horhik class=contact-link><pre> oo dP dP dP
|
||||
88 88 88
|
||||
.d8888b. dP d8888P 88d888b. dP dP 88d888b.
|
||||
88' `88 88 88 88' `88 88 88 88' `88
|
||||
88. .88 88 88 88 88 88. .88 88. .88
|
||||
`8888P88 dP dP dP dP `88888P' 88Y8888'
|
||||
.88
|
||||
d8888P </pre></a></li><li><a href=https://twitter.com/HORHl class=contact-link><pre> dP oo dP dP
|
||||
88 88 88
|
||||
d8888P dP dP dP dP d8888P d8888P .d8888b. 88d888b.
|
||||
88 88 88 88 88 88 88 88ooood8 88' `88
|
||||
88 88.88b.88' 88 88 88 88. ... 88
|
||||
dP 8888P Y8P dP dP dP `88888P' dP
|
||||
|
||||
</pre></a></li><li><a href=mailto:horhik@tuta.io class=contact-link><pre> oo dP
|
||||
88
|
||||
88d8b.d8b. .d8888b. dP 88
|
||||
88'`88'`88 88' `88 88 88
|
||||
88 88 88 88. .88 88 88
|
||||
dP dP dP `88888P8 dP dP
|
||||
|
||||
</pre></a></li></ul><p class=copyright>©2021 <a href=https://site.horhik.xyz/>Horhik.xyz</a></p></footer></body></html>
|
1
public/posts/index.xml
Normal file
1
public/posts/index.xml
Normal file
|
@ -0,0 +1 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Posts on Horhik.xyz</title><link>https://site.horhik.xyz/posts/</link><description>Recent content in Posts on Horhik.xyz</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Thu, 21 Jan 2021 10:26:19 +0300</lastBuildDate><atom:link href="https://site.horhik.xyz/posts/index.xml" rel="self" type="application/rss+xml"/><item><title>PyAutoGUI for simplifying anki routine</title><link>https://site.horhik.xyz/posts/pyautogui-for-simplifying-anki-routine/</link><pubDate>Thu, 21 Jan 2021 10:26:19 +0300</pubDate><guid>https://site.horhik.xyz/posts/pyautogui-for-simplifying-anki-routine/</guid><description>I had been adding some cards to Anki. It was lowercase word and word with stress in russian.</description></item><item><title>Second Test Post</title><link>https://site.horhik.xyz/posts/second-test-post/</link><pubDate>Sun, 03 Jan 2021 01:24:34 +0200</pubDate><guid>https://site.horhik.xyz/posts/second-test-post/</guid><description>heeeya</description></item></channel></rss>
|
1
public/posts/page/1/index.html
Normal file
1
public/posts/page/1/index.html
Normal file
|
@ -0,0 +1 @@
|
|||
<!doctype html><html><head><title>https://site.horhik.xyz/posts/</title><link rel=canonical href=https://site.horhik.xyz/posts/><meta name=robots content="noindex"><meta charset=utf-8><meta http-equiv=refresh content="0; url=https://site.horhik.xyz/posts/"></head></html>
|
|
@ -0,0 +1,76 @@
|
|||
<!doctype html><html lang=en-us><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><meta http-equiv=x-ua-compatible content="IE=edge"><title>PyAutoGUI for simplifying anki routine</title><link rel=preconnect href=https://fonts.gstatic.com><link href="https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,400;0,500;0,700;1,300&display=swap" rel=stylesheet><link rel=stylesheet href=https://site.horhik.xyz/css/basic.css></head><body><header class=logo--wrapper><a href=https://site.horhik.xyz/><pre class="logo toilet-logo">
|
||||
░█░█░█▀█░█▀▄░█░█░▀█▀░█░█░░░░█░█░█░█░▀▀█
|
||||
░█▀█░█░█░█▀▄░█▀█░░█░░█▀▄░░░░▄▀▄░░█░░▄▀░
|
||||
░▀░▀░▀▀▀░▀░▀░▀░▀░▀▀▀░▀░▀░▀░░▀░▀░░▀░░▀▀▀</pre></a><span class=logo-quote>O. George’s site</span></header><main><article class=blog-post><h1 class=blog-header>PyAutoGUI for simplifying anki routine</h1><sub><small><time>21.01.2021 10:26</time></small></sub><div><p>I had been adding some cards to Anki.
|
||||
It was lowercase word and word with stress in russian. like <em>торты тОрты.</em></p><p>I’m lazy and i wrote two simple scripts. All what i have to do is input words with stress into a file.</p><p>First script for creating file with list of sequence of word with stress and lowercase word</p><div class=highlight><div style=color:#f8f8f2;background-color:#282a36;-moz-tab-size:2;-o-tab-size:2;tab-size:2><table style=border-spacing:0;padding:0;margin:0;border:0;width:auto;overflow:auto;display:block><tr><td style=vertical-align:top;padding:0;margin:0;border:0><pre style=color:#f8f8f2;background-color:#282a36;-moz-tab-size:2;-o-tab-size:2;tab-size:2><code><span style="margin-right:.4em;padding:0 .4em;color:#7f7f7f">1
|
||||
</span><span style="margin-right:.4em;padding:0 .4em;color:#7f7f7f">2
|
||||
</span><span style="margin-right:.4em;padding:0 .4em;color:#7f7f7f">3
|
||||
</span><span style="margin-right:.4em;padding:0 .4em;color:#7f7f7f">4
|
||||
</span><span style="margin-right:.4em;padding:0 .4em;color:#7f7f7f">5
|
||||
</span></code></pre></td><td style=vertical-align:top;padding:0;margin:0;border:0;width:100%><pre style=color:#f8f8f2;background-color:#282a36;-moz-tab-size:2;-o-tab-size:2;tab-size:2><code class=language-python data-lang=python><span style=color:#ff79c6>import</span> os
|
||||
f <span style=color:#ff79c6>=</span> <span style=color:#8be9fd;font-style:italic>open</span>(<span style=color:#f1fa8c>"/home/horhik/text.txt"</span>, <span style=color:#f1fa8c>'r+'</span>)
|
||||
lines <span style=color:#ff79c6>=</span> f<span style=color:#ff79c6>.</span>readlines()
|
||||
<span style=color:#ff79c6>for</span> ind, line <span style=color:#ff79c6>in</span> <span style=color:#8be9fd;font-style:italic>enumerate</span>(lines):
|
||||
<span style=color:#ff79c6>print</span>(line<span style=color:#ff79c6>.</span>lower(), <span style=color:#f1fa8c>" "</span>, line)
|
||||
</code></pre></td></tr></table></div></div><p>After, i just pushed output to file and opened it it Emacs.</p><p>Second script automatizing adding cards to A<strong>nki</strong>.</p><p>I split my window by <strong>Anki</strong> “add card” window and <strong>Emacs</strong>. As i use <code>evil</code> mode in Emacs, script looks like that:</p><div class=highlight><div style=color:#f8f8f2;background-color:#282a36;-moz-tab-size:2;-o-tab-size:2;tab-size:2><table style=border-spacing:0;padding:0;margin:0;border:0;width:auto;overflow:auto;display:block><tr><td style=vertical-align:top;padding:0;margin:0;border:0><pre style=color:#f8f8f2;background-color:#282a36;-moz-tab-size:2;-o-tab-size:2;tab-size:2><code><span style="margin-right:.4em;padding:0 .4em;color:#7f7f7f"> 1
|
||||
</span><span style="margin-right:.4em;padding:0 .4em;color:#7f7f7f"> 2
|
||||
</span><span style="margin-right:.4em;padding:0 .4em;color:#7f7f7f"> 3
|
||||
</span><span style="margin-right:.4em;padding:0 .4em;color:#7f7f7f"> 4
|
||||
</span><span style="margin-right:.4em;padding:0 .4em;color:#7f7f7f"> 5
|
||||
</span><span style="margin-right:.4em;padding:0 .4em;color:#7f7f7f"> 6
|
||||
</span><span style="margin-right:.4em;padding:0 .4em;color:#7f7f7f"> 7
|
||||
</span><span style="margin-right:.4em;padding:0 .4em;color:#7f7f7f"> 8
|
||||
</span><span style="margin-right:.4em;padding:0 .4em;color:#7f7f7f"> 9
|
||||
</span><span style="margin-right:.4em;padding:0 .4em;color:#7f7f7f">10
|
||||
</span><span style="margin-right:.4em;padding:0 .4em;color:#7f7f7f">11
|
||||
</span><span style="margin-right:.4em;padding:0 .4em;color:#7f7f7f">12
|
||||
</span><span style="margin-right:.4em;padding:0 .4em;color:#7f7f7f">13
|
||||
</span><span style="margin-right:.4em;padding:0 .4em;color:#7f7f7f">14
|
||||
</span><span style="margin-right:.4em;padding:0 .4em;color:#7f7f7f">15
|
||||
</span><span style="margin-right:.4em;padding:0 .4em;color:#7f7f7f">16
|
||||
</span><span style="margin-right:.4em;padding:0 .4em;color:#7f7f7f">17
|
||||
</span><span style="margin-right:.4em;padding:0 .4em;color:#7f7f7f">18
|
||||
</span><span style="margin-right:.4em;padding:0 .4em;color:#7f7f7f">19
|
||||
</span></code></pre></td><td style=vertical-align:top;padding:0;margin:0;border:0;width:100%><pre style=color:#f8f8f2;background-color:#282a36;-moz-tab-size:2;-o-tab-size:2;tab-size:2><code class=language-python data-lang=python><span style=color:#ff79c6>import</span> pyautogui
|
||||
|
||||
<span style=color:#ff79c6>import</span> os
|
||||
<span style=color:#ff79c6>while</span>(True):
|
||||
pyautogui<span style=color:#ff79c6>.</span>hotkey(<span style=color:#f1fa8c>"winleft"</span>, <span style=color:#f1fa8c>'j'</span>) <span style=color:#6272a4># toggle window</span>
|
||||
pyautogui<span style=color:#ff79c6>.</span>press([<span style=color:#f1fa8c>"v"</span>, <span style=color:#f1fa8c>"$"</span>, <span style=color:#f1fa8c>"y"</span>]) <span style=color:#6272a4># copy string</span>
|
||||
pyautogui<span style=color:#ff79c6>.</span>hotkey(<span style=color:#f1fa8c>"winleft"</span>, <span style=color:#f1fa8c>'j'</span>) <span style=color:#6272a4># toggle window</span>
|
||||
pyautogui<span style=color:#ff79c6>.</span>hotkey(<span style=color:#f1fa8c>"ctrl"</span>, <span style=color:#f1fa8c>'v'</span>) <span style=color:#6272a4># past text</span>
|
||||
pyautogui<span style=color:#ff79c6>.</span>press(<span style=color:#f1fa8c>"tab"</span>) <span style=color:#6272a4># next input field</span>
|
||||
pyautogui<span style=color:#ff79c6>.</span>hotkey(<span style=color:#f1fa8c>"winleft"</span>, <span style=color:#f1fa8c>'j'</span>) <span style=color:#6272a4># toggle window</span>
|
||||
pyautogui<span style=color:#ff79c6>.</span>press([<span style=color:#f1fa8c>"j"</span>,<span style=color:#f1fa8c>"0"</span>, <span style=color:#f1fa8c>"w"</span>, <span style=color:#f1fa8c>"v"</span> , <span style=color:#f1fa8c>"$"</span>, <span style=color:#f1fa8c>"y"</span>, <span style=color:#f1fa8c>"0"</span>, <span style=color:#f1fa8c>"j"</span>, <span style=color:#f1fa8c>"j"</span> ])
|
||||
<span style=color:#6272a4># move to next line beginning, copy it and go to next occurence</span>
|
||||
pyautogui<span style=color:#ff79c6>.</span>hotkey(<span style=color:#f1fa8c>"winleft"</span>, <span style=color:#f1fa8c>'j'</span>) <span style=color:#6272a4># toggle window</span>
|
||||
pyautogui<span style=color:#ff79c6>.</span>hotkey(<span style=color:#f1fa8c>"ctrl"</span>, <span style=color:#f1fa8c>'v'</span>) <span style=color:#6272a4># paste text</span>
|
||||
pyautogui<span style=color:#ff79c6>.</span>press(<span style=color:#f1fa8c>"tab"</span>) <span style=color:#6272a4># ...</span>
|
||||
pyautogui<span style=color:#ff79c6>.</span>press(<span style=color:#f1fa8c>"tab"</span>) <span style=color:#6272a4># ...</span>
|
||||
pyautogui<span style=color:#ff79c6>.</span>press(<span style=color:#f1fa8c>"tab"</span>) <span style=color:#6272a4># ...</span>
|
||||
pyautogui<span style=color:#ff79c6>.</span>press(<span style=color:#f1fa8c>"tab"</span>) <span style=color:#6272a4># ... way to submit button</span>
|
||||
pyautogui<span style=color:#ff79c6>.</span>press(<span style=color:#f1fa8c>"space"</span>) <span style=color:#6272a4># pressing submit button</span>
|
||||
</code></pre></td></tr></table></div></div><p><code>while true</code> was my mistake. I launched script in terminal, with <code>sleep</code> 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 <code>Ctrl+C</code></p></div></article></main><footer><ul class=contacts><li><a href=https://github.com/horhik class=contact-link><pre> oo dP dP dP
|
||||
88 88 88
|
||||
.d8888b. dP d8888P 88d888b. dP dP 88d888b.
|
||||
88' `88 88 88 88' `88 88 88 88' `88
|
||||
88. .88 88 88 88 88 88. .88 88. .88
|
||||
`8888P88 dP dP dP dP `88888P' 88Y8888'
|
||||
.88
|
||||
d8888P </pre></a></li><li><a href=https://twitter.com/HORHl class=contact-link><pre> dP oo dP dP
|
||||
88 88 88
|
||||
d8888P dP dP dP dP d8888P d8888P .d8888b. 88d888b.
|
||||
88 88 88 88 88 88 88 88ooood8 88' `88
|
||||
88 88.88b.88' 88 88 88 88. ... 88
|
||||
dP 8888P Y8P dP dP dP `88888P' dP
|
||||
|
||||
</pre></a></li><li><a href=mailto:horhik@tuta.io class=contact-link><pre> oo dP
|
||||
88
|
||||
88d8b.d8b. .d8888b. dP 88
|
||||
88'`88'`88 88' `88 88 88
|
||||
88 88 88 88. .88 88 88
|
||||
dP dP dP `88888P8 dP dP
|
||||
|
||||
</pre></a></li></ul><p class=copyright>©2021 <a href=https://site.horhik.xyz/>Horhik.xyz</a></p></footer></body></html>
|
25
public/posts/second-test-post/index.html
Normal file
25
public/posts/second-test-post/index.html
Normal file
|
@ -0,0 +1,25 @@
|
|||
<!doctype html><html lang=en-us><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><meta http-equiv=x-ua-compatible content="IE=edge"><title>Second Test Post</title><link rel=preconnect href=https://fonts.gstatic.com><link href="https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,400;0,500;0,700;1,300&display=swap" rel=stylesheet><link rel=stylesheet href=https://site.horhik.xyz/css/basic.css></head><body><header class=logo--wrapper><a href=https://site.horhik.xyz/><pre class="logo toilet-logo">
|
||||
░█░█░█▀█░█▀▄░█░█░▀█▀░█░█░░░░█░█░█░█░▀▀█
|
||||
░█▀█░█░█░█▀▄░█▀█░░█░░█▀▄░░░░▄▀▄░░█░░▄▀░
|
||||
░▀░▀░▀▀▀░▀░▀░▀░▀░▀▀▀░▀░▀░▀░░▀░▀░░▀░░▀▀▀</pre></a><span class=logo-quote>O. George’s site</span></header><main><article class=blog-post><h1 class=blog-header>Second Test Post</h1><sub><small><time>03.01.2021 01:24</time></small></sub><div><h1 id=heeeya>heeeya</h1></div></article></main><footer><ul class=contacts><li><a href=https://github.com/horhik class=contact-link><pre> oo dP dP dP
|
||||
88 88 88
|
||||
.d8888b. dP d8888P 88d888b. dP dP 88d888b.
|
||||
88' `88 88 88 88' `88 88 88 88' `88
|
||||
88. .88 88 88 88 88 88. .88 88. .88
|
||||
`8888P88 dP dP dP dP `88888P' 88Y8888'
|
||||
.88
|
||||
d8888P </pre></a></li><li><a href=https://twitter.com/HORHl class=contact-link><pre> dP oo dP dP
|
||||
88 88 88
|
||||
d8888P dP dP dP dP d8888P d8888P .d8888b. 88d888b.
|
||||
88 88 88 88 88 88 88 88ooood8 88' `88
|
||||
88 88.88b.88' 88 88 88 88. ... 88
|
||||
dP 8888P Y8P dP dP dP `88888P' dP
|
||||
|
||||
</pre></a></li><li><a href=mailto:horhik@tuta.io class=contact-link><pre> oo dP
|
||||
88
|
||||
88d8b.d8b. .d8888b. dP 88
|
||||
88'`88'`88 88' `88 88 88
|
||||
88 88 88 88. .88 88 88
|
||||
dP dP dP `88888P8 dP dP
|
||||
|
||||
</pre></a></li></ul><p class=copyright>©2021 <a href=https://site.horhik.xyz/>Horhik.xyz</a></p></footer></body></html>
|
|
@ -1,17 +1 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
|
||||
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<url>
|
||||
<loc>http://new.horhik.xyz/categories/</loc>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://new.horhik.xyz/</loc>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://new.horhik.xyz/tags/</loc>
|
||||
</url>
|
||||
|
||||
</urlset>
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml"><url><loc>https://site.horhik.xyz/</loc><lastmod>2021-01-21T10:26:19+03:00</lastmod></url><url><loc>https://site.horhik.xyz/posts/</loc><lastmod>2021-01-21T10:26:19+03:00</lastmod></url><url><loc>https://site.horhik.xyz/posts/pyautogui-for-simplifying-anki-routine/</loc><lastmod>2021-01-21T10:26:19+03:00</lastmod></url><url><loc>https://site.horhik.xyz/posts/second-test-post/</loc><lastmod>2021-01-03T01:24:34+02:00</lastmod></url><url><loc>https://site.horhik.xyz/categories/</loc></url><url><loc>https://site.horhik.xyz/tags/</loc></url></urlset>
|
|
@ -1,93 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en-us">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>Tags</title>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="http://new.horhik.xyz/css/basic.css">
|
||||
|
||||
<link rel="alternate" type="application/rss+xml" href="/tags/index.xml" title="Horhik.xyz">
|
||||
</head>
|
||||
<body>
|
||||
<header class="logo--wrapper">
|
||||
<a href="http://new.horhik.xyz/"><pre class="logo toilet-logo">
|
||||
<!doctype html><html lang=en-us><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><meta http-equiv=x-ua-compatible content="IE=edge"><title>Tags</title><link rel=preconnect href=https://fonts.gstatic.com><link href="https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,400;0,500;0,700;1,300&display=swap" rel=stylesheet><link rel=stylesheet href=https://site.horhik.xyz/css/basic.css><link rel=alternate type=application/rss+xml href=/tags/index.xml title=Horhik.xyz></head><body><header class=logo--wrapper><a href=https://site.horhik.xyz/><pre class="logo toilet-logo">
|
||||
░█░█░█▀█░█▀▄░█░█░▀█▀░█░█░░░░█░█░█░█░▀▀█
|
||||
░█▀█░█░█░█▀▄░█▀█░░█░░█▀▄░░░░▄▀▄░░█░░▄▀░
|
||||
░▀░▀░▀▀▀░▀░▀░▀░▀░▀▀▀░▀░▀░▀░░▀░▀░░▀░░▀▀▀</pre></a>
|
||||
<span class="logo-quote">O. George’s site</span>
|
||||
|
||||
</header>
|
||||
|
||||
|
||||
<main>
|
||||
|
||||
<div>
|
||||
<h1>Tags</h1>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div>
|
||||
|
||||
1 of 0
|
||||
|
||||
</div>
|
||||
|
||||
</main>
|
||||
<aside>
|
||||
<div class="recent">
|
||||
<div >
|
||||
<h2 class="h1 recent-header">LATEST POSTS</h3>
|
||||
</div>
|
||||
<div>
|
||||
<ul class="recent-list">
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
|
||||
<footer>
|
||||
<ul class="contacts">
|
||||
<li><a href="https://github.com/horhik" class=" contact-link">
|
||||
<pre> oo dP dP dP
|
||||
░▀░▀░▀▀▀░▀░▀░▀░▀░▀▀▀░▀░▀░▀░░▀░▀░░▀░░▀▀▀</pre></a><span class=logo-quote>O. George’s site</span></header><main><div><h1>Tags</h1></div><div>1 of 0</div></main><aside><div class=recent><div><h2 class="h1 recent-header">LATEST POSTS</h3></div><div><ul class=recent-list><li class="recent-block recent-block--right"><a href=/posts/pyautogui-for-simplifying-anki-routine/>PyAutoGUI for simplifying anki routine</a><br><time class=recent-block__time>21.01.2021</time></li><li class="recent-block recent-block--right"><a href=/posts/second-test-post/>Second Test Post</a><br><time class=recent-block__time>03.01.2021</time></li></ul></div></div></aside><footer><ul class=contacts><li><a href=https://github.com/horhik class=contact-link><pre> oo dP dP dP
|
||||
88 88 88
|
||||
.d8888b. dP d8888P 88d888b. dP dP 88d888b.
|
||||
88' `88 88 88 88' `88 88 88 88' `88
|
||||
88. .88 88 88 88 88 88. .88 88. .88
|
||||
`8888P88 dP dP dP dP `88888P' 88Y8888'
|
||||
.88
|
||||
d8888P </pre></a></li>
|
||||
<li><a href="https://twitter.com/HORHl" class=" contact-link">
|
||||
<pre> dP oo dP dP
|
||||
d8888P </pre></a></li><li><a href=https://twitter.com/HORHl class=contact-link><pre> dP oo dP dP
|
||||
88 88 88
|
||||
d8888P dP dP dP dP d8888P d8888P .d8888b. 88d888b.
|
||||
88 88 88 88 88 88 88 88ooood8 88' `88
|
||||
88 88.88b.88' 88 88 88 88. ... 88
|
||||
dP 8888P Y8P dP dP dP `88888P' dP
|
||||
|
||||
</pre></a></li>
|
||||
<li><a href="mailto:horhik@tuta.io" class=" contact-link">
|
||||
<pre> oo dP
|
||||
</pre></a></li><li><a href=mailto:horhik@tuta.io class=contact-link><pre> oo dP
|
||||
88
|
||||
88d8b.d8b. .d8888b. dP 88
|
||||
88'`88'`88 88' `88 88 88
|
||||
88 88 88 88. .88 88 88
|
||||
dP dP dP `88888P8 dP dP
|
||||
|
||||
</pre></a></li>
|
||||
</ul>
|
||||
<p class="copyright">©2021 <a href="http://new.horhik.xyz/">Horhik.xyz</a></p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
</pre></a></li></ul><p class=copyright>©2021 <a href=https://site.horhik.xyz/>Horhik.xyz</a></p></footer></body></html>
|
|
@ -1,10 +1 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>Tags on Horhik.xyz</title>
|
||||
<link>http://new.horhik.xyz/tags/</link>
|
||||
<description>Recent content in Tags on Horhik.xyz</description>
|
||||
<generator>Hugo -- gohugo.io</generator>
|
||||
<language>en-us</language><atom:link href="http://new.horhik.xyz/tags/index.xml" rel="self" type="application/rss+xml" />
|
||||
</channel>
|
||||
</rss>
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Tags on Horhik.xyz</title><link>https://site.horhik.xyz/tags/</link><description>Recent content in Tags on Horhik.xyz</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><atom:link href="https://site.horhik.xyz/tags/index.xml" rel="self" type="application/rss+xml"/></channel></rss>
|
|
@ -1 +1 @@
|
|||
<!DOCTYPE html><html><head><title>http://new.horhik.xyz/tags/</title><link rel="canonical" href="http://new.horhik.xyz/tags/"/><meta name="robots" content="noindex"><meta charset="utf-8" /><meta http-equiv="refresh" content="0; url=http://new.horhik.xyz/tags/" /></head></html>
|
||||
<!doctype html><html><head><title>https://site.horhik.xyz/tags/</title><link rel=canonical href=https://site.horhik.xyz/tags/><meta name=robots content="noindex"><meta charset=utf-8><meta http-equiv=refresh content="0; url=https://site.horhik.xyz/tags/"></head></html>
|
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
{"Target":"css/basic.min.1c7d0df3f4d862d66ca5b3d7d7f36b014bcff9f92ca85b340ba9b72a51495819.css","MediaType":"text/css","Data":{"Integrity":"sha256-HH0N8/TYYtZspbPX1/NrAUvP+fksqFs0C6m3KlFJWBk="}}
|
Loading…
Reference in a new issue