View hr-service-2.ts
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 { 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'; |
View bball court
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
<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 |
View domhandler
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 { 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); |
View SassMeister-input.scss
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
// ---- | |
// Sass (v3.3.0.rc.2) | |
// Compass (v1.0.0.alpha.17) | |
// ---- | |
// | |
// map-fetch($map, $keys) | |
// | |
// An easy way to fetch a deep value in a multi-level map. Works much like | |
// map-get() except that you pass multiple keys as the second parameter to |
View company.api.service.spec.ts
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 { TestBed, inject } from '@angular/core/testing'; | |
import { FakeBackend } from 'ngx-http-test'; | |
import { Observable } from 'rxjs/Observable'; | |
import { CompanyApiService } from './company.api.service'; | |
import { company_mock } from 'assets/mock-data/company.mock'; | |
import { company_offices_mock } from 'assets/mock-data/company-offices.mock'; | |
import { company_projects_mock } from 'assets/mock-data/company-projects.mock'; | |
import { company_transactions_mock } from 'assets/mock-data/company-transactions.mock'; |
View 2017 Goals
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
Motto: The best way to learn is to teach | |
[ ] Master | |
[ ] Algorithms | |
[ ] ng2 | |
[ ] TypeScript | |
[ ] RxJS / Redux | |
[ ] Teach | |
[ ] Publish 50 Blog entries | |
[ ] Lead 20 Lunch n Learn |
View db.json
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
{ | |
"stocks": [{ | |
"id": 1, | |
"name": "Novavax NVAX", | |
"ticker": "NVAX" | |
}, { | |
"id": 2, | |
"name": "Array ARRY", | |
"ticker": "ARRY" | |
}, { |
View api.js
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
var express = require('express'); | |
var app = express(); | |
app.use(express.bodyParser()); | |
var events = [{ | |
"id": 0, | |
"title": "Atlanta Summit 2016", | |
"date": "February 9th, 2016", | |
"img": "http://www.axial.net/wp-content/uploads/2015/12/Atlanta-Summit-hero-image.jpg" | |
}, { |
View user_serializer
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 UserSerializer < ActiveModel::Serializer | |
attributes :id, | |
:email, | |
:name, | |
:username, | |
:location, | |
:description, | |
:avatar_url, | |
:trainer_id, | |
:created_at, |
View api_contoller.rb
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 Api::ApiController < ActionController::API | |
before_filter :user_authenticated? | |
private | |
def user_authenticated? | |
unless user_signed_in? | |
return render :status => 401, :json => {:success => false, :errors => ["Y U NO authenticated?"]} | |
end | |
end |
NewerOlder