Skip to content

Instantly share code, notes, and snippets.

View Rafael-rgsousa's full-sized avatar
🙂

Rafael Gaudencio de Sousa Rafael-rgsousa

🙂
  • Spain
  • 20:23 (UTC +02:00)
View GitHub Profile
import { EventEmitter2 } from '@nestjs/event-emitter';
import { ulid } from 'ulid';
import { Logger } from '@nestjs/common';
export interface EventFlow {
id: string;
event: string;
timestamp?: string;
}
@Rafael-rgsousa
Rafael-rgsousa / img-zoom.html
Created April 18, 2018 03:41 — forked from vazad28/img-zoom.html
Page code for image pinch and zoom in ionic RC3. I used code from multiple places and credit is due. I cant seem to find the pages I have used the code from. If you know, please tell me so I can add that here.
<ion-header no-shadow>
<ion-navbar no-border-bottom>
<ion-buttons start>
<button ion-button color="light" (click)="closeModal()">Cancel</button>
</ion-buttons>
<ion-title>Media</ion-title>
<ion-buttons end>
<ion-spinner *ngIf="!mediaLoaded" color="light"></ion-spinner>
</ion-buttons>
@Rafael-rgsousa
Rafael-rgsousa / Erro Docker Toolbox
Created October 19, 2017 10:59
Erro Docker Toolbox
Erro ao inicializar Kitematic:
Command failed: /usr/local/bin/docker-machine -D create -d virtualbox --virtualbox-memory 2048 default,Docker Machine Version: 0.12.2, build 9371605,Found binary path at /usr/local/bin/docker-machine,Launching plugin server for driver virtualbox,Plugin server listening at address 127.0.0.1:50767,() Calling .GetVersion,Using API Version 1,() Calling .SetConfigRaw,() Calling .GetMachineName,(flag-lookup) Calling .GetMachineName,(flag-lookup) Calling .DriverName,(flag-lookup) Calling .GetCreateFlags,Found binary path at /usr/local/bin/docker-machine,Launching plugin server for driver virtualbox,Plugin server listening at address 127.0.0.1:50771,() Calling .GetVersion,Using API Version 1,() Calling .SetConfigRaw,() Calling .GetMachineName,(default) Calling .GetMachineName,(default) Calling .DriverName,(default) Calling .GetCreateFlags,(default) Calling .SetConfigFromFlags,(default) Calling .PreCreateCheck,(default) DBG | COMMAND: /usr/local/bin/VBoxManage --version,(default) DBG |
/*
Adicionando o provider
*/
//app.module.ts
import { Http, HttpModule, XHRBackend, RequestOptions } from '@angular/http';
{provide: Http, useFactory: httpFactory, deps: [XHRBackend, RequestOptions, LoadingController, ConexaoServicoProvider]},
/*
Factory do Http