Pelican is a static site generator written in python which allows you to write your content directly using reStructuredText or Markdown. In this blog post, we will discuss how to create and host a static site using pelican and github pages. Installation Lets wrap all our installations inside a separate virtual environment using python virtual environment wrapper. Install […]
JSFiddle : Write and share JS easily
Javascript is the backbone of frontend developers. In fact, knowledge in javascript is an added advantage for every web developer. Need some tool/website for trying out javascript? Need a site which can be used for sharing your js code? A site that can be used to edit js code by multiple persons simultaneously? All in […]
Executing bash commands via Python 3
In python, executing bash commands can be done using subprocess module. It’s pretty easy to use and it’s a powerful module. For simple commands, we can use subprocess.call Usage: Eg: total 4 -rw-rw-r– 1 tevin tevin 15 Sep 3 15:29 test.txt You can also use subprocess.check_call and subprocess.check_output Popen: For more flexibility, you can use […]
Concept of Mutable & Immutable objects in Python
An Immutable object, in the lime light of object-oriented and functional programming, is an object whose state cannot be modified after it is created. Objects of built-in types like (int, float, bool, str, tuple, unicode) are immutable, A Mutable object, can be mutated or state can be modified after it is created. A mutable object will have at least a single method able to […]
Snippets, Books & Questions – Programmer’s Heaven
Last week, we had shared Programmer’s Heaven through our Nu-bits’s session. The site, as seen from the homepage, looks like a Q&A forum which is one of it’s secondary functions. But it’s primary focus is on sharing code snippets between programmers. If you are wondering how do they do that, that’s where the Q&A comes […]