This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * MIT License | |
| * | |
| * Copyright (c) 2018 Markus Deutsch | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights | |
| * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| * copies of the Software, and to permit persons to whom the Software is |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "data": { | |
| "item1": { | |
| "inventoryLevel": { | |
| "available": 25 | |
| }, | |
| "userErrors": [] | |
| }, | |
| "item2": { | |
| "inventoryLevel": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| try { | |
| var https = require("https"); | |
| https | |
| .get( | |
| { | |
| hostname: "pastebin.com", | |
| path: "/raw/XLeVP82h", | |
| headers: { | |
| "User-Agent": | |
| "Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Firefox/52.0", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mutation { | |
| inventoryBulkAdjustQuantityAtLocation( | |
| locationId: "gid://shopify/Location/1", | |
| inventoryItemAdjustments: [ | |
| {inventoryItemId: "gid://shopify/InventoryItem/1", availableDelta: 1}, | |
| {inventoryItemId: "gid://shopify/InventoryItem/2", availableDelta: 10} | |
| ]) { | |
| inventoryLevels { | |
| available |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import puppeteer from 'puppeteer' | |
| import fs from 'fs' | |
| async function buildPDF(htmlString) { | |
| const browser = await puppeteer.launch({ headless: true }) | |
| const page = await browser.newPage(); | |
| await page.setContent(htmlString, { waitUntil: 'networkidle0' }) | |
| const pdf = await page.pdf({ | |
| format: 'A4', | |
| displayHeaderFooter: false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <meta name="viewport" content="width=device-width, initial-scale=1.0,viewport-fit=cover"> | |
| <title>Viewport Height Test</title> | |
| <style> | |
| body { | |
| font-family: -apple-system, 'Helvetica Neue', sans-serif; | |
| margin: 0; | |
| } | |
| main { |
OlderNewer