Skip to content

Instantly share code, notes, and snippets.

View behzad888's full-sized avatar

Behzad Abbasi behzad888

View GitHub Profile
const {useCallback, useEffect, useReducer, useRef} = require('react');
let effectCapture = null;
exports.useReducerWithEmitEffect = function(reducer, initialArg, init) {
let updateCounter = useRef(0);
let wrappedReducer = useCallback(function(oldWrappedState, action) {
effectCapture = [];
try {
let newState = reducer(oldWrappedState.state, action.action);

Contributor License Agreement ("Agreement") You accept and agree to the following terms and conditions for Your past, present and future Contributions submitted to ReactX. ("ReactX"). Except for the license granted herein to ReactX and recipients of software distributed by ReactX, You reserve all right, title, and interest in and to Your Contributions.

1- Definitions.

  • "You" (or "Your") shall mean the copyright owner or legal entity authorized by the copyright owner that is making this Agreement with ReactX. For legal entities, the entity making a Contribution and all other entities that control, are controlled by, or are under common control with that entity are considered to be a single Contributor.

  • For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.

  • "C

@behzad888
behzad888 / Bpmneditordoc.md
Created April 30, 2019 05:48 — forked from heshanjse/Bpmneditordoc.md
BPMN editor help users to implement BPMN diagrams using tasks,gateways,start events and end events.This BPMN editor has the capability to build complete Business Process diagrams; download Business Process diagrams files in Json format; upload json format file and generate Business Process diagrams.
                					 Google Summer of Code 2016

Student : Heshan Jayasinghe

Project Name : Web (Javascript / D3) based BPMN editor to support a subset of commonly used BPMN constructs

Organization: Wso2

@behzad888
behzad888 / app.html
Last active May 26, 2017 20:01 — forked from Ruchir-zealous/app.html
Aurelia - bindable in compose
<template>
<div class="darklue">
<button click.delegate="add()">add new element</button>
<template repeat.for="control of controls">
<compose view-model.bind="control.type" model.bind="control.value" ></compose>
control.value = ${control.value}
</template>
</div>
</template>

Keybase proof

I hereby claim:

  • I am behzad888 on github.
  • I am behzad88 (https://keybase.io/behzad88) on keybase.
  • I have a public key whose fingerprint is 9642 B498 4C2C C152 7754 F72A 33A4 20A1 EB86 22A0

To claim this, I am signing this object: