US Congress Stock Trading API examples & templates
Use these vals as a playground to view and fork US Congress Stock Trading API examples and templates on Val Town. Run any example below or find templates that can be used as a pre-built solution.
![stevekrouse avatar](https://images.clerk.dev/uploaded/img_2PqHa2Gsy93xQrjh2w78Xu0cChW.jpeg)
stevekrouse
createGithubIssue
Script
This helper function creates a Github Issue in the specified repo,
assigned to whoever you want. It also adds it into the current
milestone. We use this in @stevekrouse/renderEmails to auto-create issues
when we have server restarts, in the current milestone,
assigned to @maxm, our infra guy. import { createIssue } from 'https://esm.town/v/stevekrouse/createGithubIssue';
console.log(
await createIssue({
title: "Test Issue",
body: "This is a test issue.",
repoOwner: "val-town",
repoName: "val.town",
assignee: "maxmcd",
githubToken: Deno.env.get("GITHUB_CONTRIBUTIONS"),
}),
);
1
![stevekrouse avatar](https://images.clerk.dev/uploaded/img_2PqHa2Gsy93xQrjh2w78Xu0cChW.jpeg)
stevekrouse
dns_record_debugger
HTTP
Proxied Web Browser – DNS Debugger Proxied web browser for debugging new DNS records It's difficult to verify new DNS records. If you check too early, the old records may get cached on your computer, browser, or local network. This tool uses a proxied fetch so you can always view your web page uncached. Uses @std/fetch on the backend to ensure the DNS records of the request are from new places every request. Version 4 of this val also showed DNS records, pulled on the server,
but I removed that featured, because those records are likely
subject to caching. It'd be an improvement to this tool if we
could add an uncached DNS check in here. In a couple min I wasn't
able to find a free DNS checker API. Pull requests welcome!
3