Skip to content

Instantly share code, notes, and snippets.

View carloswm85's full-sized avatar
🎯
Compiling...

Carlos W. Mercado carloswm85

🎯
Compiling...
View GitHub Profile
@carloswm85
carloswm85 / SearchEngine.cs
Created November 15, 2024 23:04
This is what the component should include. I'm not sure how to turn it into a component diagram though (not sure if even necessary either).
public enum RoleEnum
{
Student,
Company
}
public interface ISearchEngine
{
void Search(string query); // General search method
}
@carloswm85
carloswm85 / GetTrackerPaginatedList.cs
Last active November 11, 2024 13:17
For Datatables.
/// <summary>
/// Retrieves a paginated list of trackers for a specified request, supporting sorting, searching, and pagination.
/// Returns a JSON result with paginated data compatible with DataTables.
/// See: <see cref="ListedTrackerDto"/>.
/// </summary>
/// <param name="requestId">ID of the request for which trackers are being retrieved.</param>
/// <returns>JSON result containing paginated tracker data, record count, and error information if applicable.</returns>
[HttpPost]
public virtual ActionResult GetTrackerPaginatedList(int requestId) {
var watch = Stopwatch.StartNew();
@carloswm85
carloswm85 / appsettings.json
Last active November 8, 2024 17:09
Connection string when Entity Framework Core 7 connection certificate trust exception, with NET Core 8.0
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*",
"ConnectionStrings": {
"RazorPagesMovieContext": "Server=localhost;Database=RazorPagesMovieContext-d67b7425-08c7-4b61-ad49-6d9eda3c0a16;Trusted_Connection=True;MultipleActiveResultSets=true;TrustServerCertificate=True;Encrypt=False"
@carloswm85
carloswm85 / GetTrackerPaginatedList.cs
Last active October 25, 2024 16:31
Datatables implementation, backend only.
/// <summary>
/// Retrieves a paginated list of trackers for a given request, supporting sorting, searching, and pagination.
/// Returns an object tailored for listing, <see cref="ListedTrackerDto"/>.
/// This method may be used with frontend calls compatible with DataTables.
/// </summary>
/// <param name="requestId">The ID of the specific request for which trackers are being retrieved.</param>
/// <returns>A JSON object containing paginated tracker data, total records, and any error messages if an exception occurs.</returns>
[HttpPost]
public virtual ActionResult GetTrackerPaginatedList(int requestId)
{
import { Injectable } from '@angular/core';
import { Subject } from 'rxjs';
import {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
KLINE_CRYPTOS,
KLINE_CRYPTOS_BTC,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
KLINE_CRYPTOS_QUICK,
} from '../../../../../data/assets.data';
import { LoggingService } from '../logging/logging.service';
@carloswm85
carloswm85 / README.md
Created August 24, 2024 01:18
VSCode Debugger Configuration - Single project - Angular 17 SPA, with Node 20, nodemon, Express 4.19; with Edge Browser and Microsoft Edge Tools

Comments

  • Project date: 8/23/24
  • Commets generated using ChatGPT 4
  • Please, provide any suggestions you may find suitable.
  • Not all tasks from tasks.json are used.

Relevant Folder Structure

image

// Get dependency: `ng add @angular/material`
// Save to `src/app/material/material.module.ts`
// June 2024
import { NgModule } from '@angular/core';
/* ================================ MATERIAL ================================ */
// Importing Angular Material modules individually
// Each import provides a specific UI component from Angular Material