I hereby claim:
- I am michaelchadwick on github.
- I am michaelchadwick (https://keybase.io/michaelchadwick) on keybase.
- I have a public key ASAERnh7ODVR9NHo3la-BRDflXdKJjEGX633I6A_ivMWcgo
To claim this, I am signing this object:
| // SoundCloud API INITIALIZE | |
| SC.initialize({ | |
| client_id: 'CLIENT_ID', | |
| redirect_uri: 'REDIRECT_URI' | |
| }); | |
| $(document).ready(function() { | |
| // grab the connect click, get info and track embeds | |
| $('a.connect').click(function(e) { |
| #!/usr/bin/env ruby | |
| require 'io/console' | |
| class SaveLoad | |
| SAVE_DATA_FILE = 'save.conf' | |
| attr_accessor :data_changed | |
| def initialize | |
| self.data_changed = false |
I hereby claim:
To claim this, I am signing this object:
| // dynamically size elements based on tallest one | |
| equalheight = function(container) { | |
| var currentTallest = 0, | |
| currentRowStart = 0, | |
| rowDivs = new Array(), | |
| $el, | |
| topPostion = 0; | |
| $(container).each(function() { | |
| $el = $(this); |
| // src/app/service.ts | |
| import { Injectable } from '@angular/core'; | |
| import { Headers, Http } from '@angular/http'; | |
| import 'rxjs/add/operator/toPromise'; | |
| @Injectable() | |
| export class MyService { | |
| private headers = new Headers({'Content-Type': 'application/json'}); | |
| private apiUrl = 'http://localhost:8000'; // URL to web api |
| // src/app/service.spec.ts | |
| //import { Observable } from 'rxjs/Observable'; | |
| import { Observable } from 'rxjs/Rx'; | |
| import { TestBed, inject, async } from '@angular/core/testing'; | |
| import { MockBackend, MockConnection } from '@angular/http/testing'; | |
| import { Http, BaseRequestOptions, Response, ResponseOptions, RequestMethod } from '@angular/http'; | |
| import 'rxjs/add/observable/from'; | |
| import 'rxjs/add/observable/throw'; |
| import { Component, OnInit, OnDestroy } from '@angular/core'; | |
| import { Response } from '@angular/http'; | |
| import { Subscription } from 'rxjs/Subscription'; | |
| import { DaveService } from '../_services/dave.service'; | |
| import { devlog } from '../_helpers/devlog'; | |
| @Component({ | |
| moduleId: module.id, | |
| templateUrl: './home.component.html', |
| ... | |
| <div class="jumbotron"> | |
| <div class="container"> | |
| <div class="col-sm-8 col-sm-offset-2"> | |
| <router-outlet></router-outlet> | |
| </div> | |
| </div> | |
| </div> |
| import { Routes, RouterModule } from '@angular/router'; | |
| import { LoginComponent } from './login/index'; | |
| import { HomeComponent } from './home/index'; | |
| import { AuthGuard } from './_guards/index'; | |
| const appRoutes: Routes = [ | |
| { path: 'login', component: LoginComponent }, | |
| { path: 'logout', component: LoginComponent, canActivate: [AuthGuard] }, | |
| { path: '', component: HomeComponent, canActivate: [AuthGuard] }, |
| import { Injectable } from '@angular/core'; | |
| import { Headers, Http, Response } from '@angular/http'; | |
| import { Observable } from 'rxjs/Observable'; | |
| import 'rxjs/add/operator/map'; | |
| import 'rxjs/add/operator/catch'; | |
| import { devlog } from '../_helpers/devlog'; | |
| @Injectable() | |
| export class DaveService { |