Skip to content

Instantly share code, notes, and snippets.

View shah-smit's full-sized avatar
🎯
Focusing

Smit Shah shah-smit

🎯
Focusing
View GitHub Profile

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>
@shah-smit
shah-smit / angular2-fullcalendar.md
Last active March 7, 2017 03:07
Getting Started with Angular 2 Full Calendar.

##1: NPM Install##

npm install fullcalendar

npm i angular2-fullcalendar

npm install jquery

npm install moment

@shah-smit
shah-smit / output.txt
Last active April 26, 2017 02:41
Pass By Value and Pass By Reference JAVA
1
2
11
12
12
10
A
@shah-smit
shah-smit / Readme.md
Last active April 26, 2017 16:24
String (String literal, StringBuffer, StringBuilder

String

== references to memory location, i.e if the both the objects share the same memory
.equals(...) references to the value of the object i.e if the both the objects has the exactly the same value.

Case 1: Considered String a liternal IMMUTABLE

Example: String name = "Smit"; In the memory | name || Smit | So whenever a new literal is created, Java(JVM) will go a check for its existance in the mrmory and it there is no, it will create new. name = "Smit Shah"; In the memory |name || Smit| | name || Smit Shah| so everytime program makes changes to the String variable, it will create a new instance in the memory and it will cause HEAP size to increase

@shah-smit
shah-smit / FileReader.java
Created April 26, 2017 01:40
File Reader, Writer has turn out to be most confusing for experts.
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
public class FileReader {
public static void main(String[] args) throws FileNotFoundException,IOException{
FileReader fr = new FileReader("words");
int i = fr.read();
while(i != -1)
@shah-smit
shah-smit / Readme.md
Last active May 2, 2017 05:38
Format of Statements, Loops and Methods and Classes In java

Format

Statement

IF STATEMENT

if(<condition>) <body>

ternary operator ? :

@shah-smit
shah-smit / fullcalendar.css
Created May 23, 2017 08:16
fullcalendar.min.css
/*!
* FullCalendar v3.2.0 Stylesheet
* Docs & License: https://fullcalendar.io/
* (c) 2017 Adam Shaw
*/.fc-icon,body .fc{font-size:1em}.fc-button-group,.fc-icon{display:inline-block}.fc-bg,.fc-row .fc-bgevent-skeleton,.fc-row .fc-highlight-skeleton{bottom:0}.fc-icon,.fc-unselectable{-khtml-user-select:none;-webkit-touch-callout:none}.fc{direction:ltr;text-align:left}.fc-rtl{text-align:right}.fc th,.fc-basic-view td.fc-week-number,.fc-icon,.fc-toolbar{text-align:center}.fc-unthemed .fc-content,.fc-unthemed .fc-divider,.fc-unthemed .fc-list-heading td,.fc-unthemed .fc-list-view,.fc-unthemed .fc-popover,.fc-unthemed .fc-row,.fc-unthemed tbody,.fc-unthemed td,.fc-unthemed th,.fc-unthemed thead{border-color:#ddd}.fc-unthemed .fc-popover{background-color:#fff}.fc-unthemed .fc-divider,.fc-unthemed .fc-list-heading td,.fc-unthemed .fc-popover .fc-header{background:#eee}.fc-unthemed .fc-popover .fc-header .fc-close{color:#666}.fc-unthemed td.fc-today{background:#fcf8e3}.fc-highlight{background:#bce8f1;opacity:.3}.
@shah-smit
shah-smit / Readme.md
Last active June 2, 2017 09:00
Angular 4, New Features

##Email Validation##

Add FormsModule to NgModule

import { FormsModule } from '@angular/forms'; @NgModule({
imports: [ [...] FormsModule ],

Add #form="ngForm" and email to the input for the validation

@shah-smit
shah-smit / payment.component.css
Created July 12, 2017 11:55
Stripe Payment into Angular 4
* {
font-family: "Helvetica Neue", Helvetica;
font-size: 15px;
font-variant: normal;
padding: 0;
margin: 0;
}
html {
height: 100%;
@shah-smit
shah-smit / livestream.component.ts
Created July 16, 2017 08:54
Angular 4, Live Streaming
import { Component, OnInit, OnDestroy } from '@angular/core';
import { Router } from '@angular/router';
import { LoginService, AzureService } from '../services'
import { User, LiveSession } from '../models'
import { SharedService } from "app/services/shared.service";
//declare var SimpleWebRTC;
declare var io;
declare var conference;
@Component({