Avatar

vladimyr

Joined August 5, 2023
Public vals
107
vladimyr avatar
bookmarkletHighlightForks
@vladimyr
Script
Highlight forks on https://www.val.town/newest #bookmarklet
vladimyr avatar
oakExample
@vladimyr
HTTP
An interactive, runnable TypeScript val by vladimyr
vladimyr avatar
denoServer
@vladimyr
Script
An interactive, runnable TypeScript val by vladimyr
vladimyr avatar
honoExample
@vladimyr
HTTP
An interactive, runnable TypeScript val by vladimyr
vladimyr avatar
ittyRouterExample
@vladimyr
HTTP
An interactive, runnable TypeScript val by vladimyr
vladimyr avatar
pekoExample
@vladimyr
HTTP
An interactive, runnable TypeScript val by vladimyr
vladimyr avatar
nhttpExample
@vladimyr
HTTP
An interactive, runnable TypeScript val by vladimyr
vladimyr avatar
kv_example
@vladimyr
Script
// const store = sqliteStore; /* same as: const store = createStore({ table: "keyv" });
vladimyr avatar
msw_example
@vladimyr
Script
// import { setupWorker } from "npm:msw/browser";
vladimyr avatar
googleFeelingLucky_test
@vladimyr
Script
An interactive, runnable TypeScript val by vladimyr
vladimyr avatar
googleFeelingLucky
@vladimyr
HTTP
Google Feeling Lucky auto-redirect !lucky DuckDuckGo !Bangs offer the following shortcuts for Google's Feeling Lucky (going straight to the first result) search option: !fl - http://www.google.com/search?btnI&q={{{s}}} !gifl - http://google.com/search?btnI=1&q={{{s}}} !gluck - http://www.google.com/search?q={{{s}}}&btnI !lucky - http://www.google.com/search?q={{{s}}}&btnI Unfortunately, they don't work anymore due to redirect notices that get shown. This service enables you to skip redirect notice by altering your search from the original query e.g.: https://www.google.com/search?q=site:developer.mozilla.org+Object.hasOwn&btnI To the modified one made against this val's HTTP endpoint: https://vladimyr-googlefeelinglucky.web.val.run/?q=site:developer.mozilla.org+Object.hasOwn Additionally, you can define custom search shortcut inside your browser to allow a local bang-like experience: Name: Google Feeling Lucky Shortcut: !lucky URL with %s in place of query: https://vladimyr-googlefeelinglucky.web.val.run/?q=%s
vladimyr avatar
dataURL_example
@vladimyr
Script
An interactive, runnable TypeScript val by vladimyr
vladimyr avatar
fetch_impl_examples
@vladimyr
Script
An interactive, runnable TypeScript val by vladimyr
vladimyr avatar
insecureFetch
@vladimyr
Script
Insecure SSL Cert Fetch This will be useful if you're getting a invalid peer certificate: UnknownIssuer error . If you need to make a fetch request to a website with a dubious or non-standard SSL certificate, you can use this proxy we made on Cloudflare workers (which doesn't verify SSL certs): https://unsecure-fetch.val-town.workers.dev/ import { insecureFetch } from "https://esm.town/v/stevekrouse/insecureFetch"; const url = "https://assignment-api.uspto.gov/patent/basicSearch?query=1234567&fields=main&rows=20"; const data = await insecureFetch(url) const text = await data.text(); console.log(text)
vladimyr avatar
multikey_jwk_jcs_example
@vladimyr
Script
// @see: https://datatracker.ietf.org/doc/html/rfc7517#appendix-A.1
vladimyr avatar
jwkToDidKey_tests
@vladimyr
Script
// @see: https://w3c-ccg.github.io/did-method-key/#example-5