Server backend options:
- Colyseus - https://github.com/gamestdio/colyseus
- Lance.gg - https://github.com/lance-gg/lance
- Nakama - https://github.com/heroiclabs/nakama/
| DEFAULT_VOLUME_PATH=~/mongo/data | |
| CONTAINER_NAME=some-mongo | |
| runMongoContainer() | |
| { | |
| VOLUME=$1 | |
| docker run --name $CONTAINER_NAME -v $VOLUME:/data/bs -p 27017:27017 -d mongo --replSet rs0 | |
| ####################################################################### NOTICE --replSet | |
| } |
| [alias] | |
| graph = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%cr)%C(reset) %C(white) %s%C(reset) %C(bold yellow)- %cn%C(reset)%C(bold red)%d%C(reset)' --all | |
| pr = pull --rebase | |
| ob = checkout -b | |
| amend = commit --amend | |
| qam = commit --amend --no-verify --no-edit | |
| tmp = commit --no-verify -m | |
| far-master = !git fetch && git checkout -f master && git reset --hard origin/master |
Server backend options:
| <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> |
| (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) { |
| 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( |
| class Component { | |
| data$ = this.service.getData(); | |
| constructor(private service: Service) { } | |
| } | |
| class Component { | |
| data$: Observable<Data>; | |
| constructor(private service: Service) { | |
| this.data$ = service.getData(); |
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
| ... |