Skip to content

Instantly share code, notes, and snippets.

☕️
$ make install

Stephan Kristyn meshfields

View GitHub Profile
View Kubernetes Client Go Daddy v1.9
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Welcome file</title>
<link rel="stylesheet" href="https://stackedit.io/style.css" />
</head>
@meshfields
meshfields / ionic-run-ios.sh
Last active Nov 18, 2016
Ionic Run Ios Deploy Locally
View ionic-run-ios.sh
npm uninstall ios-deploy
sudo npm install -g ios-deploy --unsafe-perm=true --allow-root
rm -rf www/* //optional
ionic build //optional
ionic run ios --deploy
View user-info.component.html
<!-- RC0 Upgrade: Changed control to formControl on validationError - UNTESTED! -->
<ion-header navigation title='{{ "§USER_INFO.HEADER" | translate }}'></ion-header>
<ion-content class="personal-info">
<ion-list>
<form [formGroup]="infoForm">
<ion-item>
View purchase.reducer.ts
import { ActionReducer, Action } from "@ngrx/store";
import { ActionType } from "./action-type";
import { PurchaseModel } from "../purchase/purchase.model";
export const currentPurchase: ActionReducer<PurchaseModel> = (state:PurchaseModel = new PurchaseModel(), action:Action) => {
switch (action.type) {
case ActionType.SET_PURCHASE:
@meshfields
meshfields / purchase.component.ts
Created Oct 11, 2016
using name Observable but cannot be named
View purchase.component.ts
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,
@meshfields
meshfields / app.module.ts
Created Oct 7, 2016
Upgrade to RC0 Ionic2
View app.module.ts
@NgModule({
declarations: [
MyApp,
OnboardingsComponent,
PhoneServiceButtonComponent,
ContinueLaterButtonComponent,
SendDocuEmailButtonComponent,
IncludeTemplateComponent,
InlineEditComponent,
ValidationErrorComponent,
View contract-terms.component.ts
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 {
View include-template.component.ts
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 {
@meshfields
meshfields / buddybuild_prebuild.sh
Last active Jun 4, 2018
Continuous Integration and Testing with Ionic 2
View buddybuild_prebuild.sh
#!/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
View gist:d1f18108767b9491792b4d082dd3c882
@Component({
templateUrl: 'build/app.html',
providers: [NavService]
})
// ....
ionicBootstrap(MyApp, [
You can’t perform that action at this time.