I hereby claim:
- I am zenweasel on github.
- I am zenweasel (https://keybase.io/zenweasel) on keybase.
- I have a public key whose fingerprint is C6AE 7DA7 2837 C999 D311 720B 16EA 4EB1 5D65 9E6C
To claim this, I am signing this object:
| import fs from "fs"; | |
| import { Blob } from "buffer"; | |
| import { Readable } from "stream"; | |
| import pkg from "@reactioncommerce/file-collections"; | |
| // import * as buffer from "buffer"; | |
| global.Blob = Blob; | |
| const { FileRecord } = pkg; |
| # If a mirror repo is set up properly this will pull from the source repo | |
| # and push to the mirror | |
| # https://help.github.com/en/articles/duplicating-a-repository | |
| git fetch -p origin | |
| git push --mirror |
I hereby claim:
To claim this, I am signing this object:
| let subs = Meteor.default_connection._subscriptions; // all the subscriptions that have been subscribed. | |
| Object.keys(subs).forEach(function(key) { | |
| console.log(subs[key]); // see them in console. | |
| }); |
Sold Out! label when inventory qty < min.inventory qty, but only if "Inventory Tracking" option is enabled.Limited SupplyBackorder| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| def escape(s): | |
| escaped = unicode(s)\ | |
| .replace('&', '&')\ | |
| .replace('<', '>')\ | |
| .replace('>', '<')\ | |
| .replace("'", ''')\ |
| import atexit | |
| from time import clock | |
| def seconds_to_str(t): | |
| return "%d:%02d:%02d.%03d" % \ | |
| reduce(lambda ll, b: divmod(ll[0], b) + ll[1:], | |
| [(t * 1000,), 1000, 60, 60]) | |
| line = "=" * 40 |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| class TimeRange(object): | |
| """ | |
| A basic structure to allow use to reason about non-contiguous dateranges in a single place | |
| """ | |
| def __init__(self, start_dt=None, end_dt=None, ranges=None): | |
| self.start_dt = start_dt |
| sorted_locations = sorted(locations, key=lambda l: l['address']['distance']) |
| import random | |
| def _create_random_password(num_chars): | |
| """ | |
| Create a string of random characters | |
| :param num_chars: | |
| :return: | |
| """ | |
| password_string = '' | |
| seed = string.ascii_letters + string.digits + string.punctuation |