Instantly share code, notes, and snippets.

Aleksey Bykov aleksey-bykov

View GitHub Profile
var require = {
    baseUrl: "./",
    paths: {
        'react': '',
        'react-dom': '',
        'text': '',
        'json': ''
    packages: [

assuming your have node.js installed

this is a self contained minimal example of how your can register a custom protocol and it's handler all relative to your local folder

you need the following files in your folder:


const { resolve } = require('path');
View gist:13d1d3ff0bd6d9a324f85d1aecda4baf
- doc for lambdas in js:
- doc for alexa responses:
- aws logs:
- aws lambas:
- alexa test:
- all skills:

what is a resolver?

  • A resolver is an abstraction that solves the problem of handling each possible case of a sum-type like union or enum.

why wouldn't you use a switch?

  • The switch can only be used when all cases are of specific types (or at least constrained to having a property to be discriminated upon). When we deal with a union of all generics that we don't know anything about, we need some help from outside to narrow them. This is where a resolver comes handy.

what is the catch?

  • It requires a bit of unsoundness in mapping the original sum-type to each specific case which you need to do by hand without any help from the compiler, however practically the benefits outweigh a slight chance of mistake.

what are the benefits?

  • know what process is connected to where: netstat -a -b -f -o > log.txt
  • run gpedit.msc
  • go Computer Configuration >> Administrative Templates >> Windows Components >> Data Collection and Preview Builds >> Allow Telementry
  • disable


  • live-z adjustment: -0.980
  • bad correction:
    • left: -20
    • right: 0
    • front: -45
    • rear: 0

3d tools