I hereby claim:
- I am paolobueno on github.
- I am paolobueno (https://keybase.io/paolobueno) on keybase.
- I have a public key ASDUy0w1QCOfd1lT1rq874nVReK6h1z6rifwlc-3A3fP8Ao
To claim this, I am signing this object:
| /node_modules | |
| /dist | |
| /*-error.log | |
| /.cache | |
| /.yarn.lock |
I hereby claim:
To claim this, I am signing this object:
| const a = [1, 2]; | |
| a; | |
| const mult = (x => (y => x * y)); | |
| const mult2 = mult(2); | |
| // function mult2 (x) { | |
| // return x * 2; | |
| // } |
| <div id="pai"> | |
| <div id="vc"> | |
| <div id="filho1" class="filho"> | |
| <div id="neto1" class="neto"></div> | |
| </div> | |
| <div id="filho2" class="filho"></div> | |
| </div> | |
| <div class="irmao"></div> | |
| </div> |
| const apply = (x, fn) => fn(x); | |
| const c = (...fns) => { | |
| [first, ...rest] = fns.reverse(); | |
| return x => rest.reduce(apply, first(x)); | |
| } | |
| const add = x => y => x + y; | |
| c(add(1), add(4))(3); |
| oc login -u system:admin | |
| oc adm policy add-cluster-role-to-user access-asb-role developer | |
| oc adm policy add-cluster-role-to-user cluster-admin developer |
| /* | |
| Tested with data generated by | |
| autocannon -a 150000 -m POST -I -b '{"clientId":"[<id>]","data":{"app":{"appId":"com.example.someApp","sdkVersion":"2.4.6","appVersion":"256"},"device":{"platform":"android","platformVersion":"27"}}}' http://localhost:3000/metrics | |
| Thus creating 150k records. | |
| This uses generated clientIds and the rest of the data is constant, thus it doesn't match very well the expected cardinality, | |
| I'd like to redo these tests with better random data. | |
| For example we wouldn't have unique clientIds per record, and have some variance in device platform, and some less in app info, and also a much bigger spread in event_times. |
| export interface IKeycloakConfig {} | |
| export interface IMetricsConfig {} | |
| export class Config { | |
| private serviceConfig: any[] = []; | |
| /** | |
| * @param config - any type of configuration that will be send from server. | |
| * It's not possible easy/worth to wrap that to types. Even native implementations do not do that. |
| class ServiceModule {} | |
| class SyncService extends ServiceModule {} | |
| class KeycloakService extends ServiceModule {} | |
| type ServiceModuleConstructor<T extends ServiceModule> = new() => T; | |
| class ServiceModuleRegistry { | |
| private serviceTypeMap: { | |
| [key: string]: ServiceModuleConstructor<ServiceModule> |