An open API service indexing awesome lists of open source software.

https://github.com/xmodar/mtutilities

A collection of snippets (before I knew gist.github.com)
https://github.com/xmodar/mtutilities

Last synced: 8 months ago
JSON representation

A collection of snippets (before I knew gist.github.com)

Awesome Lists containing this project

README

          

MTUtilities
===========

This is a list of utilities that I coded in my free time. I hope that someone will find them useful :)

Table of Contents
=================

* [MTspeller](#mtspeller)
* [Video Cutter](#video-cutter)
* [CSR Matrix Row Slicing](#csr-matrix-row-slicing)
* [HowTO: Use Latex on SublimeText 3](#howto-latex-on-sublimetext-3)

MTspeller
=========

Python program to help you practice spelling in English

This command line tool helps its users practice American
English spelling in an interactive way.

What is MTspeller?
------------------

MTspeller is an interactive console that let you type anything in your mind and once
you hit enter it pronounce the sentence you wrote and highlight any spelling mistakes
you made. You can, of course, try again as many times as you want and you can even
make it suggest to you the correct spelling. It ships, also, with a dictionary to define
words and gives synonyms and antonyms for the word; if exist. It needs Internet
connection to work properly.

How to install it?
------------------

You have to have the following Python packages installed in order to run this software
(This was tested on the versions provided and Python 3.5.1 installed on Windows 10)

PyEnchant==1.6.6
PyDictionary==1.5.2
Speech==0.5.2
PyWin32 (For the corresponding version of python you have)

pip::

pip install PyEnchant==1.6.6
pip install PyDictionary==1.5.2
pip install Speech==0.5.2

There was some little modefications made to the following files in order to work properly
Nothing will be missed up and you can always backup the files just in case:

File: %PythonLocation%\Lib\site-packages\PyDictionary\Utils.py
Line #5 changed from
return BeautifulSoup(requests.get(url).text)
To
return BeautifulSoup(requests.get(url).text, 'html.parser')
Reason
To rid of the warning from using BeautifulSoup4 without specifing default parser

File: %PythonLocation%\Lib\site-packages\speech.py
Line #59 changed from
import _thread
To
import thread
Line #157 changed from
print prompt
To
print (prompt)
Reason
To make it run in Python 3


How do I use it?
----------------

Once the software is installed and everything is in place,

You have the following options to pick from:
1. Type any sentence then hit enter
to hear it pronounced with all spelling mistakes highlighted
2. Type ":" then any word of your choice
to see it in the dictionary (needs Internet connection)
3. Type "$" then any shell command
to execute it ('help', 'cls' and 'exit' are common commands)
4. Type "::" then any word of your choice
to suggest similarly spelled words

Examples
1. >>> I love playing witt my kids
>>> I love playing **** my kids
2. >>> :wonderful
>>> Adjective
extraordinarily good or great; used especially as intensifiers
Synonyms
fantastic
remarkable
outstanding
awesome
magnificent
Antonyms
usual
tiny
unpleasant
typical
unremarkable
3. >>> $cls
>>> [Windows console screen cleared]
4. >>> ::wonderfl
>>> wonderful
wonder fl
wonderland
wonderer
wondering
wonderment

Video Cutter
============

A function that helps you cut clips from MP4 videos

How to install it?
------------------

You have to have the following Python packages installed in order to run this software

imageio==2.1.2

pip::

pip install imageio==2.1.2

How do I use it?
----------------

Just provide the file name of the video and the file name of the output and the starting and ending frames starting from 0.

CSR Matrix Row Slicing
======================

[Two functions](csr_matrix/rows.py) to slice rows from a scipy.sparse.csr_matrix.

HowTo Latex on SublimeText 3
=============================
[This is](HowTo/Latex-Sublime.md) a guide to work with latex in SublimeText 3 on Ubuntu 14.04 LTS