Skip to content

Instantly share code, notes, and snippets.

View elcolie's full-sized avatar

El 李天宝 elcolie

View GitHub Profile
import functools
@functools.total_ordering
class GIRow:
def __init__(self, dmd_name: str, md_name: str, rtr_name: str,
province: str, district: str, sub_district: str, address: str, node_type: str, node_alive: bool, imei: str,
goodsmovement_dt: str, active_user: str, user_node: str, profile_name: str, product_code: str):
self.dmd_name = dmd_name
self.md_name = md_name
self.rtr_name = rtr_name
self.province = province
$(function() {
var resultCollector = Quagga.ResultCollector.create({
capture: true,
capacity: 20,
blacklist: [{code: "2167361334", format: "i2of5"}],
filter: function(codeResult) {
// only store results which match this constraint
// e.g.: codeResult
return true;
}