Skip to content

Instantly share code, notes, and snippets.

container{
client_name: "urn:ebay-marketplace-consumerid:13051638-8fe9-4380-8d03-c2b176530b4a",
QueryTime: 1777590256,
customer_experience: SRP,
enable_approximate_histograms: true,
summarize_response: 1,
task_name: MainSearchInvokerTask
}(
query{
"X-EBAY-C-ENDUSERCTX": "sec-ch-ua-model=%22SM-A137F%22,sec-ch-ua-full-version=%22146.0.7680.177%22,sec-ch-ua-platform-version=%2214.0.0%22,clientId=urn%3Aebay-marketplace-consumerid%3A13051638-8fe9-4380-8d03-c2b176530b4a,ip=91.8.53.105,userAgentAccept=*%2F*,userAgentAcceptEncoding=identity,userAgent=Mozilla%2F5.0%20(Linux%3B%20Android%2010%3B%20K)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F146.0.0.0%20Mobile%20Safari%2F537.36,uri=%2Fsch%2Fajax%2Frefine,applicationURL=https%3A%2F%2Fwww.ebay.de%2Fsch%2Fajax%2Frefine%3F_nkw%3Diphone%252015%2520pro%2520max%26_sacat%3D0%26LH_BIN%3D1%26_udhi%3D500%26no_encode_refine_params%3D1%26modules%3DSEARCH_REFINEMENTS_MODEL_V2%26async%3Dtrue,referer=https%3A%2F%2Fwww.ebay.de%2Fsch%2Fi.html%3F_n
@mohnishkodnani
mohnishkodnani / compile-time-dsl.scala
Last active February 1, 2023 06:12
Trying to see if we can build such a table at compile time if all values are known.
// If I want to take the code here to build a Table using context functions and convert it to compile time check using macros, to validate rows / cell values etc how do i do that.
// https://docs.scala-lang.org/scala3/reference/contextual/context-functions.html
class Table:
val rows = new ArrayBuffer[Row]
def add(r: Row): Unit = rows += r
override def toString = rows.mkString("Table(", ", ", ")")
class Row:
val cells = new ArrayBuffer[Cell]
def add(c: Cell): Unit = cells += c
package com.symphony.framework.akkastreams.v1;
import akka.stream.Attributes;
import akka.stream.FlowShape;
import akka.stream.Inlet;
import akka.stream.Outlet;
import akka.stream.stage.GraphStage;
import akka.stream.stage.GraphStageLogic;
import akka.stream.stage.InHandler;
import akka.stream.stage.OutHandler;
sudo apt-get install --assume-yes python-software-properties
sudo apt-add-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install --assume-yes nodejs
sudo apt-get install --assume-yes git
# Install Graphite
sudo apt-get install python-dev ruby-dev bundler build-essential libpcre3-dev graphite-carbon graphite-web
cat >> /tmp/graphite-carbon << EOF
# Change to true, to enable carbon-cache on boot