Skip to content

Instantly share code, notes, and snippets.


Sharoon Thomas sharoonthomas

View GitHub Profile
sharoonthomas /
Created Nov 20, 2018
Utilize Fulfil API to download complete Activity Stream Data history
import requests
import pandas as pd
from import json_normalize
import numpy as np
import os
import json
from import storage, bigquery
import datetime
import time
from multiprocessing.pool import ThreadPool
View gist:10639248
class Router(object):
def __init__(self):
self.methods = {}
def route(self, url):
def decorator(wrapped):
wrapped.__route_info__ = (self, url)
return wrapped
return decorator
def register(self, url, method):
self.methods[url] = method
View gist:6464922
def get_bins(self, cr, uid, bin_selection, storage_type, list_exclusions, qty_dict, context=None):
""" Find a list of locations based on user-defined criteria
:param :bin_selection Selection field, Bins with no assignment, bins with assignment only, or all
:param :storage_type Filter based on a specified storage type, i.e, overstock, backstock
:param :list_exclusions List of bin_ids to exclude from the search
:param :qty_dict Quantity in bin GT/LT threshold
@return list of bin_ids with travel sequence
View activation-html.jinja
Hola {{ nereid_user.display_name }},
Thank you for registering for an Openlabs account.
To activate your account, please click the link <a href="{{ url_for('nereid.user.activate',, activation_code=nereid_user.activation_code, _external=True) }}">here</a>
Kind regards <br/>
Customer Support<br/>
View gist:5682610
from connection import NetSuiteConnect
from SuiteREST import SuiteRequest
from forms import send_error
class ExportFulfillments(object):
def __init__(self):
self.instance = NetSuiteConnect()
self.conn = self.instance.erp_connection()
sharoonthomas /
Created Jun 11, 2012 — forked from gingerlime/
Postgresql - Changing ownership on all tables
cat << EOF
usage: $0 options
This script set ownership for all table, sequence and views for a given database
Credit: Based on by Alex Soto
You can’t perform that action at this time.