Giter Club home page Giter Club logo

tiamut's Introduction

๐Ÿ‘‹. I build things

Gmail LinkedIn


Capriote
Avi


Java TypeScript Python

Spring NodeJS Express.js React React Native NestJS Next JS Redux




Stats 3D

Stats Overview


Code Time

Lines of code

๐Ÿฑ My GitHub Data

๐Ÿ“ฆ 69.7 kB Used in GitHub's Storage

๐Ÿ† 1,777 Contributions in the Year 2024

๐Ÿ’ผ Opted to Hire

๐Ÿ“œ 28 Public Repositories

๐Ÿ”‘ 7 Private Repositories

I'm a Night ๐Ÿฆ‰

๐ŸŒž Morning                101 commits         โ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   16.92 % 
๐ŸŒ† Daytime                144 commits         โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   24.12 % 
๐ŸŒƒ Evening                244 commits         โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   40.87 % 
๐ŸŒ™ Night                  108 commits         โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   18.09 % 

๐Ÿ“… I'm Most Productive on Sunday

Monday                   115 commits         โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   19.26 % 
Tuesday                  89 commits          โ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   14.91 % 
Wednesday                46 commits          โ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   07.71 % 
Thursday                 37 commits          โ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   06.20 % 
Friday                   53 commits          โ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   08.88 % 
Saturday                 88 commits          โ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   14.74 % 
Sunday                   169 commits         โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   28.31 % 

๐Ÿ“Š This Week I Spent My Time On

๐Ÿ•‘๏ธŽ Time Zone: America/New_York

๐Ÿ’ฌ Programming Languages: 
Python                   5 hrs 23 mins       โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   38.27 % 
TypeScript               3 hrs 36 mins       โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   25.62 % 
JavaScript               2 hrs 44 mins       โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   19.50 % 
YAML                     1 hr 17 mins        โ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   09.20 % 
JSON                     43 mins             โ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   05.13 % 

๐Ÿ”ฅ Editors: 
VS Code                  14 hrs 4 mins       โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ   100.00 % 

๐Ÿ’ป Operating System: 
Mac                      14 hrs 4 mins       โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ   100.00 % 

I Mostly Code in TypeScript

TypeScript               8 repos             โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   50.00 % 
JavaScript               7 repos             โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   43.75 % 
Java                     1 repo              โ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘   06.25 % 

Last Updated on 23/08/2024 00:54:30 UTC


๐Ÿ”ฅ Streak stats

anduong96's streak



tiamut's People

Contributors

anduong96 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

tiamut's Issues

Support Async Actions

The interface should be something like this

const store = createStoreHook(
    createStore({
      initialState: 1,
      actions: {},
      asyncActions: {
        // setState is to update state if necessary
        async doAsync(a, b , c) {
          const data = await Promise.resolve();
          
          // this.setState, this.getState, this.resetState,  this.getInitialState


          return data
        },
      },
    }),
  );


// should be able to trigger outside of component
async function doSomething() {
  // will replace cache every single time unless specified
  const v = await  store.asyncActions.doASync({}, { 
    useCache: boolean 
  })


  return v
}

const App =  () => {
  const params = { a, b, c }
  const { value, loading, execute, status, error } = store.useAsyncAction.doAsync(params, {
    // Should automatically create key from param and function name,
    // param only be primitives
    customKey: 'something', 

    // should only execute if query is stale once
    // enabled:  boolean,
  }) 
}

TODO:
[ ] How does react-query do it?
[ ] Query TTL?
[ ]
[ ] Impl

listeners options for createCombinedStoresHook

Should be something like this

export function createCombinedStoresHook<
  S extends StoreMap,
  O extends CombinedSelectorsMap<S>,
>(storeMap: S, options?: { selectors?: O; listeners?: any[] }) {
  const { selectors, listeners } = options ?? {};
  type M = MergeState<S>;

  function addListeners() {
    if (listeners) {
      for (const listener of listeners) {
        for (const _storeK of Object.keys(storeMap)) {
          const storeK = _storeK as keyof typeof storeMap;
          storeMap[storeK]?.subscribe((c, p, actionName) =>
            listener(c, p,  [storeK, actionName].join('/')),
          );
        }
      }
    }
  }

  addListeners()

 //....rest
}

TODO:
[ ] Typing

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.