Skip to content

Instantly share code, notes, and snippets.

View benmechen's full-sized avatar

Ben Mechen benmechen

View GitHub Profile
@benmechen
benmechen / main.yml
Created February 20, 2023 09:19
Recommender Publish
name: Main
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
import socket
import datetime
from zeroconf import ServiceInfo, Zeroconf
HOST = '' # Open server up on local network
PORT = 1024 # Port to listen on (non-privileged ports are > 1023)
address = ""
print("#############################")
@benmechen
benmechen / index.js
Created May 22, 2020 11:39
Doofinder item => Shopify Item
export const searchToStorefront = (item) => {
let formattedItem = {
node: {
variants: {
edges: [
{node: {
id: btoa(`gid://shopify/ProductVariant/${item.id}`),
sku: item.mpn,
compareAtPriceV2: {
amount: item.price