0x1871745b7655cacfca6c865ec529968bf188e0ad3674893ae4574aa2deaf6616
I hereby claim:
- I am greg-nagy on github.
- I am gregnagy (https://keybase.io/gregnagy) on keybase.
- I have a public key whose fingerprint is 3055 9E88 407E E3ED A13F CDA6 7286 888E 97EA B16B
To claim this, I am signing this object:
This file contains 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 { Handler, Context } from 'aws-lambda'; | |
import { Server } from 'http'; | |
import { createServer, proxy } from 'aws-serverless-express'; | |
import { eventContext } from 'aws-serverless-express/middleware'; | |
import { NestFactory } from '@nestjs/core'; | |
import { AppModule } from './app.module'; | |
// NOTE: If you get ERR_CONTENT_DECODING_FAILED in your browser, this is likely | |
// due to a compressed response (e.g. gzip) which has not been handled correctly |
This file contains 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 { NestFactory } from '@nestjs/core'; | |
import { AppModule } from './app.module'; | |
async function bootstrap() { | |
const app = await NestFactory.create(AppModule); | |
await app.listen(3000); | |
} | |
bootstrap(); |
This file contains 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 Vue from "vue"; | |
import "@/stylus/main.styl"; | |
import { | |
Vuetify, | |
VApp, | |
transitions, | |
VToolbar, | |
VGrid, | |
VCard, |
This file contains 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
export const $NAME$ = '[$NAMESPACE$] $TYPE$'; | |
export class $ACTION$ implements Action { | |
readonly type = $NAME$; | |
constructor(public payload: $PAYLOAD_TYPE$) {} | |
} |
This file contains 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
create(param: TicketModel) { | |
return this._http | |
.post<{ name: string }>(`${environment.firebase.baseUrl}/tickets.json`, param) | |
// konnyitsuk meg magunknak kicsit az eletunket es kuldjuk tovabb csak azt ami kell nekunk | |
.map(fbPostReturn => fbPostReturn.name) | |
// ez itt amiatt kell, hogy meglegyen a fbid objektumon belul is, | |
// mert kesobb epitunk erre az infora | |
// viszont ezt csak a post valaszaban kapjuk vissza | |
// es legalabb hasznaljuk a patch-et is :) | |
.switchMap(ticketId => this._saveGeneratedId(ticketId)) |
This file contains 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
getAllTickets() { | |
return this._http.get(`${environment.firebase.baseUrl}/tickets.json`) | |
.map(ticketsObject => Object.values(ticketsObject)) | |
.map(ticketsArray => ticketsArray.map(tm => | |
Observable.zip( | |
Observable.of(tm), | |
this._eventService.getEventById(tm.eventId), | |
this._userService.getUserById(tm.sellerUserId), | |
(t: TicketModel, e: EventModel, u: UserModel) => { | |
return { |
This file contains 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
[ | |
{ | |
'id': 1, | |
'name': 'Sziget Fesztivál', | |
'date': '2017-08-03', | |
'pictureURL': 'assets/sziget.png', | |
'description': 'Lorem ipsum dolor sit amet consectetur adipisicing elit. Quo.' | |
}, | |
{ | |
'id': 2, |
This file contains 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
declare function require(name:string); | |
var striptags = require('striptags'); | |
// export var console2:Console2Interface = null; | |
let originalConsoleLog:Function = console.log; | |
interface Console2Interface { | |
extendedLog: Function | |
} |
NewerOlder