Skip to content

Instantly share code, notes, and snippets.

View gist:af930054f92fcde59f221d161521a551
# -*- coding: utf-8 -*-
"""
Subscriber Matching Service
~~~~~
Abstract interface for matching subscribers from arbitary payment
information providers, payment institutions, billing systems.
:copyright: © 2018 Karma Computing.
:license: GPLv3, see LICENSE for more details.
"""
from __future__ import absolute_import
View gist:9eec03d0069a880faf38
array = ['Tree','Log','Table','Chair']
myVar = 'Cat'
if myVar not in array:
print "It's not in the array!"
myVar = ''
@chrisjsimpson
chrisjsimpson / gist:789cdb6b244cd62e9fad
Created Sep 5, 2015
Decimal to valid EAN code taken from OpenERP POS demo
View gist:789cdb6b244cd62e9fad
function openerp_pos_devices(instance,module){ //module is instance.point_of_sale
var _t = instance.web._t;
// the JobQueue schedules a sequence of 'jobs'. each job is
// a function returning a deferred. the queue waits for each job to finish
// before launching the next. Each job can also be scheduled with a delay.
// the is used to prevent parallel requests to the proxy.
module.JobQueue = function(){