Skip to content

Instantly share code, notes, and snippets.

View ankitkanojia's full-sized avatar
🤠
Adept Coder - Full Stack Developer

Ankit Kanojia ankitkanojia

🤠
Adept Coder - Full Stack Developer
View GitHub Profile
@ankitkanojia
ankitkanojia / sample.js
Last active September 2, 2019 07:08
Javascript or Jquery loop iterations, Different type of loop iterations.
var arrayCollection = [“ABC”, “DEF”, “HIJ”];
$.each(arrayCollection, function(index, value){
console.log(“index : “,index, “ value :”, value);
});
$(arrayCollection).each(function(index, value){
console.log(“index : “,index, “ value :”, value);
});
@ankitkanojia
ankitkanojia / Test.cs
Created September 2, 2019 05:56
Send mail using send grid in c#
using YourProject.Helpers;
namespace YourProject.Controllers
{
public class HomeController : Controller
{
public void SendTestMail1620()
{
SendEmail.Send("EMAIL SUBJECT", "EMAIL TEMPLATE or CONTENT", "TO EMAIL");
@ankitkanojia
ankitkanojia / Sample.html
Created September 17, 2019 06:04
Hight chart jquery plugin integration
<html>
<body>
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/highcharts-more.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/highcharts-3d.js"></script>
<script src="https://code.highcharts.com/modules/export-data.js"></script>
<div id="container" style="height: 400px;width:500px"></></div>
@ankitkanojia
ankitkanojia / Sample.cs
Last active January 2, 2024 23:20
Upload/Save media file using HttpPostedFileBase class in C# MVC
using ProjectNameSpace.Helpers;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Threading.Tasks;
using System.Web;
using System.Web.Mvc;
namespace ProjectNameSpace.Controllers