├── 📂 apps
│ ├── 📂 administration
│ │ ├── 📦 main
│ │ ├── 📂 shared
│ │ │ └── 📂 contracts
│ │ │ └── 📦 navigation
│ ├── 📂 inventory
│ │ ├── 📂 features
│ │ | └── 📦 promotions
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 useAbortController(deps=[]) { | |
| const abortControllerRef = React.useRef<AbortController>() | |
| React.useEffect(() => { | |
| return () => abortControllerRef.current?.abort() | |
| }, deps) | |
| const getSignal = React.useCallback(() => { | |
| if (!abortControllerRef.current) { | |
| abortControllerRef.current = new AbortController() |
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 setURL = (url) => { | |
| const parser = document.createElement('a'); | |
| parser.href = url; | |
| ['href', 'protocol', 'host', 'hostname', 'origin', 'port', 'pathname', 'search', 'hash'].forEach(prop => { | |
| Object.defineProperty(window.location, prop, { | |
| value: parser[prop], | |
| writable: 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
| # 0 is too far from ` ;) | |
| set -g base-index 1 | |
| # Automatically set window title | |
| set-window-option -g automatic-rename on | |
| set-option -g set-titles on | |
| #set -g default-terminal screen-256color | |
| set -g status-keys vi | |
| set -g history-limit 10000 |
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
| defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}' | |
| killall Dock |
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
| // Determine if an element is in the visible viewport | |
| function isInViewport(element) { | |
| var rect = element.getBoundingClientRect(); | |
| var html = document.documentElement; | |
| return ( | |
| rect.top >= 0 && | |
| rect.left >= 0 && | |
| rect.bottom <= (window.innerHeight || html.clientHeight) && | |
| rect.right <= (window.innerWidth || html.clientWidth) | |
| ); |
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
| { | |
| "version": "0.1.0", | |
| // List of configurations. Add new configurations or edit existing ones. | |
| // ONLY "node" and "mono" are supported, change "type" to switch. | |
| "configurations": [ | |
| { | |
| // Name of configuration; appears in the launch configuration drop down menu. | |
| "name": "Run app.js", | |
| // Type of configuration. Possible values: "node", "mono". | |
| "type": "node", |
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 log = (...args) => { | |
| console.log(...args) | |
| return args | |
| } |
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
| # Linking of packages | |
| # warning use it not often (dont link a package was has also a link) | |
| # do that in the project that you want to link | |
| npm link | |
| # do that in the project that needs the linking | |
| npm unlink --global @signavio/effektif-commons | |
| # check if a link is active |
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
Show hidden characters
| { | |
| "bootstrapped": true, | |
| "in_process_packages": | |
| [ | |
| ], | |
| "installed_packages": | |
| [ | |
| "Base64 Fold", | |
| "BracketGuard", | |
| "BracketHighlighter", |
NewerOlder