Skip to content

Instantly share code, notes, and snippets.

Avatar
🤠
Adept Coder - Full Stack Developer

Ankit Kanojia ankitkanojia

🤠
Adept Coder - Full Stack Developer
View GitHub Profile
@ankitkanojia
ankitkanojia / Sample.html
Created Sep 17, 2019
Hight chart jquery plugin integration
View Sample.html
<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 Sep 2, 2019
Upload/Save media file using HttpPostedFileBase class in C# MVC
View Sample.cs
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
@ankitkanojia
ankitkanojia / Test.cs
Created Sep 2, 2019
Send mail using send grid in c#
View Test.cs
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.js
Last active Sep 2, 2019
Javascript or Jquery loop iterations, Different type of loop iterations.
View sample.js
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);
});