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
| const | |
| _ = { | |
| author : 'chientrm', | |
| title : 'TODO list with CF Worker', | |
| description : 'This project is done via quick edit only', | |
| year : '2022', | |
| keywords : 'cloudflare, worker, quick, edit', | |
| license : 'MIT', | |
| }, | |
| _________________________CONSTANTS_____________________________=_, |
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
| { | |
| ... | |
| "scripts": { | |
| ... | |
| "dist": "npm run build && node esbuild.js", | |
| ... | |
| }, | |
| "type": "module" | |
| } |
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 { build } from 'esbuild'; | |
| build({ | |
| entryPoints: ['./index.js'], | |
| bundle: true, | |
| minify: true, | |
| outfile: './build/index.js', | |
| format: 'esm', | |
| platform: 'node', | |
| external: ['./handler.js'], |
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 express from 'express'; | |
| import { handler } from './handler.js'; | |
| const app = express(); | |
| app.get('/healthcheck', (_, res) => res.send('ok')); | |
| app.use(handler); | |
| app.listen(3001); |
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
| npm init svelte | |
| npm install -D express esbuild |
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 os | |
| import bpy | |
| import json | |
| import base64 | |
| bl_info = { | |
| "name": "json exporter", | |
| "blender": (2, 80, 0), | |
| "author": "Chien Tran", | |
| "category": "Import-Export", |
NewerOlder