Skip to content

Instantly share code, notes, and snippets.


ZpdDG4gta zpdDG4gta8XKpMCd

Block or report user

Report or block zpdDG4gta8XKpMCd

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View invert-mouse-in-unity.cs
using UnityEngine;
using UnityEditor;
// modified version of
// TODO: orbiting mode is gone, need to restore
namespace B83.UnityEditor
public class SceneViewCamSpeed : EditorWindow
var require = {
    baseUrl: "./",
    paths: {
        'react': '',
        'react-dom': '',
        'text': '',
        'json': ''
    packages: [
zpdDG4gta8XKpMCd /
Last active Jul 16, 2018
custom protocol registration

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

You can’t perform that action at this time.