profile
viewpoint

everdimension/check.ru 1

domain check web app

airynnae/shirts4mike 0

treehouse php training

everdimension/angular.js 0

HTML enhanced for web apps

everdimension/animated 0

Declarative Animations Library for React and React Native

everdimension/app-example-basic 0

An example app used to compare against a slot-fill pattern

everdimension/app-example-slot-fill 0

An example app used to demonstrate the Slot-Fill design pattern

everdimension/astroturf 0

An "artificial" css-in-js for those that want it all.

everdimension/babel 0

:tropical_fish: Babel is a compiler for writing next generation JavaScript.

everdimension/backbone 0

Give your JS App some Backbone with Models, Views, Collections, and Events

startedoxalica/rust-overlay

started time in 10 hours

startedfigsoda/fenix

started time in 10 hours

push eventnumldesign/numl

Andrey Yamanov

commit sha a0daed05666c0a4b1289957e427fbd44ef53cf65

links: minor refactoring

view details

push time in a day

push eventnumldesign/numl

Andrey Yamanov

commit sha b927b0e7024ec65062245d0cdb97221be08a4c9e

fileinput: transfer accept attribute

view details

push time in a day

startedw3f/polkadot-secure-validator

started time in 2 days

startedLedgerHQ/udev-rules

started time in 2 days

startedcfsamson/book-exploring-async-basics

started time in 3 days

startedemilk/egui

started time in 3 days

push eventnumldesign/numl

Shubham Kaushal

commit sha 9309dc1e1447a4bc06d5e29a3a22d1cf974c2c5a

Update README.md

view details

push time in 3 days

push eventnumldesign/numl

Shubham Kaushal

commit sha 94750216af5cb726323c4646da83a4c538ca90dd

Update README.md

view details

push time in 3 days

startedepi052/feroxbuster

started time in 3 days

startedb0o/surfingkeys-conf

started time in 3 days

startedsmartcontractkit/chainlink-polkadot

started time in 3 days

issue commentreactjs/rfcs

Is useReducer an overengineering?

Version with useMemo and typescript:

interface IObject {
  [key: string]: unknown;
}

interface IUpdater<T extends IObject> {
  (...params: any[]): T;
}

interface IUpdaterDictionary<T extends IObject> {
  [key: string]: IUpdater<T>;
}

interface IWrappedUpdater {
  (...params: any[]): void;
}

interface IWrappedUpdaterDictionary {
  [key: string]: IWrappedUpdater;
}

function useStateWithUpdaters<
  TState extends IObject,
  TUpdaters extends IUpdaterDictionary<TState>
>(
  defaultState: TState,
  updaters: TUpdaters
): [TState, IWrappedUpdaterDictionary] {
  const [state, updateState] = useState(defaultState);

  const memoizedUpdaters = useMemo<IWrappedUpdaterDictionary>(() => {
    const wrappedUpdaters: IWrappedUpdaterDictionary = {};
    for (let updaterName in updaters) {
      wrappedUpdaters[updaterName] = (...params: any[]): void => {
        updateState((prevState) => {
          const updater = updaters[updaterName];
          return updater(prevState, ...params);
        });
      };
    }
    return wrappedUpdaters;
  }, []);

  return [state, memoizedUpdaters];
}

using:

interface ICounterState {
  count: number;
}

const updaters = {
  subtract: (prevState: ICounterState, value: number) => ({
    ...prevState,
    count: prevState.count - value
  }),
  add: (prevState: ICounterState, value: number) => ({
    ...prevState,
    count: prevState.count + value
  })
};

const MyComponent = () => {
  const [{ count }, { subtract, add }] = useStateWithUpdaters(
    { count: 0 },
    updaters
  );
  return (
    <div>
      Count: {count}
      <button onClick={() => subtract(1)}>-</button>
      <button onClick={() => add(1)}>+</button>
    </div>
  );
};
sergeysibara

comment created time in 3 days

push eventnumldesign/numl

Andrey Yamanov

commit sha af3f44b1d88214898073db396e7ce4c61c8a9c37

css: remove unused helper

view details

push time in 3 days

issue closedreactjs/rfcs

[Question] The new JSX transform

I transpile to js, (from parenscript if you care) and there I use a transform into React.createElement which makes me interested in the new transform in React 17 (mentioned here).

That, in turn, links to a file not in master, but that file is written in the form of a proposal, and it's not clear whether it represents the final details.

Is there another document with the details?

closed time in 3 days

pjstirling

issue commentreactjs/rfcs

[Question] The new JSX transform

Hey @pjstirling, thanks for submitting the question.

This repo isn't the right place for these type of questions, but here's the information I think you're looking for. Most of the discussion on this is in the RFC. The implementation of the new JSX functions are available here. You also probably want to reference the Babel plugin that transforms JS, which is here.

pjstirling

comment created time in 3 days

startedAcalaNetwork/Acala-white-paper

started time in 3 days

push eventnumldesign/numl

Shubham Kaushal

commit sha 6a8a8721a1360991709a5b3ecda70bc13ab19c35

Update README.md

view details

push time in 4 days

startedRyabina-io/substratebot

started time in 4 days

startedlibp2p/libp2p

started time in 4 days

push eventnumldesign/numl

Andrey Yamanov

commit sha 36e8cbd669e3f21a5b2b309cb37b89ea0bbbdcf7

nu-btn: fix default font weight

view details

push time in 5 days

startedw3f/validator-stats

started time in 5 days

push eventnumldesign/numl

Andrey Yamanov

commit sha 3a33cdf8788962f052b363ad75284d5d372ef814

[nu-listbox]: design update

view details

Andrey Yamanov

commit sha 3cb86ed6127d9389c5916abd3e5da2c6de267519

[nu-option]: fix mark effect

view details

Andrey Yamanov

commit sha 90e3a63f3f29e8b0f77e380ec8ce5146b636dd9b

nu-menu: design update | [inset]: hotfix for default value

view details

push time in 5 days

startedsweirich/lennart-lambda

started time in 5 days

startedtsoding/bm

started time in 5 days

pull request commentruimarinho/google-libphonenumber

Update libphonenumber@8.12.16

It's funny because the only missing request is the one to open the PR. Branches are currently pushed, so I am literally taking about one second more.

image

mathieumg

comment created time in 5 days

pull request commentruimarinho/google-libphonenumber

Update libphonenumber@8.12.16

Thank you @mathieumg - unfortunately I cannot get Vercel to complete inside the 10s window they provide on the free plan. I've tried everything but git operations aren't exactly fast... I've asked for an extension, so let's see what they say!

time="2021-01-12T06:26:55Z" level=info msg="Pushing to remote origin https://github.com/ruimarinho/google-libphonenumber.git"
Resolving deltas:   0% (0/2)
Resolving deltas:  50% (1/2)
Resolving deltas: 100% (2/2)
Resolving deltas: 100% (2/2), done.
2021-01-12T06:26:59.186Z a8d41d1c-84fd-4ae3-aa75-345f745cc537 Task timed out after 10.00 seconds
mathieumg

comment created time in 5 days

push eventruimarinho/google-libphonenumber

Rui Marinho

commit sha 3aca6300e09b4f7c4c4d9e643313f06779f246af

Release 3.2.16

view details

push time in 5 days

created tagruimarinho/google-libphonenumber

tagv3.2.16

The up-to-date and reliable Google's libphonenumber package for node.js.

created time in 5 days

more