Skip to content

Instantly share code, notes, and snippets.

View MT--'s full-sized avatar
🥺

Michael Trilus MT--

🥺
  • Resultant
  • Indianapolis, IN
View GitHub Profile

Keybase proof

I hereby claim:

  • I am mt-- on github.
  • I am mt_nasty (https://keybase.io/mt_nasty) on keybase.
  • I have a public key ASAbk48HutdDQPwYP-CUsCBKN1IWsugmSc9c6JmfOBsSxAo

To claim this, I am signing this object:

import { Component } from '@angular/core';
import { Platform } from 'ionic-angular';
import { SessionService } from '../providers/session.service';
@Component({
template: `<ion-nav [root]="rootPage"></ion-nav>`
})
export class MyApp {
import { Directive } from '@angular/core';
import { ViewController } from 'ionic-angular';
@Directive({
selector: '[hideTabs]'
})
export class HideTabsDirective {
constructor(private viewCtrl: ViewController) {
// hide tabs when view loads
@MT--
MT-- / session.service.ts
Created July 19, 2016 22:32
Session Management Class for Authenticated HTTP Requests with JWT
import { Injectable } from '@angular/core';
import { Http, Response, Headers } from '@angular/http';
import { Observable, Observer } from 'rxjs';
@Injectable()
export class SessionService {
public isLoggedIn: Observable<any>;
private isLoggedInObserver: Observer<any>;
@MT--
MT-- / ionic-indy-071416-links.html
Created July 15, 2016 13:41
Links from Ionic Ionic Meetup - 07/14/16
@MT--
MT-- / metronome-fct.js
Created February 23, 2016 16:31
Angular(1) factory to create metronome based on Web Audio API with help from https://github.com/cwilso/metronome/
'use strict';
/**
* make a new Metronome based on the provided temp
* ideas from:
* https://github.com/cwilso/metronome/
*/
angular.module('main')
.factory('Metronome', function ( $window ) {