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=${1:-1.0.2-b.2} | |
| echo "Downloading version ${VERSION}..." | |
| wget "https://github.com/zen-browser/desktop/releases/download/${VERSION}/zen.linux-specific.tar.bz2" -O /tmp/zen.linux-specific.tar.bz2 | |
| echo "Removing old build (if it exists)..." |
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
| [Desktop Entry] | |
| Name=Zen Browser | |
| Exec=/usr/local/src/zen/zen-bin | |
| Icon=/usr/local/src/zen/browser/chrome/icons/default/default128.png | |
| Type=Application | |
| MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;application/x-xpinstall;application/pdf;application/json; | |
| StartupWMClass=zen-alpha | |
| Categories=Network;WebBrowser; | |
| StartupNotify=true | |
| Terminal=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
| import { Directive, HostListener, signal } from '@angular/core'; | |
| @Directive({ | |
| selector: '[appTrackFocus]', | |
| standalone: true, | |
| exportAs: 'isFocused', | |
| }) | |
| export class TrackFocusDirective { | |
| isFocused = signal(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
| # Full instructions | |
| # https://blog.entrostat.com/install-byobu-on-any-linux-distro/ | |
| BYOBU_VERSION=5.133 | |
| set -e | |
| echo "Please make sure you have the following dependencies installed:" | |
| echo " [+] tar" | |
| echo " [+] screen" |
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
| class Person { | |
| name: string; | |
| surname: string; | |
| email: string; | |
| age: number; | |
| uuid: string; | |
| }; | |
| async function confirmSurname(person: Partial<Person>) { | |
| if (!person.email) { |
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 name = 'John'; | |
| const surname = 'Doe'; | |
| const someOtherVariableThatIsNotNamedCorrectly = 22; | |
| const person = { name, surname }; | |
| const personWithAge = { | |
| name, | |
| surname, | |
| age: someOtherVariableThatIsNotNamedCorrectly |
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 map = new Map(); | |
| map.set(1, 'simple'); | |
| console.log(map.get(1)); | |
| // 'simple' | |
| const person = { | |
| name: 'John', | |
| surname: 'Doe' | |
| }; |
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 a = { | |
| character: 'a', | |
| description: 'This is a', | |
| level: 1, | |
| aUnique: 123 | |
| }; | |
| const b = { | |
| description: 'This is b', | |
| bbb: '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
| // Before the "@config" path | |
| import * as config from '../../config'; | |
| import { Config } from '../../config'; | |
| // After the "@config" path | |
| import * as config from '@config'; | |
| import { Config } from '@config'; | |
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
| { | |
| "compiler": { | |
| "paths": { | |
| "@config": ["src/config"], | |
| "@logger": ["src/modules/shared/logger/logger.service"], | |
| "@modules/*": ["src/modules/*"] | |
| } | |
| } | |
| } |
NewerOlder