Skip to content

Instantly share code, notes, and snippets.

View erickertz's full-sized avatar

eric kertz erickertz

View GitHub Profile
{
"_id": "an-us-en-US-d2595ef183374844a9f544e4df664319",
"_score": 0.17883396,
"collection": "css-tile_en-us",
"allMeta": {
"tile": {
"product": {
"origin": null,
"parentCategoryId": "CLOTHES-DRESSES",
"includeInSearch": true,
{
"_id": "an-us-en-US-fb24c06158c84aa4a8ebd4a5b57c874e",
"_score": 0.49925175,
"collection": "css-tile_en-us",
"allMeta": {
"tile": {
"product": {
"origin": null,
"parentCategoryId": "CLOTHES-DRESSES",
"includeInSearch": true,
{
"took": 4,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"skipped": 0,
"failed": 0
},
"hits": {
{
"id": "uo-us-perm-markdown-override",
"searchType": "tile",
"channels": [
"android",
"pos",
"web",
"ios"
],
"default": false,
{
"aggregations": {
"skus.colorwayNames": {
"aggregations": {
"skus.colorwayNames_nested": {
"aggregations": {
"skus.colorwayNames_reverseNested": {
"terms": {
"field": "skus.colorwayNames",
"order": [{
--------------------------------------------------------
-- File created - Friday-July-13-2018
--------------------------------------------------------
--------------------------------------------------------
-- DDL for Table BRAND
--------------------------------------------------------
CREATE TABLE "MCPDEV"."BRAND"
( "ID" NUMBER(11,0),
"NAME" VARCHAR2(20 BYTE)
class PubSubUtil:
def __init__(
self,
logger=getLogger(__name__),
):
self.logger = logger
self.pub_sub_key = "my_key"
self.redis = redis.StrictRedis(host="redis", port=6379, db=0)
self.pubsub = self.redis.pubsub()
brand_code_to_associated_site = {"uo-us": Sites.UO_UK, "uo-eu": Sites.UO_US, "an-us": Sites.AN_UK, "an-eu": Sites.AN_US}
assocated_site = brand_code_to_associated_site.get(site.brand_code)
if not assocated_site:
return
@erickertz
erickertz / gist:108a2c4dc2f0e5f8fe11
Created February 6, 2015 15:52
Create Customer Subscription
{
"emailAddress": "yes@yes.com",
"subscriptionSource": "Receipt",
"gender": "male",
"country": "100001"
}
/*jshint jquery:true, browser:true, globalstrict:true, newcap: false, quotmark: single, unused:true, camelcase: true, eqeqeq: true, latedef: true, undef: true, maxlen: 80, indent: 2, trailing: true*/
/*global angular, angularCartApp */
(function() {
'use strict';
angular.module('receipt', [])
.controller('ReceiptCtrl', ['$rootScope','$scope', '$location', '$cacheFactory', '$window', 'ReceiptData', 'UOHttp', 'Tracking',
function($rootScope,$scope, $location, $cacheFactory, $window, ReceiptData, UOHttp, Tracking) {
var loadMessaging = function() {