Skip to content

Instantly share code, notes, and snippets.

@brettz9
Last active August 7, 2026 08:49
Show Gist options
  • Select an option

  • Save brettz9/0993fbde6f7352b2bb05f38078cefb29 to your computer and use it in GitHub Desktop.

Select an option

Save brettz9/0993fbde6f7352b2bb05f38078cefb29 to your computer and use it in GitHub Desktop.
Gist Table of Contents (focusing for now on still useful items or at least interesting experiments); also may organize info on repos
  1. Notes on text (and possibly wysiwyg) editor with a site-neutral plug-in system
  2. Shared Storage; Overcoming domain restrictions
  3. Bottom dollar jQuery lite; see also https://github.com/WebReflection/query-result
  4. Server:
    1. Adapt node-serviceworker to allow IndexedDBShim and change its caching to save retrieved HTML to disk for future reuse (let the service worker's fetch listener become the site middleware)
      const ServiceWorkerContainer = require('node-serviceworker');
      class ServiceWorkerContainerIDBShim extends ServiceWorkerContainer {
          async register (scriptURL, options) {
              const registration = await super.register(scriptURL, options);
              // Todo: Add indexedDB to worker instance
              registration._worker._globalScope.indexedDB = shimIndexedDB;
          }
      }
  5. Templates:
    1. hyperJML (for hyperhtml)
    2. pug-i18n.js (i18n for pug)
    3. XSLT in HTML
    4. PHP in HTML
    5. Jamilih Lite
    6. Jamilih Lite String
  6. HTML
    1. Fixed table headers
  7. Speech Recognition
  8. Speech Synthesis in Mediawiki
  9. Proposals
    1. Iterator (array-like) extras: https://gist.github.com/brettz9/6372591
  10. Browser in Browser; as XBL, but might be adaptable; or https://gist.github.com/brettz9/321851 ?
  11. Form control testing (as with Stickybrains): https://gist.github.com/brettz9/8687257
  12. XSLT/XQuery
    1. See Templates above
    2. XSLTish JS API design using CSS Selectors and some sample code (compare to jtlt using JSONPath
    3. XQueryish JS API
  13. Small utilities for use within libraries
    1. CSSOM: getCSSPropertyValue
    2. Regexes
      1. getECMAScriptEscapesForCodePoint
    3. Simple Promise-based for setTimeout
  14. Linting
    1. eslint-config-ash-nazg home directory (for linting dist, node_modules, and other projects in Home directory--without stylistic rules)
    2. detectEnv.js: Set env and parserOptions.ecmaVersion dynamically for Node-based configs
  15. Re: VPN
    1. Redirect Google automatically when failing
  16. Client-facing utilities
    1. Bulk download helper
    2. Text operations
  17. Thunderbird
    1. Code for opening particular email
  18. npm:
    1. npms star <package> and npm stars to list these (though not listing for me currently).
    2. Note that npm bugs, npm docs (uses Github, not directories.doc), npm repo will open these in browser
    3. npm search <term> also useful for remote; see search
    4. npm explore <someDependency> -- ... interesting for running commands in child directories; see explore.
    5. For Terminal autocomplete (via Tab key), add this to ~/.inputrc:
set completion-ignore-case on
set show-all-if-ambiguous on
# TAB: menu-complete # Uncomment if don't want list of choices
    1. Also add npm-specific subcommands to bashrc by: `npm completion >> ~/.bashrc`. see [completion](https://docs.npmjs.com/cli/completion.html)
  1. Atom
    1. My personal config
    2. My snippets
    3. My keymap
    4. My packages
    5. My stylesheet
    6. Open in Atom
    7. Atom events
    8. ctags
    9. javascript ctags
    10. open-in-sourcetree mod (see also this issue)
    11. atom-edit-command (use of npm edit ...)
  2. Visual Studio Code (VSC)
    1. javascript.json (Snippets)
    2. settings.json (Basic IDE settings)
  3. Firefox
    1. Tree Style Tab styling
  4. Sourcetree
    1. Custom actions
  5. Anki (can tweak following for Chinese-characters-only or Chinese-sound-only)
    1. card type templates (Chinese/pinyin/sound -> English) with Google images link
    2. card type templates (English -> Chinese/pinyin/sound) with Google images link
    3. card type templates (Chinese/pinyin/sound -> English) with Google images link and auto-advance
    4. card type templates (English -> Chinese/pinyin/sound) with Google images link and auto-advance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment