This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const roomMachine = Machine({ | |
| id: '100ms rooms', | |
| initial: 'home', | |
| context: { | |
| isPermissionGiven: false, | |
| isNew: true | |
| }, | |
| states: { | |
| home: { | |
| on: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const nstates = { | |
| id: "pre call", | |
| initial: "a", | |
| states: { | |
| a: { | |
| on: { | |
| X: 'b' | |
| } | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const underwritingStates = { | |
| id: "underwriting", | |
| initial: "PENDING", | |
| states:{ | |
| PENDING: { | |
| on: { | |
| approve: "APPROVED", | |
| reject: "REJECTED", | |
| ask_for_cosigner: "COSIGNER_NEEDED" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const loanMachine = Machine({ | |
| id: 'loan', | |
| initial: 'PAYMENT_DETAILS', | |
| context: { | |
| cosigners: 0, | |
| awesome: false, | |
| }, | |
| states: { | |
| PAYMENT_DETAILS: { | |
| on: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Current version copied from https://github.com/open-wa/wa-automate-nodejs/blob/master/src/lib/wapi.js | |
| if (!window.Store||!window.Store.Msg) { | |
| (function () { | |
| function getStore(modules) { | |
| let foundCount = 0; | |
| let neededObjects = [ | |
| { id: "Store", conditions: (module) => (module.default && module.default.Chat && module.default.Msg) ? module.default : null}, | |
| { id: "MediaCollection", conditions: (module) => (module.default && module.default.prototype && (module.default.prototype.processFiles !== undefined||module.default.prototype.processAttachments !== undefined)) ? module.default : null }, | |
| { id: "MediaProcess", conditions: (module) => (module.BLOB) ? module : null }, | |
| { id: "Archive", conditions: (module) => (module.setArchive) ? module : null }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker run --rm -v $(pwd):/app composer:latest install --no-dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| javascript:window.results = ([].slice.apply(document.querySelectorAll('#div1 tr'))).slice(3,-1).map(row => {const cells = row.querySelectorAll('td');return {c:cells[0].innerText,p: cells[1].innerText,v:Number(cells[2].innerText)}}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| setTimeout(function() { | |
| function getAllModules() { | |
| return new Promise((resolve) => { | |
| const id = _.uniqueId("fakeModule_"); | |
| window["webpackJsonp"]( | |
| [], | |
| { | |
| [id]: function(module, exports, __webpack_require__) { | |
| resolve(__webpack_require__.c); | |
| } |