Skip to content

Instantly share code, notes, and snippets.

View MarJaysonSanAgustin's full-sized avatar
🌏
Working from anywhere

Mar Jayson San Agustin MarJaysonSanAgustin

🌏
Working from anywhere
View GitHub Profile
@aitorjs
aitorjs / uploadFile.ts
Last active March 18, 2019 20:40
Upload file using angular2 and nodejs (express)
// FRONTEND (angular2)
// product-form.compontent.html
<input type="file" (change)="fileChangeEvent($event)" placeholder="Upload file..." />
<button type="button" (click)="upload()">Upload</button>
// product-form.compontent.ts
import { Component, OnInit } from '@angular/core';
import { Http } from '@angular/http';
@Component({
@netcell
netcell / fullcalendar_with_ionic2.md
Last active November 1, 2017 16:14
Fullcalendar.io with ionic 2 from forum

Hello Victor,

I just started using this plugin today so I'm not an expert but here is what I did to make it work.

  1. npm install angular2-fullcalendar --save
  2. Create a new component: ionic g component full-calendar
  3. In full-calendar.html I inserted:
<angular2-fullcalendar [options]="calendarOptions"></angular2-fullcalendar>
@StephenFluin
StephenFluin / upload.component.ts
Created October 3, 2016 20:30
Firebase Uploader Component with Angular 2
import { Component, Input } from '@angular/core';
import { Router } from '@angular/router';
import { AngularFire, FirebaseListObservable } from 'angularfire2';
import { Observable } from 'rxjs';
declare var firebase: any;
interface Image {
path: string;
@badnorseman
badnorseman / index.js
Created May 22, 2016 18:50
An OOP example
'use strict'
const express = require('express')
const bodyParser = require('body-parser')
const todos = require('./todos')
require('./env')
const app = express()
app.use(bodyParser.json())
app.use(express.static('public'))