Skip to content

Instantly share code, notes, and snippets.

View jayprajapati857's full-sized avatar
🏠
Working from home

Jaykumar Prajapati jayprajapati857

🏠
Working from home
View GitHub Profile
@jayprajapati857
jayprajapati857 / shared.module.ts
Created December 21, 2020 06:20
ngx-uploader-directive sample shared module file
import { BrowserModule } from '@angular/platform-browser';
import { NgxUploaderDirectiveModule } from 'ngx-uploader-directive';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
NgxUploaderDirectiveModule
@jayprajapati857
jayprajapati857 / app.module.ts
Created December 21, 2020 06:18
ngx-uploader-directive app module sample
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { NgxUploaderDirectiveModule } from 'ngx-uploader-directive';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
@NgModule({
declarations: [
@jayprajapati857
jayprajapati857 / component.html
Created December 20, 2020 15:32
Html sample for ngx-uploader-directive
<div class="drop-container" ngxFileDrop [options]="options" (uploadOutput)="onUploadOutput($event)"
[uploadInput]="uploadInput" [ngClass]="{ 'is-drop-over': dragOver }">
<h1>Drag &amp; Drop</h1>
</div>
<label class="upload-button">
<input type="file" ngxFileSelect [options]="options" (uploadOutput)="onUploadOutput($event)"
[uploadInput]="uploadInput" multiple>
or choose file(s)
</label>
@jayprajapati857
jayprajapati857 / app.component.ts
Created December 20, 2020 15:30
App component sample for ngx-uploader-directive
// tslint:disable: max-line-length
import { Component, EventEmitter } from '@angular/core';
import { IUploadOptions, ISelectedFile, IUploadInput, IUploadOutput } from 'ngx-uploader-directive';
import { IUploadProgress } from 'projects/ngx-uploader-directive/src/public-api';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
@jayprajapati857
jayprajapati857 / ngx-uploader-drective-models.ts
Created December 20, 2020 15:17
Sample models for Ngx uploader directive
import { HttpResponse, HttpErrorResponse } from '@angular/common/http';
/**
* File Upload Options.
*/
export interface IUploadOptions {
requestConcurrency: number; // Number of request can be made at a time.
maxFilesToAddInSingleRequest: number; // Number of files uploaded in single.
allowedFileTypes?: Array<string>; // Allowed file content types.
maxFileUploads?: number; // Max number of files that user can upload
@jayprajapati857
jayprajapati857 / Installing SQL Server 2008 from command line.md
Last active June 4, 2019 05:40
Installing SQL Server 2008 from command line

Installing SQL Server 2008 from command line

  • Download SQL Server 2008 Express

  • If you want to know all the available Options and Switches which you can make use of this Installation, Run this command SQLEXPR_x64_ENU.exe /? in command propmp running as Administrator mode and navigating it to the Downloaded path of SQL Server exe.

  • After getting all the Options and Switches use them as per your requirements

  • In this Gist we are going to install only SQL Server 2008 DB Engine. You can also install the other tools from command line, such as SSAS, SSRS, SSIS and Tools(like SSMS).

  • The parameters I am going to set are:

    Instance Name: SQL2008

@jayprajapati857
jayprajapati857 / MySQL5.7-EntityFramework-Guide.md
Created May 30, 2019 17:36 — forked from pishangujeniya/MySQL5.7-EntityFramework-Guide.md
MySQL Server 5.7 with Visual Studio 2017 and EntityFramework Install Guide

Installing MySQL 5.7 Server with EntityFramework in Visual Studio 2017

  • Install MySQL Server 5.7.25

  • Install Complete MySQL Connector.Net 6.9.10

  • Install Complete MySQL Visual Studio Plugin 1.2.8

  • If after installing MySQL Visual Studio Plugin it shows warning that failed to execute comamnd devenv /updateconfiguration, then manually execute that command in Developer Command Prompt for Visual Studio 20xx with run as administrator.

  • Right Click References > Add > Click Assemblies or Extensions > Search MySQL > Tick all

  • Comment the following kind of similar code from Web.config

@jayprajapati857
jayprajapati857 / Remote-IIS-Management.md
Created May 30, 2019 17:35 — forked from pishangujeniya/Remote-IIS-Management.md
How to connect and manage remote IIS Web Server from another machine without using RDP Remote Desktop Connection

Remotely connect to IIS Web Server.

Whenever you want to perform any tasks related to IIS on server you might be starting mstsc aka Remote Desktop Connection RDP for those tasks, but using the facility of remotely managing IIS from client IIS, no need of RDP now and then.

Follow the simple steps on IIS Server and client IIS machine.

Process on Server IIS

  • Run the following commands in powershell on the remote IIS Server
  • Install-WindowsFeature Web-Server
@jayprajapati857
jayprajapati857 / MySQL8.0-Visual-Studio-2019-EntityFramework-Guide.md
Created May 30, 2019 17:35 — forked from pishangujeniya/MySQL8.0-Visual-Studio-2019-EntityFramework-Guide.md
Installing MySQL 8.0 Server with EntityFramework in Visual Studio 2019

Installing MySQL 8.0 Server with EntityFramework in Visual Studio 2019

  • Install MySQL Server 8.0.16
  • Install Complete MySQL Connector.Net x86 8.0.16
  • Install this custom repacked VSIX MySQL Visual Studio
  • If after installing MySQL Visual Studio Plugin it shows warning that failed to execute comamnd devenv /updateconfiguration, then manually execute that command in Developer Command Prompt for Visual Studio 20xx with run as administrator.
  • Run this command Install-Package EntityFramework in Visual Studio Nuget package manager console
  • Manage Nuget Packages > Search Mysql > install Mysql.Data v8.0.16
  • Manage Nuget Packages > Search Mysql > install Mysql.Data.Entity v6.10.8
  • Manage Nuget Packages > Search Mysql.Data.EntityFramework > install Mysql.Data.EntityFramework v8.0.16
@jayprajapati857
jayprajapati857 / VisualStudioExtensions.md
Created May 30, 2019 17:33 — forked from pishangujeniya/Visual-Studio-Extensions.md
Visual Studio must have extensions

Visual Studio Must have Extensions

Hello World! Every programmer loves IDE and auto-complete inetllisense facilities in IDE's and editor tools. But, any of the program doesn't suit to everyone's need, and thier comes the existence of extensions. Here I am listing out some of the very usefull extensions, that every Visual Studio user must have.

Hit Star if you liked this.

Just search the title in extensions marketplace.