Skip to content

Instantly share code, notes, and snippets.

View christarnowski's full-sized avatar

Krzysztof Tarnowski christarnowski

View GitHub Profile
@christarnowski
christarnowski / Code for "Making notarization work on macOs for Electron apps built with Electron Builder"
Last active February 16, 2021 15:14
A set of files required for making notarization work for Electron Builder on macOS.
See https://christarnowski.com/making-notarization-work-on-macos-for-electron-apps-built-with-electron-builder for more information.

Keybase proof

I hereby claim:

  • I am christarnowski on github.
  • I am christarnowski (https://keybase.io/christarnowski) on keybase.
  • I have a public key ASDoFbrJwyehqcGkmRs2DI3bPiZAHIZz1ypvBVdD9Nyiqgo

To claim this, I am signing this object:

@christarnowski
christarnowski / mongoose_polymorphic_schemas.md
Created October 25, 2012 19:45
Mongoose Polymorphic Schemas API design document

@hitsthings Your API is worth considering, without a doubt. My remarks:

  • It introduces new entities/method, which is not a big deal, but should be avoided if possible.
  • Does not support multiple parent schemas ("classes"). The latter of course can be easily fixed by using an array instead of a String value for _type(s).
  • I like that you're able to chose the property that holds the type information.
  • I think parent properties should be included by default, which is in line with programmers intuition.

I came up with an alternative approach that keeps the changes to the current API to a bare minimum and leverages the way models are created and cached.

Alternative approach