102 <li className="pb-2 sm:pb-1">
103 <span className={dateClass}>2013 Jun -</span>Software Engineer @{" "}
104 <Link href="http://firstround.com/">First Round Capital</Link>
105 </li>
106 <li className="pb-2 sm:pb-1">
1# Echo incoming request as JSON
2See https://developer.mozilla.org/en-US/docs/Web/API/Request
3
4
1const baseURL = `https://www.val.town/api/trpc`;
2
3export const trpc = {
1# trpc
2
3 Access private Val Town apis.
4
5> ⚠️ trpc endpoints can change at any time
53 const builder = recast.types.builders;
54
55 let tapImportIdentifier = "t";
56 const testUtils = [
57 "describe",
88 const specifier = path.node.specifiers[0];
89 if (specifier && specifier.local) {
90 tapImportIdentifier = specifier.local.name.toString();
91 }
92 return false;
96 recast.visit(ast, {
97 visitExpressionStatement(path) {
98 removeMochaGlobal(path as NodePath, tapImportIdentifier, {
99 asserts,
100 });
127function removeMochaGlobal(
128 path: NodePath,
129 tapImportIdentifier: string,
130 { asserts }: { asserts: typeof recast.types.namedTypes },
131) {
144
145 const calleeName = path.node.expression.callee.object.name;
146 if (calleeName !== tapImportIdentifier) {
147 return false;
148 }
1null
2
3Migrated from folder: Archive/vtOpenAPI
1Migrated from folder: Archive/vtOpenAPI
1# Notehub
2
3A set of helper functions for interacting with the Notehub API
4
5Requires `NOTEHUB_CLIENT_ID` and `NOTEHUB_CLIENT_SECRET` [environment variables](https://www.val.town/settings/environment-variables) to be configured.
1Retrieve a city for a given coordinates in the format `[longitude, latitude]`.
2
3An `OPENCAGE_API_KEY` variable is necessary and can be [obtained for free on their website](https://opencagedata.com/pricing).
4
5Migrated from folder: geographic/cities
5import msg from "https://esm.town/v/pomdtr/msg"
6
7import {capitalize} from "https://esm.sh/lodash-es"
8
9export const title = "mdx rendered from a val readme"
10
11# {capitalize(title)}
12
13> {msg}