This file contains hidden or 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 { RequestMethod } from "@angular/http"; | |
| import { Store } from "@ngrx/store"; | |
| import { Observable } from "rxjs/Observable"; | |
| import { | |
| AppState, | |
| ActionCreator, | |
| UserModel, | |
| BackendService, | |
| LoggerService, |
This file contains hidden or 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
| @NgModule({ | |
| declarations: [ | |
| MyApp, | |
| OnboardingsComponent, | |
| PhoneServiceButtonComponent, | |
| ContinueLaterButtonComponent, | |
| SendDocuEmailButtonComponent, | |
| IncludeTemplateComponent, | |
| InlineEditComponent, | |
| ValidationErrorComponent, |
This file contains hidden or 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 { Component } from "@angular/core"; | |
| import { TranslateService } from "ng2-translate/ng2-translate"; | |
| import { Store } from "@ngrx/store"; | |
| import { AppState, ActionCreator, NavService, NavInterruptModel, NavTargetEnum, GoalModel } from "../../shared"; | |
| @Component({ | |
| templateUrl: "contract-terms.component.html" | |
| }) | |
| export class ContractTermsComponent { |
This file contains hidden or 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 { Component, Input, ViewContainerRef, OnInit, ComponentFactoryResolver, ViewChild } from "@angular/core"; | |
| import { LoggerService } from "../logger/logger.service"; | |
| @Component({ | |
| selector: "include-template", | |
| template: "<div #includeContent></div>" | |
| }) | |
| export class IncludeTemplateComponent implements OnInit { |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| cd /Users/buddybuild/workspace | |
| echo '=== Fixing Sass Error ===' | |
| npm install node-sass | |
| echo '=== Running Tests ===' | |
| npm install -g karma | |
| karma start --single-run |
This file contains hidden or 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
| @Component({ | |
| templateUrl: 'build/app.html', | |
| providers: [NavService] | |
| }) | |
| // .... | |
| ionicBootstrap(MyApp, [ |
This file contains hidden or 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
| ionicBootstrap(MyApp, [ | |
| GoalService, | |
| provide(TranslateLoader, { | |
| useFactory: (http: Http) => new TranslateStaticLoader(http, 'assets/i18n', '.json'), | |
| deps: [Http] | |
| }), TranslateService, |
This file contains hidden or 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 { Component, provide, ViewChild } from "@angular/core"; | |
| import { ionicBootstrap, Platform, MenuController, ModalController, Nav } from "ionic-angular"; | |
| import { Http } from "@angular/http"; | |
| import { StatusBar } from "ionic-native"; | |
| import { TranslateService, TranslateLoader, TranslateStaticLoader } from "ng2-translate/ng2-translate"; | |
| import { AuthHttp, AuthConfig } from "angular2-jwt"; | |
| import { | |
| GoalsComponent, | |
| GoalService, | |
| GoalTimelineComponent, |
This file contains hidden or 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
| /* | |
| * Copyright 2010, John Resig | |
| * Dual licensed under the MIT or GPL Version 2 licenses. | |
| * http://jquery.org/license | |
| */ | |
| // Cleanup functions for the document ready method | |
| // attached in the bindReady handler | |
| if ( document.addEventListener ) { | |
| DOMContentLoaded = function() { | |
| document.removeEventListener( "DOMContentLoaded", DOMContentLoaded, false ); |
This file contains hidden or 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
| #!/usr/bin/env ruby | |
| @slave_status = Hash[%x(mysql -uroot -e 'SHOW SLAVE STATUS \\\G').split(/\s*\n\s*/).map { |e| spl = e.split(/\:\s*/); spl.size == 2 ? [spl.first, spl.last] : nil }.compact] | |
| def slave_healthy? | |
| @slave_status['Slave_IO_Running'] == 'Yes' && | |
| @slave_status['Slave_SQL_Running'] == 'Yes' && | |
| @slave_status['Seconds_Behind_Master'] != 'NULL' && | |
| @slave_status['Seconds_Behind_Master'].to_i < 1800 | |
| end |