There and Back Again
I’m back! With a couple of new ideas bubbling in my mind right now, I believe that this is a great moment to restart this adventure. Let’s go! Forte Abraço
I’m back! With a couple of new ideas bubbling in my mind right now, I believe that this is a great moment to restart this adventure. Let’s go! Forte Abraço
Today we’ll learn how to setup a simple project in order to use the Continuous Integration system TravisCI with Heroku and GitHub 1) Creating a new repository on GitHub Follow the original docume...
Today I started the Design of Computer Programs course on Udacity. This course is lectured by the Director of Research at Google Inc. Peter Norvig. From this day on, I’ll post some interesting thin...
Counter Counter is a dict subclass which helps count hashable objects. Inside of its elements are stored as dictionary keys and the counts of the objects are stored as the value. from collections...
Iterators Iterator is a general concept: an object whose class has a next() method is an iterator. Every generator is an iterator, but not vice versa. Generators Briefly, generators allow us to ...
Built-in Functions We’ve already seen some important built-in functions like map, filter and lambda. Now, we’ll see other ones. Reduce The function reduce(function, sequence) continually applies...
Decorators In a generic way, decorator is a design pattern that allows some behaviour to be added to an individual object, dynamically, without affecting the behaviour of other objects from the sa...
Pylint A library which checks the code for possible errors and styling. We can install it through pip install pylint and run it over a file with the command: pylint <file.py>. Unit Test I...
Modules In order to create a new module, we’ve just to create a new .py file with the module name and then import it using the Python file name using the import command. import foo Packages Pa...
Shell Script After losing some seconds copy-pasting and editing old files to creating new posts, I decided to automate this routine. #! /bin/bash # Check if the input is in the correct format if...