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
| { | |
| "windown.zoomLevel": 1, | |
| "window.commandCenter": false, | |
| "workbench.colorTheme": "Min Dark", | |
| "workbench.iconTheme": "symbols", | |
| "workbench.startupEditor": "newUntitledFile", | |
| "workbench.editor.labelFormat": "short", | |
| "workbench.activityBar.location": "top", | |
| "workbench.statusBar.visible": false, |
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 pretty = { | |
| log: (label, value, type = '') => { | |
| console.log('%c⚡ ' + label, 'background-color: #9b59b6; border-left: 5px solid #8e44ad; padding: 2px 8px'); | |
| switch (type) { | |
| case 'warn': | |
| console.warn(value); | |
| break; | |
| case 'table': |
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
| :root { | |
| --font-family: 'Fira code', sans-serif; | |
| --color-background: #282a36; | |
| --color-foreground: #f8f8f2; | |
| --color-cyan: #8be9fd; | |
| --color-green: #50fa7b; | |
| --color-orange: #ffb86c; | |
| --color-pink: #ff79c6; | |
| --color-purple: #bd93f9; | |
| --color-red: #ff5555; |
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
| # Custom Terminal | |
| getGit() { | |
| local s=''; | |
| local branchName=''; | |
| # Check if the current directory is in a Git repository. | |
| if [ $(git rev-parse --is-inside-work-tree &>/dev/null; echo "${?}") == '0' ]; then | |
| # check if the current directory is in .git before running git checks | |
| if [ "$(git rev-parse --is-inside-git-dir 2> /dev/null)" == 'false' ]; then |
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 map(transformFn) { | |
| const inputObservable = this | |
| const outputObservable = createObervable((outputObservable) => { | |
| inputObservable.subscribe({ | |
| next: (x) => { | |
| const y = transformFn(x) | |
| outputObservable.next(y) | |
| }, | |
| error: (err) => outputObservable.error(err), | |
| complete: () => outputObservable.complete() |
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
| // Send only to the current client | |
| client.emit('message', "this is a test"); | |
| // Send to all customers, including the current | |
| io.emit('message', "this is a test"); | |
| // Send to all clients except current | |
| client.broadcast.emit('message', "this is a test"); | |
| // Send to all clients (exception current) for a specific room |
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
| /** | |
| * Rewrite URL | |
| * | |
| * Change this parameter to url of your website | |
| */ | |
| define('WP_HOME','http://localhost:3000/'); | |
| define('WP_SITEURL','http://localhost:3000/'); |