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
| { | |
| "checkoutSessionId": "728974898", | |
| "lineItems": [ | |
| { | |
| "itemId": "252715456954", | |
| "title": "Late 2015 Retina 5K iMac 27\" 3.3GHz i5/8GB/2TB Fusion/R9 M395/MK482LL/A Warranty", | |
| "summary": { | |
| "shippingCost": { | |
| "value": 109.02, | |
| "currency": "USD" |
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
| var shell = require("shelljs"); | |
| var nextjsConfig = require("../next.config"); | |
| var distDir = nextjsConfig.distDir || ".next"; | |
| var BUILD_ID = shell.cat(`${distDir}/BUILD_ID`); | |
| function hoistPages(fileExt, outputPath) { | |
| console.log( | |
| `${distDir}/server/static/${BUILD_ID}/pages/**/*${fileExt} -> ${outputPath}/` | |
| ); | |
| shell.mkdir("-p", outputPath); |
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
| local RemoveComments = function() | |
| local ts = vim.treesitter | |
| local bufnr = vim.api.nvim_get_current_buf() | |
| local ft = vim.bo[bufnr].filetype | |
| local lang = ts.language.get_lang(ft) or ft | |
| local ok, parser = pcall(ts.get_parser, bufnr, lang) | |
| if not ok then return vim.notify("No parser for " .. ft, vim.log.levels.WARN) end | |
| local tree = parser:parse()[1] |
OlderNewer