Skip to content

Instantly share code, notes, and snippets.

View vengi83644's full-sized avatar

Venkatesan R vengi83644

View GitHub Profile
@vengi83644
vengi83644 / daychangevalue-kite.js
Created March 21, 2024 09:50
Day change - Value column in Kite Web App - Bookmark
javascript: (function() { let headerRow = document.querySelector(".data-table.fold-header.sticky table thead")?.rows[0];
if(headerRow.cells.length == 8) {
headerRow.insertCell(headerRow.cells.length);
}
let updatedHeaderRow = document.querySelector(".data-table.fold-header.sticky table thead")?.rows[0];
let valueHeaderCell = updatedHeaderRow.cells[updatedHeaderRow.cells.length - 1];
valueHeaderCell.className = "day-change-value right sortable";
@vengi83644
vengi83644 / C# Extension Methods that come in handy for an ASP.Net Project.md
Last active February 4, 2024 08:15
C# Extension Methods that come in handy for an ASP.Net Project

In the realm of C# and ASP.NET development, extension methods serve as invaluable tools, empowering developers to enhance the expressiveness and efficiency of their code. In this blog post, we will delve into some of the basic extension methods that any ASP.Net Core project needs and can elevate your web development projects.

HTTPContext Extensions

Get Base Path

public static string GetBasePath(this HttpContext httpContext)
{
    return $"{httpContext.Request.Scheme}://{httpContext.Request.Host}";
}