Files

80 lines
3.2 KiB
HTML

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<title>Text-memorize by zg</title>
<link rel="stylesheet" href="stylesheets/styles.css">
<link rel="stylesheet" href="stylesheets/github-light.css">
<script src="javascripts/scale.fix.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<div class="wrapper">
<header>
<h1 class="header">Text-memorize</h1>
<p class="header">Text Memorize - A tool to help you memorize some text!</p>
<ul>
<li class="download"><a class="buttons" href="https://github.com/zg/text-memorize/zipball/master">Download ZIP</a></li>
<li class="download"><a class="buttons" href="https://github.com/zg/text-memorize/tarball/master">Download TAR</a></li>
<li><a class="buttons github" href="https://github.com/zg/text-memorize">View On GitHub</a></li>
</ul>
<p class="header">This project is maintained by <a class="header name" href="https://github.com/zg">zg</a></p>
</header>
<section>
<h2>
<a id="text-memorize" class="anchor" href="#text-memorize" aria-hidden="true"><span class="octicon octicon-link"></span></a>text-memorize</h2>
<p><a href="https://asciinema.org/a/984avh6xfeaqxe8earjpg6xnn"><img src="https://asciinema.org/a/984avh6xfeaqxe8earjpg6xnn.png" alt="asciicast"></a></p>
<p>A tool to help memorize some text!</p>
<p>When provided with a file, this program will remove random words from each line of text and ask you to provide the words that were removed.</p>
<p>You can provide lower and upper bounds to the number of words removed per line by using the <code>--l</code> and/or <code>--u</code> flags, or remove an exact number with <code>--n</code>. You can also specify the number of attempts you want to allow with the <code>--a</code> flag. To turn off colors, just send in the <code>--no-color</code> flag.</p>
<p>text-memorize uses Python 2.7.</p>
<h3>
<a id="how-to-run" class="anchor" href="#how-to-run" aria-hidden="true"><span class="octicon octicon-link"></span></a>How to run</h3>
<p><code>python text_memorize.py filename</code></p>
<p>For between <em>i</em> and <em>j</em> words removed per line:</p>
<p><code>python text_memorize.py --l i --u j filename</code></p>
<p>For exactly <em>k</em> words removed per line:</p>
<p><code>python text_memorize.py --n k filename</code></p>
<p>For infinite attempts:</p>
<p><code>python text_memorize.py --a 0 filename</code></p>
<p>Without color:</p>
<p><code>python text_memorize.py --no-color filename</code></p>
<h3>
<a id="contribute" class="anchor" href="#contribute" aria-hidden="true"><span class="octicon octicon-link"></span></a>Contribute</h3>
<p>Contributions are welcome! Just open a pull request and I'll attend to it as soon as possible.</p>
</section>
<footer>
<p><small>Hosted on <a href="https://pages.github.com">GitHub Pages</a> using the Dinky theme</small></p>
</footer>
</div>
<!--[if !IE]><script>fixScale(document);</script><![endif]-->
</body>
</html>