<p align="center">
<img src="https://placehold.co/300x200" />
</p>
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
| function mergeArrayObjects(target = [], updates = [], where = []) { | |
| return [...target, ...updates].reduce((result, curr) => { | |
| const existingIndex = result.findIndex((el) => { | |
| return where.every((prop) => el[prop] === curr[prop]); | |
| }); | |
| if (existingIndex > -1) { | |
| result[existingIndex] = { ...result[existingIndex], ...curr }; | |
| } else { | |
| result.push(curr); | |
| } |
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
| /** | |
| * Example of a workflow that takes an initial value and | |
| * passes it through a series of functions. Each function' | |
| * output is the input of the next function. The final | |
| * output of the workflow is the output of the last function. | |
| */ | |
| const exampleWorkflowFailure = createWorkflow(addOne, double, wait, square) | |
| exampleWorkflowFailure(5) |
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
| # !/bin/bash | |
| VERSION=0.0.1 | |
| NONINTERACTIVE=1 # for homebrew install | |
| DRY_RUN=false | |
| ENABLED_DEFAULT=true | |
| TAPS_ENABLED=$ENABLED_DEFAULT | |
| TAPS_ENABLED_ASK=true |
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
| /** | |
| * A class to create a enum style object class to hold static values. | |
| * The constructor will accept an anonymous class, object, array or | |
| * multiple strings as enum constants. | |
| * | |
| * @example | |
| * const Size1 = new Enum(class { | |
| * SM; | |
| * MD; |
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
| Ext.define('Ext.ux.DynamicHeightTabPanel', { | |
| extend: 'Ext.tab.Panel', | |
| alias: 'widget.dynamic-height-tabpanel', | |
| initConfig() { | |
| this.callParent(arguments); | |
| this.on({ | |
| painted: { | |
| fn: 'updateInitialCardHeight', |
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 { readdirSync, statSync } = require('fs'); | |
| const { resolve, parse } = require('path'); | |
| async function tree(path = '.', opts = {}) { | |
| path = resolve(path); | |
| opts = Object.assign({ toArray: false, depth: 1, maxDepth: 5 }, opts); | |
| const list = opts.toArray ? [] : new Map(); | |
| const currentDepth = opts.depth; |
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
| SELECT | |
| NAME, | |
| COLTYPE, | |
| LENGTH, | |
| TBNAME | |
| FROM SYSIBM.SYSCOLUMNS | |
| WHERE NAME = 'CTL_NO'; | |
| -- SEARCH FOR |
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
| -- params: I hate everything about this. | |
| -- 1,2,3) SORT BY : CONTAINER_TYPE | |
| -- 4) OBJECT_TYPE : ITEM_HAZMAT | |
| -- 5) COLUMN TO SEARCH : ITEM_NO | |
| -- 6) VALUE TO SEARCH FOR : 00876773 | |
| SELECT | |
| OBJECT_TYPE, | |
| OBJECT_ID_VALUE, | |
| KEY, |
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
| Ext.define('Ext.grid.plugin.CellEditing', { | |
| override: 'Ext.grid.plugin.CellEditing', | |
| activateCell: function(location) { | |
| var me = this, | |
| activeEditor = me.activeEditor, | |
| previousEditor = me.$previousEditor, | |
| editor, selModel, result; | |
| if (!location) { |
NewerOlder