Skip to content
View robertdempsey's full-sized avatar
Block or Report

Block or report robertdempsey

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned

  1. Sets the value of 'a' to 4, but also... Sets the value of 'a' to 4, but also stores the timestamp from the source for when the notification was published
    1
    /** create connection pool to system DB in MongoDB
    2
    * assume we are using https://www.npmjs.com/package/mongodb
    3
    * assume we begin with:
    4
    {
    5
      system_id: 123,
  2. Shows how we can choose to only upda... Shows how we can choose to only update documents with older values of our property using timestamps
    1
    /** create connection pool to system DB in MongoDB
    2
    * assume we are using https://www.npmjs.com/package/mongodb
    3
    * assume we begin with:
    4
    {
    5
      system_id: 123,
  3. A native omit function that allows y... A native omit function that allows you to specify multiple properties to omit.
    1
    const omit = (keysToOmit: string[], originalObj = {}) => 
    2
      Object.fromEntries(
    3
        Object.entries(originalObj)
    4
          .filter(([key]) => !keysToOmit.includes(key))
    5
    )
  4. ES6RestAndUnsetOmit.ts ES6RestAndUnsetOmit.ts
    1
    const omit = (originalObject = {}, keysToOmit = []) => {
    2
        const clonedObject = { ...originalObject };
    3
      
    4
        for (const path of keysToOmit) {
    5
            _.unset(clonedObject, path)
  5. RouteComponentApp RouteComponentApp Public

    TypeScript 4

  6. vega/ts-json-schema-generator vega/ts-json-schema-generator Public

    Generate JSON schema from your Typescript sources

    TypeScript 1.4k 187