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 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
[ | |
null, | |
null, | |
[4], | |
[26], | |
1617712224719887, | |
"AODP23YAAAAiUiAIHRCA6NzY_-fvAhj_p7rHwervAjoKCJqUgdaP_fWPZYKq8GJhyNufIGMobYdaxGb11CPJ", | |
"AODP23YAAAATChEIzQEQl9uUJBiPqIPUz-nvAvgaUiH-QF1r6sbp1CQSdAdoe2ac", | |
[ | |
"YouTube", |
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 {isObservableMap, isObservableSet} from 'mobx'; | |
interface Adapter { | |
is: (value: unknown) => boolean; | |
serialize: (value: any) => any; | |
deserialize: (value: any) => any; | |
} | |
const spread = (value: any) => [...value]; |
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 {isObservableMap, isObservableSet, observable} from 'mobx'; | |
const DATA_TYPE_FIELD = '___jsonDataType'; | |
function getCollectionTypeName(value: any): 'Set' | 'Map' | 'ObservableSet' | 'ObservableMap' | undefined { | |
if (isObservableMap(value)) { | |
return 'ObservableMap'; | |
} | |
if (isObservableSet(value)) { | |
return 'ObservableSet'; | |
} |
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 { defer, NEVER, Subject, throwError } from "rxjs"; | |
import { | |
bufferTime, | |
catchError, | |
filter, | |
mapTo, | |
mergeMap, | |
retry, | |
// tap, | |
} from "rxjs/operators"; |
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: '1.0' | |
kind: pipeline | |
metadata: | |
name: my-website/publish | |
project: my-website | |
spec: | |
triggers: | |
- name: master_commit |
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
... |
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 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 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 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 { 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( |