- Create a dune file:
(library
(public_name aggregate_ppx_name)
(kind ppx_rewriter)
(libraries ppx_deriving_protobuf other_ppx another_ppx))
- Build:
dune build --profile release
/* eslint-disable no-console */ | |
/*** | |
* This is a little server that emulates the protocol used by cloudflare's browser rendering API. In | |
* local development, you can run this server, and connect to it instead of cloudflare's (strictly | |
* limited) API. e.g. in your worker you might use a function like this: | |
* | |
* ```ts | |
* import { Browser, launch as launchPuppeteer } from '@cloudflare/puppeteer' | |
* function launchBrowser(env: Environment) { | |
* if (env.LOCAL_BROWSER_ORIGIN) { |
[ | |
{ | |
"bindings": { | |
"ctrl-g": "menu::Cancel", | |
"ctrl-x o": "workspace::ActivateNextPane", | |
"ctrl-tab": "pane::ActivateNextItem", | |
"ctrl-shift-tab": "pane::ActivatePrevItem" | |
} | |
}, | |
{ |
(library
(public_name aggregate_ppx_name)
(kind ppx_rewriter)
(libraries ppx_deriving_protobuf other_ppx another_ppx))
dune build --profile release
(menhir | |
(modules parser)) | |
(ocamllex lexer) | |
(executable | |
(name ex)) |
Swagger (OpenAPI) 2.0 spec to generate New Relic clients and documentation, in response to https://discuss.newrelic.com/t/api-declaration-swagger-for-example/35365
Contributed by Ian Katz [email protected] with permission from Drizly.
# Build image | |
FROM node:10.13-alpine as build | |
# Prepare the environment to install esy. | |
RUN apk add --no-cache \ | |
ca-certificates wget \ | |
bash curl perl-utils \ | |
git patch gcc g++ musl-dev make m4 |
[@@ocaml.doc " Async support for Curl, see https://github.com/ygrek/ocurl/blob/master/curl_lwt.ml "] | |
module M = Curl.Multi | |
type interrupt = unit Async.Ivar.t | |
type multi = | |
{ | |
mt: Curl.Multi.mt ; | |
all_events: (Unix.file_descr, interrupt list) Hashtbl.t ; | |
wakeners: (Curl.t, Curl.curlCode Async.Ivar.t) Hashtbl.t } |