This script will download and replace ~/Applications/VSCode-linux-x64
with the latest VS Code Insiders.
- Install
jq
: https://stedolan.github.io/jq/download/ - Place
update-code
somewhere in yourPATH
This script will download and replace ~/Applications/VSCode-linux-x64
with the latest VS Code Insiders.
jq
: https://stedolan.github.io/jq/download/update-code
somewhere in your PATH
Unbuntu is no longer support by the Home Assistant project. | |
The installation commands previous listed here, are not up 2 date, not recommended, not supported and, therefore, removed. |
None of the string methods modify this
– they always return fresh strings.
charAt(pos: number): string
ES1
Returns the character at index pos
, as a string (JavaScript does not have a datatype for characters). str[i]
is equivalent to str.charAt(i)
and more concise (caveat: may not work on old engines).
Create a file named initInExternalTerminal.bat
on cmder's root, containing the following:
@echo off
REM The following CMDER_ROOT must have the complete path to the cmder folder,
REM like "C:\Users\gabriel\Documents\Cmder"
SET CMDER_ROOT=PATH/TO/THE/CMDER/FOLDER
"%CMDER_ROOT%\vendor\init.bat"
Angular applications heavily rely on RxJS Observables. While building large front end apps with these technologies we quickly will need to learn how to manage subscribing to multiple Observables in our components. In this post we are going to cover five different ways to subscribe to multiple Observables and the pros and cons of each.
In our component, we will have three Observables. Each Observable has slightly different behavior. The first Observable emits a single value immediately. The second Observable emits a single value after a couple of seconds. The third Observable emits multiple values one value every second. Below are some functions that return the Observables that we will use in our components.
import { Observable } from 'rxjs/Observable';
import { of } from 'rxjs/observable/of';
This content moved here: https://exploringjs.com/impatient-js/ch_arrays.html#quickref-arrays
import { Injectable } from '@angular/core'; | |
import { HttpClient } from '@angular/common/http'; | |
import { TransferState, makeStateKey } from '@angular/platform-browser'; | |
import { of } from 'rxjs/observable/of'; | |
import { tap } from 'rxjs/operators'; | |
export const POST_KEY = makeStateKey('posts'); | |
@Injectable() | |
export class ApiService { |
😄 | 1f604 | 128516 | smile | |
---|---|---|---|---|
😆 | 1f606 | 128518 | laughing | |
😊 | 1f60a | 128522 | blush | |
😃 | 1f603 | 128515 | smiley | |
☺ | 263a | 9786 | relaxed | |
😏 | 1f60f | 128527 | smirk | |
😍 | 1f60d | 128525 | heart-eyes | |
😘 | 1f618 | 128536 | kissing-heart | |
😚 | 1f61a | 128538 | kissing-closed-eyes | |
😳 | 1f633 | 128563 | flushed |
[alias] | |
cordova = "!f(){ MESSAGE=\"Build assets for deployment\"; [ \"$(git log -1 HEAD --pretty=format:%s)\" != \"$MESSAGE\" ] && git allclean && cordova prepare --release && git add -A && git commit -m \"$MESSAGE\" && git push || echo \"Commit already present\"; }; f" | |
fetch-pr = "!f(){ git fetch origin refs/pull/$1/head:pr/$1; }; f" | |
cleanup = !git clean -df | |
quick-clean = !git checkout . & git cleanup | |
all-clean = !git reset --hard && git cleanup | |
swap-last = !git tag _invert && git reset --hard HEAD~2 && git cherry-pick _invert _invert~1 && git tag -d _invert | |
invert-index = !git commit -m tmp1 && git add -A && git commit -m tmp2 && git swap-last && git reset HEAD~1 && git reset HEAD~1 --soft |
/** | |
* When manually subscribing to an observable in a view component, developers are traditionally required | |
* to unsubscribe during ngOnDestroy. This utility method auto-configures and manages that relationship | |
* by watching the DOM with a MutationObserver and internally using the takeUntil RxJS operator. | |
* | |
* Angular 7 has stricter enforcements and throws errors with monkey-patching of view component life-cycle methods. | |
* Here is an updated version that uses MutationObserver to accomplish the same goal. | |
* | |
* @code | |
* |