Skip to content

Instantly share code, notes, and snippets.

import { Injectable } from '@angular/core';
@Injectable()
export class DomHandler {
public static zindex: number = 1000;
public addClass(element: any, className: string): void {
if (element.classList)
element.classList.add(className);
<svg id="shotChart-02-svg" style="height: 100%; width: 100%; overflow: visible;" preserveAspectRatio="xMinYMax meet" viewBox="0 0 590 120"><defs><radialGradient cx="0" cy="0" r="5" id="radialGradientSij1i6j9n2c"><stop offset="0%" stop-color="#d56900"></stop><stop offset="100%" stop-color="#000000"></stop></radialGradient><radialGradient cx="0" cy="0" r="5" id="radialGradientSij1i6j9n2t"><stop offset="0%" stop-color="#d56900"></stop><stop offset="100%" stop-color="#000000"></stop></radialGradient><radialGradient cx="0" cy="0" r="5" id="radialGradientSij1i6j9n3a"><stop offset="0%" stop-color="#d56900"></stop><stop offset="100%" stop-color="#000000"></stop></radialGradient><radialGradient cx="0" cy="0" r="5" id="radialGradientSj02pz5cnk"><stop offset="0%" stop-color="#d56900"></stop><stop offset="100%" stop-color="#000000"></stop></radialGradient><radialGradient cx="0" cy="0" r="5" id="radialGradientSj02pz5cnt"><stop offset="0%" stop-color="#d56900"></stop><stop offset="100%" stop-color="#000000"></stop></radial
@xlozinguez
xlozinguez / hr-service-2.ts
Last active December 19, 2017 17:33
GATT flow
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs/Observable';
import { BluetoothCore } from '@manekinekko/angular-web-bluetooth';
@Injectable()
export class HeartRateService {
static GATT_CHARACTERISTIC_HR_MEASUREMENT = 'heart_rate_measurement';
static GATT_PRIMARY_SERVICE = 'heart_rate';
{
"name": "rogers",
"private": true,
"version": "0.1.0",
"description": "The team",
"author": "Transfix Engineering <tech@transfix.io>",
"email": "tech@transfix.io",
"engines": {
"node": "v14.18.0",
"npm": "9.6.5"