Name | Calculation |
---|---|
Radius (RD) | input (px) |
Stroke (STR) | input (px) |
Normalized Radius (NRD) | RD - STR * 2 |
Circumference (CIRC) | NR * 2 * π |
Border Part Percent (BPP) | input |
This file contains 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 { defer, NEVER, Subject, throwError } from "rxjs"; | |
import { | |
bufferTime, | |
catchError, | |
filter, | |
mapTo, | |
mergeMap, | |
retry, | |
// tap, | |
} from "rxjs/operators"; |
This file contains 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: '1.0' | |
kind: pipeline | |
metadata: | |
name: my-website/publish | |
project: my-website | |
spec: | |
triggers: | |
- name: master_commit |
This file contains 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
... |
Link: https://www.youtube.com/watch?v=fjYAU3jayVo
Great talk by Yuri Shkuro from Uber, which is highly involved in the world of tracing,
Has worked a lot on OpenTracing (the standard for tracing apis), and Jaeger in particular (the tool we're using).
Github Repo: https://github.com/yurishkuro/opentracing-tutorial
This file contains 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 Component { | |
data$ = this.service.getData(); | |
constructor(private service: Service) { } | |
} | |
class Component { | |
data$: Observable<Data>; | |
constructor(private service: Service) { | |
this.data$ = service.getData(); |
This file contains 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 { Observable, fromEvent } from 'rxjs'; | |
import { ajax } from 'rxjs/ajax'; | |
import { map, debounceTime, switchMap } from 'rxjs/operators'; | |
function fetchSuggestions(text: string): Observable<string[]> { | |
return ajax.getJSON(`https://example.com/suggestions?query=${encodeURL(text)}`); | |
} | |
const input = document.querySelector('input'); | |
const completions$ = fromEvent(input, 'keyup').pipe( |
This file contains 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 () { | |
function HtmlStorageWrapper(storage) { | |
return { | |
get: function (key) { | |
const valueFromStorage = JSON.parse(storage.getItem(key)); | |
return !valueFromStorage || Date.parse(valueFromStorage.expires) <= (new Date).getTime() | |
? (storage.removeItem(key), null) | |
: valueFromStorage.value | |
}, | |
set: function (key, value, expiresDate) { |
This file contains 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
<ul> | |
<li *ngFor="let item of formEntries$ | async | keyvalue"> | |
{{item.key}} | |
<ul> | |
<li *ngFor="let entry of item.value" (click)="pickedComponent = entry.component"> | |
{{entry.name}} | |
</li> | |
</ul> | |
</li> | |
</ul> |