Skip to main content

Posts

Learn NumPy - Free tutorial

NumPy stands for numerical python and is a python library used for working with arrays. It has functions for working in the domains of linear algebra, fourier transform and matrices. It was created in 2005 by Travis Oliphant and is an open source project that can be used freely. Why Use NumPy Python has lists that serve the purpose of arrays but they are slow too process. NumPy aims to provide an array object that is up to 50x faster than traditional python lists. the array object in NumPy is called ndarray. It provides a lot of supporting functions that make working with ndarray very easy. NumPy arrays are stored at one continuous place in memory unlike lists, so processes can access and manipulate them very efficiently. this behaviour is called locality of reference in computer science. It is also optimized to work with the latest CPU architecture. This is why NumPy is faster than lists. NumPy is written partially in python but most of the parts that require fast computation are writ

Git Cheat Sheet

Git is the free and open source distributed version control system that's responsible for everything GitHub related that happens locally on your computer. This cheat sheet features the most important and commonly used Git commands for easy reference. SETUP set a name that is identifiable for credit when review version history. git config --global user.name “[firstname lastname]” set an email address that will be associated with each history maker. git config --global user.email “[valid-email]” set automatic command-line colouring for Git for easy reviewing. git config --global color.ui auto SETUP & INIT initialize an existing directory as a Git repository git init Retrieve an entire repository from a hosted location via URL. git clone [url] STAGE & SNAPSHOT Show modified files in working directory, staged for your next commit. git status Add a file as it looks now to your next commit. git add [file] Unstage a file while retaining the changes in working

Get IMDB Ratings of Movies & TV Shows in Your Terminal

A command line tool for getting information about a movie and comparing two movies. It is written entirely in JavaScript just like the virtual Apple Macintosh that can be installed on Windows, Linux and macOS. To install it run the following command Linux sudo npm i -g movie-cli Install in macOS with: npm i -g movie-cli To get information about a movie type movie Movie Name Example movie Star Wars Information provided includes : Title, year, date released, runtime, genre, director, actors, language and even IMDB rating. To compare two movies, type movie Movie Name1 :: Movie name2 Example movie Star Wars :: Wild Information provided includes: Title, year, date released, runtime, genre and IMDB rating. The project is available on GitHub along with the source code. You can check it out if you wish. It was created by Mayank Chandola .