Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@amittal09
amittal09 / info.txt
Last active June 24, 2025 11:39
Info
https://learn.microsoft.com/en-us/azure/machine-learning/how-to-understand-automated-ml?view=azureml-api-2
https://learn.microsoft.com/en-us/azure/machine-learning/how-to-configure-auto-train?view=azureml-api-2&tabs=python#supported-algorithms
https://github.com/Azure/azureml-examples/
https://github.com/MicrosoftLearning/mslearn-azure-ml
https://www.kaggle.com/code/shivan118/blood-donation-analysis/notebook
OpenAI Api key : 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
Langchain Api Key : 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
@amittal09
amittal09 / gist:8e1ad3e784c76268ea18a8da1dbd6af2
Created November 14, 2024 07:30
Attribute for displaying property on specific page types.
public class ShowPropertyOnPageTypeAttribute : ValidationAttribute, IDisplayMetadataProvider
{
private readonly string[] _allowedPageTypes;
public ShowPropertyOnPageTypeAttribute(string[] allowedTypes)
{
_allowedPageTypes = allowedTypes ?? Array.Empty<string>();
}
protected override ValidationResult IsValid(object value, ValidationContext validationContext)
How Feature folder works?
https://chatgpt.com/share/533b5446-5944-4d9c-b2b2-df94dc864771
@amittal09
amittal09 / TheEnumClass.cs
Last active January 3, 2024 07:55
How a class can be treeted as foreach loopable
class Program
{
static void Main(string[] args)
{
//when we initialize this class in this way it automatically call Add method to add "sfds" to _options.
TheEnumClass theEnumClass = new TheEnumClass() {"sfsd" };
foreach (var item in theEnumClass)
{
@amittal09
amittal09 / RemoveRussianContent.cs
Last active January 5, 2024 06:01
Remove russian content
[ScheduledPlugIn(DisplayName = "Remove russian content")]
public class RemoveRussianContent : ScheduledJobBase
{
private readonly IContentTypeRepository _contentTypeRepository;
private readonly IContentModelUsage _contentModelUsage;
private readonly IContentRepository _contentRepository;
public RemoveRussianContent(IContentTypeRepository contentTypeRepository, IContentModelUsage contentModelUsage, IContentRepository contentRepository)
{
_contentTypeRepository = contentTypeRepository;