chevron-up bell reply instagram twitter2 feed3 finder search-25px-p0

Category Archives: Python

Get Start with RabbitMQ

RabbitMQ is an open source & enterprise level messsage broker using AMQP protocal. The AMQP protocol is designed for asychronization and message dispatch. RabbitMQ can be used in time-consuming backend jobs such as sending emails to client, generating file for user to downl……

Using Jinja2 with Flask

Jinja2 is a flexible HTML Template along with with Flask, another commonly used Flask template is Mako. Install Jinja2 Install with PIP pip install jinja2 12 pip install jinja2  Basic Ope……

@property in Python

What is @property A normal class with class variable num: class Item(object): def __init__(self, value = 0): self._num = value 12345 class Item(object):     def __init__(self, valu……

Singleton in Python

There are a couple of ways of creating Singleton in Python: use module use __new__ use metaclass use decorator .gist table { margin-bottom: 0; } Reference http://python.jobbole.com/87514/ http://www.arkilis.me

Python instance method vs. Static method vs. Class method

In Python, there are three methods: Instance method Static method Class method Look at the following code, have a test for yourself, what are the output: .gist table { margin-bottom: 0; } Results: 1: foo.method("instance method") -- OK 2: Foo.method("instance method again") i……

Python Teltra SMS SDK

telstra-sms-sdk A fully tested Python SDK allow you to send sms in a more easy way! Current version: 0.0.7 Support Python version: >=python 2.6 (not python3) If you have any questions or issue, please create an issue or pull request. Prerequisite Before you are using this lib, ……

Leetcode 238 Product of Array Except Self

Question: Given an array of n integers where n > 1, nums, return an array output such that output[i] is equal to the product of all the elements of nums except nums[i]. Solve it without division and in O(n). For example, given [1,2,3,4], return [24,12,8,6]. When get……