I hereby claim:
- I am patrickheneise on github.
- I am patrickheneise (https://keybase.io/patrickheneise) on keybase.
- I have a public key ASD-jppyGKVHTsRFmbq2ANEDkchabjZMGhafmXNzP9EUiAo
To claim this, I am signing this object:
| import bodyParser from "@zentered/issue-forms-body-parser"; | |
| const issueData = await bodyParser({}); | |
| console.log(issueData); |
| /** | |
| * Copyright (c) 2022 Zentered OÛ, [email protected] | |
| * This code is licensed under the terms of the MIT license | |
| * | |
| * This code demonstrates how to create a Google Cloud Function to receive | |
| * a file sent via `multipart/form-data`. The file is then streamed directly | |
| * to Google Cloud Storage, without using a temporary file. | |
| * | |
| * The function returns any `fields` sent as FormData | |
| * |
| const fs = require('fs') | |
| const { join } = require('path') | |
| function parse(file) { | |
| const path = join(process.env.PWD, 'test', 'fixtures', file) | |
| const content = fs.readFileSync(path, 'utf8') | |
| const lines = content.split('\n') | |
| let data = '' | |
| let stringified = 'data = ' | |
| lines.forEach((line, idx) => { |
| const path = join(__dirname, 'templates', 'issues') | |
| let files = [ | |
| 'sponsor-request.md', | |
| 'suggestion.md', | |
| 'talk-feature.md', | |
| 'talk-lightning.md', | |
| 'talk-request.md' | |
| ] | |
| try { | |
| const committedTemplates = await github.rest.repos.getContent({ |
| const { PerformanceObserver, performance } = require('perf_hooks') | |
| const getJSONParse = (data) => { | |
| performance.mark('getJSONParse init') | |
| JSON.parse(data) | |
| performance.mark('getJSONParse end') | |
| performance.measure('getJSONParse', 'getJSONParse init', 'getJSONParse end') | |
| } |
| version: "3" | |
| services: | |
| nginx: | |
| image: nginx:latest | |
| container_name: universal_nginx | |
| volumes: | |
| - ./nginx/nginx.conf:/etc/nginx/nginx.conf | |
| - ./nginx/mime.types:/etc/nginx/mime.types | |
| - ./certs/:/usr/share/certs/ |
| events { | |
| worker_connections 1024; | |
| } | |
| http { | |
| upstream frontend { | |
| # run web container on port 5000 | |
| server web:5000; | |
| } |
I hereby claim:
To claim this, I am signing this object:
| Verifying my Blockstack ID is secured with the address 14Q9sFUCgWfBmWi5aWGogpX2C7ANEEj38q https://explorer.blockstack.org/address/14Q9sFUCgWfBmWi5aWGogpX2C7ANEEj38q |
| const a = [{ a: 'a' }, { a: 'b' }] | |
| const b = ['1', '2'] | |
| const res = [] | |
| a.forEach(str => { | |
| b.forEach(num => { | |
| str.b = num | |
| res.push(str) | |
| }) | |
| }) |