Skip to content

Instantly share code, notes, and snippets.

View childrentime's full-sized avatar
🎯
Focusing

Berlin childrentime

🎯
Focusing
  • ShangHai
  • 17:30 (UTC +08:00)
View GitHub Profile
@inexorabletash
inexorabletash / @ IndexedDB Full Text Search (Proof of Concept).md
Last active July 17, 2024 05:47
IndexedDB Full Text Search (Proof of Concept)

This demonstrates the implementation of full text search for documents in Indexed DB.

  • Word-breaking and stemming is used to create a list of terms for each document.
  • Document records are annotated with the list of terms when added to the database.
  • A multi-entry index on the list of terms is populated.
  • A query is similarly processed into a list of terms.
  • A join over the terms is implemented using multiple cursors on the index.

The necessity of annotating records with the word list to populate the index is a limitation of the current Indexed DB API. A feature request to support custom

@cecilemuller
cecilemuller / 2019-https-localhost.md
Last active July 20, 2024 14:39
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

@felskov
felskov / type-check.mjs
Last active March 4, 2024 05:56
simple script to run TypeScript in --incremental --noEmit mode, while ignoring errors in any files outside the project folder (useful in mono repos with different and incompatible tsconfig.json's per package)
#!/usr/bin/env node
import path from "path";
import ts from "typescript";
//
// parse tsconfig.json
//
const configFilePath = ts.findConfigFile(