Skip to content

Instantly share code, notes, and snippets.

--- 3.0.3.md 2023-12-09 17:21:54
+++ 3.1.0.md 2023-12-09 17:21:54
@@ -1,6 +1,6 @@
# OpenAPI Specification
-#### Version 3.0.3
+#### Version 3.1.0
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [BCP 14](https://tools.ietf.org/html/bcp14) [RFC2119](https://tools.ietf.org/html/rfc2119) [RFC8174](https://tools.ietf.org/html/rfc8174) when, and only when, they appear in all capitals, as shown here.
#!/usr/bin/env node
"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
@podhmo
podhmo / 00app.tsx
Last active November 12, 2023 08:24
import { h, Fragment } from 'preact';
import { useState } from 'preact/hooks';
import type { ComponentChildren } from 'preact';
export const App = () => {
const [count, setCount] = useState(0);
return (<>
<h1>hello</h1>
import { h, Fragment } from 'preact';
import { useState} from 'preact/hooks';
import type { ComponentChildren } from 'preact';
export const App = () => {
const [count, setCount] = useState(0);
return (<>
<h1>hello</h1>
<!doctype html>
<html lang="ja">
<head>
<meta charset="utf-8">
<title>preact sandbox</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- css -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@1/css/pico.min.css">
SHELL = bash
serve:
esbuild --serve=8080 --servedir=. --outfile=app.js app.tsx
main.js: app.tsx main.ts
esbuild --bundle --outfile=main.js --keep-names main.ts
SHELL = bash
serve:
esbuild --serve=8080 --servedir=. --outfile=app.js app.tsx

esbuild --serverだけでjsxを試せる

$ esbuild app.jsx --outfile=out.js --serve --servedir=.
@podhmo
podhmo / gopls-api.json
Created September 29, 2023 16:31
gopls api-json
{
"Options": {
"User": [
{
"Name": "buildFlags",
"Type": "[]string",
"Doc": "buildFlags is the set of flags passed on to the build system when invoked.\nIt is applied to queries like `go list`, which is used when discovering files.\nThe most common use is to set `-tags`.\n",
"EnumKeys": {
"ValueType": "",
"Keys": null
@podhmo
podhmo / main.go
Last active September 3, 2023 14:30
package main
import (
"bytes"
"encoding/json"
"fmt"
"os"
"github.com/perimeterx/marshmallow"
)