Skip to content

Instantly share code, notes, and snippets.

View tithi021's full-sized avatar

Afroza Yasmin tithi021

View GitHub Profile
@tithi021
tithi021 / jsbin.hibayel.js
Last active June 18, 2018 16:23
Display the current day and time - Javascript
var today = new Date();
var day = today.getDay();
var dayList = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Thursday'];
var hour = today.getHours();
var minutes = today.getMinutes();
@tithi021
tithi021 / app-component.ts
Last active October 24, 2019 08:24
Ionic 3 Accordion Sidemenu
import { Component, ViewChild } from '@angular/core';
import { Nav, Platform, MenuController } from 'ionic-angular';
import { StatusBar } from '@ionic-native/status-bar';
import { SplashScreen } from '@ionic-native/splash-screen';
import { MenuProvider } from '../providers/menu/menu';
@Component({
templateUrl: 'app.html'
})
export class MyApp {
@tithi021
tithi021 / app.module.ts
Last active November 14, 2017 18:08
GraphQL APIs CRUD By NodeJs, MongoDB, Express, Angular5
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { ModalModule } from 'ngx-bootstrap/modal';
import { HttpClientModule } from '@angular/common/http';
import { FormsModule } from '@angular/forms';
// Apollo
import { GraphQLModule } from './graphql.module';
@NgModule({
@tithi021
tithi021 / user-schema-model.js
Created September 18, 2016 06:13
Mongodb User schema model design of social platform.
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var UserSchema = new Schema({
username: {
type: String,
unique: true,
required: true
},
fullname: String,
email: {
@tithi021
tithi021 / upload-backend-route.js
Last active September 18, 2016 05:58
Photo upload by Angularjs/NodeJs using ng-file-upload module.
profile.route('/api/1.0/profile/upload/profilePhotoUpload').put(uploadFile.uploadProfilePhoto);